Can someone please explain the purpose of postback? I dont get what the point is? Some people seem to make out that its really helpful that the page can sort of return to itself and still remember all its state, but really most of the time you arent going to keep going to the same page, you'll move on to another in a sort of chain like manner.
Is there anything more to this?
Thanks
SimonI think the postback is very useful. I use it to do some signup applications for our customers. So I don't need to pass a hundred values from step to step of the signup. All is in one webform, just displaying another step.
I think this is only one of the excellent features
It's mostly helpful when developing applications, not simple pages like what you're talking about. It enables developers to make use of a rich event-driven framework that otherwise wouldn't be possible. With classic ASP, you had to write your own hack methods to accomplish what is now easily doable with ASP.NET.
Check out this web page:
<a href="http://links.10026.com/?link=http://aspnet101.com/aspnet101/tutorials.aspx?id=3">http://aspnet101.com/aspnet101/tutorials.aspx?id=3</when a page loads
...however, you want the user to make a selection and then do something with that selection, on the postback -- - you need to only populate the ddl if it isn't a postback - - only the first time through, otherwise, the selected item wouldn't show up correctly...
so - you populate the dropdownlist, ONLY if it isnt' a postback, then, during postback, when the page loads again, that part is ignored, and the selected item remains current and useable...
thanks guys
0 comments:
Post a Comment