Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2003
    Location
    New York
    Posts
    160

    Unanswered: Logic Help needed

    hey,

    my brain is fried. I can't think anymore
    i am using asp.net with vb
    my question is more of an idea how to do what i am asking for:

    situation
    ---------
    i got a profile page
    when it loads first,
    the fields are created dynamically on the server side
    then fields are populated with the information from a db.

    on submit, i want to check if these fields are blank.
    the problem i am is when submit is clicked, postback begins and it recreates the textboxes the re-populates the fields again.

    Problem
    --------
    on postback i want to retain the textboxes already created as well as the field values when someone hits submits.

    Solution
    --------
    How can i do this, easy or hard, just a way that works.

    thnx
    Beyond Limitation

  2. #2
    Join Date
    Jul 2003
    Location
    SoCal
    Posts
    721
    What you should probably do is capture the values from the post into variables before you do any form building. If the values aren't blank, you show those values, if they are blank, you query the DB.
    That which does not kill me postpones the inevitable.

  3. #3
    Join Date
    Jan 2003
    Location
    New York
    Posts
    160
    I create the textboxes on the server side from certain fields from a query.

    How can i save those when a postback is being done ?
    I have all the fields going to variables alread.
    Beyond Limitation

  4. #4
    Join Date
    Jul 2003
    Location
    SoCal
    Posts
    721
    If you're capturing the values of the post into variables, then you are saving them. Then when the page loads, you check to see if those variables have values. If not, then you query the DB to load them. If not, you don't query the DB.
    That which does not kill me postpones the inevitable.

Posting Permissions

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