If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Logic Help needed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-04, 13:24
vextout vextout is offline
Registered User
 
Join Date: Jan 2003
Location: New York
Posts: 160
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
Reply With Quote
  #2 (permalink)  
Old 06-25-04, 16:56
Seppuku Seppuku is offline
Useless...
 
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.
Reply With Quote
  #3 (permalink)  
Old 06-28-04, 11:54
vextout vextout is offline
Registered User
 
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
Reply With Quote
  #4 (permalink)  
Old 06-28-04, 12:24
Seppuku Seppuku is offline
Useless...
 
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On