|
-
May 4th, 2005, 05:06 AM
#1
Thread Starter
Frenzied Member
Text Control value doesnt update
I have created an aspx page which onload populates a dataset then binds various controls to the relevant columns. Then on editing one of the text boxes on the click of a button I want to update the database. I have tried various updates but to no avail. I have narrowed the problem down to that on stepping through the code the value held in memory doesnt recognise that the text held in the control has changed from the original text. Any Ideas.
Last edited by FishGuy; May 4th, 2005 at 06:40 AM.
Reason: complete
-
May 4th, 2005, 06:24 AM
#2
Fanatic Member
Re: Text Control value doesnt update
If you are initialising your text box values in the Page_Load event, you must enclose your code in the following IF block:
VB Code:
If Not IsPostBack Then
'
' Initialisation code goes here...
'
End If
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
May 4th, 2005, 06:39 AM
#3
Thread Starter
Frenzied Member
Re: Text Control value doesnt update
Worked a treat cheers, how simple but id never have guessed.
Last edited by FishGuy; May 4th, 2005 at 06:39 AM.
Reason: complete
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
|