Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page.IsPostBack Confusing

Status
Not open for further replies.

cumap

IS-IT--Management
Jul 9, 2007
268
US
Hello,

I'm modifying my original code to adapt with new change and now facing a problem... RESET button no long works!

At first, I had 2 Sub function: Submit and Reset away from Sub Page_Load and Page.IsPostBack case. But now with some added, I'd have to move Submit function to the If Page.IsPostBack then and somehow the Sub Reset doesn't response anymore. I wonder if it would work again when I somehow move the Reset to the Page.IsPostBack as well. If so, how can I tell which is Submit and which is Reset in that Page.IsPostBack case. I meant they both are IsPostBack, right?

Thanks!
 
For some reasons, I've got weird response when using ID="btn_Submit" to look for Sub btn_Submit(Sender As Object, e As EventArgs), therefore, I removed the ID in the button and utilize IsPostBack to look for the submit event.

But, after many tests and tests, I'd decided to go back to use the Sub btn_Submit function as well as the Sub btn_Reset function because they've been responding much better... for now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top