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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the order of a postback?

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
I am undure of the order of execution when a postback occurs. What happens when somebody pushes a button on my vb .net page? Does onLoad run first? Or the buttons event handler? I believe too that the variables do not carry over from postback to postback... so any VB variables must be set with every execution... Can somebody clarify for me?
 
Great article on exactly that subject:


Good question, by the way. A developer can get by without this knowledge, but they'll never be able to consistently avoid common pitfalls without a strong grasp of it.

:)
paul

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Okay... a little better, but still not sure what's happening with my page. I have a datagrid, that dynamically creates textboxes. I have a custom Validator that iterates thru the rows in the grid to make sure at least one of them has a value entered. (You can't place the order unless you enter at least one quantity.)
So I enter a quantity in one of the fields and press the button to send the order, but the response from the server has a clear dataGrid (the tbs are there, but not the value I entered) and my validator is up saying I didn't enter a value. Does validation run after viewstate is loaded? I think it does, cause this validator worked fine before.

(I changed the sequence of a few methods to accomidate some requested changes to the form, and don't know which one is causing this.) Bad Mark, no coffee!
 
Sorry, nevermind. I forgot to update the binary file to that server and I had sorted out the order of things... Doh... sorry guys.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top