Not as far as I know. The easiest way is just to create a
loop to set all of the controls values to "". You'll
probably have to use a typeof statement to come up with
specific clearing methods for different controls, but I
don't think there is an automatic way to reset the page. I
could be wrong though...
Jeff Levinson
[color=blue]
>-----Original Message-----
>Greetings,
>
>I'm using VS.Net 2003. I have created a web form that I[/color]
want to use for[color=blue]
>data entry. It works pretty damned well, if I do say so[/color]
myself. (Gotta[color=blue]
>love the FCL validation routines!)
>
>My problem is that after the user fills in the form,[/color]
presses the submit[color=blue]
>button, and I save the data to the database I'd like the[/color]
form to be[color=blue]
>cleared for new data entry. I've tried setting viewstate[/color]
to false on[color=blue]
>the document object, and I've tried calling[/color]
ClearChildViewS tate in the[color=blue]
>Page_Load event handler, to no avail.
>
>Is there anyway short of going around to each control and[/color]
setting the[color=blue]
>text to "" to clear the page?
>
>-- Rick
>.
>[/color]
loop to set all of the controls values to "". You'll
probably have to use a typeof statement to come up with
specific clearing methods for different controls, but I
don't think there is an automatic way to reset the page. I
could be wrong though...
Jeff Levinson
[color=blue]
>-----Original Message-----
>Greetings,
>
>I'm using VS.Net 2003. I have created a web form that I[/color]
want to use for[color=blue]
>data entry. It works pretty damned well, if I do say so[/color]
myself. (Gotta[color=blue]
>love the FCL validation routines!)
>
>My problem is that after the user fills in the form,[/color]
presses the submit[color=blue]
>button, and I save the data to the database I'd like the[/color]
form to be[color=blue]
>cleared for new data entry. I've tried setting viewstate[/color]
to false on[color=blue]
>the document object, and I've tried calling[/color]
ClearChildViewS tate in the[color=blue]
>Page_Load event handler, to no avail.
>
>Is there anyway short of going around to each control and[/color]
setting the[color=blue]
>text to "" to clear the page?
>
>-- Rick
>.
>[/color]