Results 1 to 2 of 2

Thread: Navigation

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Posts
    1

    Navigation

    In VisualBasic.net windows app I had a form that would allow you to look at one record at a time. Data was bound to textboxes and comboboxes. My boss would like this changed over to a VB web form

    Here is the problem

    after binding the filling the dataset and binding the appropriate field to each textbox it properly produces the first row in the database

    but when I tried to create navigation buttons to move first/previous/next/last I copied and pasted from the VB windows form to the web form the following line stopped being valid

    bindingcontext(<dataset obj>, <table name>).position

    How would I have to modify this in order to accomplish this task? so that I could bidirectionly traverse the dataset

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    If you didn't bind them you could hold a recordset open, and using ADO and ASP you should be able to open a recordset then close the connection which leaves the user with a view of the data.

    I have never tried it myself, but it should work. then your navigation buttons refer to the recordset you returned and do the usual forward and backward movements (next and previous).

    I don't know if this method would mean less network traffic too - worth experimenting with.


    Otherwise you need to use MoveNext and MovePrevious on the bound access under the buttons.


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width