|
-
May 20th, 2004, 09:12 AM
#1
Thread Starter
Hyperactive Member
How to Change Text Box States - Resolved
We have an intranet site with information about what is going on in the company for the day. I am trying to add the ability to post messages to the main page and also be able to edit those messages.
I amusing the same page to add the message and edit the message. When I add a message, it works fine. When I edit, I pass the index of the record to the page and it pulls the info from the database.
When I try to change the info, I press the update button and it does not save the changes. The text boxes revert back to there previous state.
How can I make this to where it reads the new info and updates the records. I have tried IsPostBack but it just adds new records.
Thanks,
Jerel
Last edited by Phenglai; May 20th, 2004 at 09:44 AM.
-
May 20th, 2004, 09:43 AM
#2
Thread Starter
Hyperactive Member
I figured it out
I added a textbox on the form and keep it hidden. I add the index to the record in there. I then setup an IsPostBack if statement to tell when the page posted back.
I was using protected variables and they were getting re-written where as the text boxes do not.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|