TextBox Controls losing their values

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Philip Townsend

    TextBox Controls losing their values

    I have a user control that contains a form with several text boxes. The
    text boxes get populated from a SQL Server table when the control loads.
    When the controls posts back, any values that have changed get passed to
    a stored procedure to update the table. The problem is that when the
    form is submitted, the text boxes seem to lose their values and contain
    nothing but empty strings. I have tested the same code from an .aspx
    page and it works, however, when attemting the same thing in a user
    control, I get these errors. Any clues?



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • daphish@msn.com

    #2
    Re: TextBox Controls losing their values

    If you set EnableViewstate to true this should save all the setting of
    the textbox when you report to the server.

    --dwayne


    On Fri, 27 Jun 2003 10:59:07 -0700, Philip Townsend
    <anonymous@devd ex.com> wrote:
    [color=blue]
    >I have a user control that contains a form with several text boxes. The
    >text boxes get populated from a SQL Server table when the control loads.
    >When the controls posts back, any values that have changed get passed to
    >a stored procedure to update the table. The problem is that when the
    >form is submitted, the text boxes seem to lose their values and contain
    >nothing but empty strings. I have tested the same code from an .aspx
    >page and it works, however, when attemting the same thing in a user
    >control, I get these errors. Any clues?
    >
    >
    >
    >*** Sent via Developersdex http://www.developersdex.com ***
    >Don't just participate in USENET...get rewarded for it![/color]

    Comment

    Working...