|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Page CallBackI have a .aspx page that implements ICallBackEventHandler. On the page I
have texbox server controls and a button with a click event set to trigger the call back to the server. I put a breakpoint in the page_load event to step through whats happening in the codebehind as the page is called back to the server. I cannot ever read the values of the textbox controls while back on the server stepping through the code. I can't read the values in the Page_Load, or the RaiseCallBackEvent, or anywhere for that matter. What is the deal? I just want to trigger a call back from the client and read values from the server controls on my page. The textbox values persist through page callbacks, but i can't read the values in code while the page is calledback on the server. This is so frusterating. Please help! New values that the user enters into textboxes are not automatically posted
back via your callback. Instead you have to explicity grab the values using JavaScript and pass them back as parameters through your callback. Here's an example: http://SteveOrr.net/articles/WebChat.aspx Show quoteHide quote "Ben Schumacher" <bschumac***@navegate.com> wrote in message news:uMs8ly7xGHA.3512@TK2MSFTNGP04.phx.gbl... >I have a .aspx page that implements ICallBackEventHandler. On the page I >have texbox server controls and a button with a click event set to trigger >the call back to the server. I put a breakpoint in the page_load event to >step through whats happening in the codebehind as the page is called back >to the server. I cannot ever read the values of the textbox controls while >back on the server stepping through the code. I can't read the values in >the Page_Load, or the RaiseCallBackEvent, or anywhere for that matter. >What is the deal? I just want to trigger a call back from the client and >read values from the server controls on my page. The textbox values >persist through page callbacks, but i can't read the values in code while >the page is calledback on the server. This is so frusterating. Please >help! >
objectdataSource case sensitive with parameters??
label overlap during design Don't understand state in WebControls class button problem Menu Wrap Problem FormView and HTMLEncode asp:hyperlinkfield format Gridviews together with Database with join CompositeControl Property Persisted But Not Reflected At Run/Desig ICallbackEventHandler |
|||||||||||||||||||||||