Home All Groups Group Topic Archive Search About
Author
24 Aug 2006 8:31 PM
Ben Schumacher
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!

Author
24 Aug 2006 9:16 PM
Steve C. Orr [MVP, MCSD]
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

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


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!
>