I’m new to web programming, recently started to learn asp.net. Could anyone explain to me what is a postback request and how it defers from simple (if I can call it so) request?
I’m new to web programming, recently started to learn asp.net. Could anyone explain to
Share
Microsoft tried to make web programming a bit like windows programming… it came up with webforms. When you first get a page from asp.net you do a GET, and you get a “webform” which is a webpage with buttons, text boxes, combo boxes, much like a windows dialog.
Now, microsofts framework has a bit of magic that you means you can configure a change ( like a button click, or change of a combobox ) to do a postback. That means the browser will POST back the page with the changes, it then translates these into events, like text changing, or button clicking, or combobox changing. Which you can handle, then it resends the changed page back to the browser.
So basically postbacks are triggered points where you can handle events on the server when using webforms. This is not exactly how other web frameworks work.