Webform question

  • Thread starter Thread starter Chris Scragg
  • Start date Start date
C

Chris Scragg

In my app, I preload some default values into my form's textboxes. However,
when a user changes these values, my code-behind is not noticing the change;
only the original value. Do I have to send this form to another page for
processing (action) or am I missing something fundamental here?

Chris
 
Chris said:
In my app, I preload some default values into my form's textboxes. However,
when a user changes these values, my code-behind is not noticing the change;
only the original value. Do I have to send this form to another page for
processing (action) or am I missing something fundamental here?

Chris
You probably need to set the defaul values in
if (!Page.IsPostback)
{

}

I think you are doing that, and before your method runs, Page_Load
method replaces them back to original values.
 
Yeap. That was it. Thanks.

Chris


SevDer said:
You probably need to set the defaul values in
if (!Page.IsPostback)
{

}

I think you are doing that, and before your method runs, Page_Load method
replaces them back to original values.
 
Back
Top