Results 1 to 3 of 3

Thread: Text Control value doesnt update

  1. #1

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Resolved 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

  2. #2
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    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:
    1. If Not IsPostBack Then
    2. '
    3. ' Initialisation code goes here...
    4. '
    5. End If
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

  3. #3

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Resolved 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
  •  



Click Here to Expand Forum to Full Width