Postback Handling

  • Thread starter Thread starter SMAccount
  • Start date Start date
S

SMAccount

According to Microsoft, The Page.RegisterRequiresPostBack Method
"Registers a control as one that requires post-back handling."

Is "post-back handling", something that the Page Does?

Is "post-back handling" the process by which, the page framework
searches the posted content and determines whether a posted name
corresponds to the UniqueID of a server control that implements
IPostBackEventHandler and if so, it invokes the RaisePostBackEvent
method on that control.

Or is "post-back handling" something else, and if so, what?

Thank you.
 
Page.RegisterRequiresPostBack causes the page to render the client script
function "__doPostBack()" used by controls that want to postback. the
control need to render some client script that calls this function in order
to perform a postback.

the only controls that do not need this are submit buttons, which the
browser will automatically perform a postback for.

-- bruce (sqlwork.com)
 
Thank you. It was also my understanding that RegisterRequiresPostBack
tells the page, that a particular control always wants to look at
postback even if there is no postdata specific to it.

None of this is very well described in the Microsoft Documentation.
 
Back
Top