Page CallBack

B

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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,187
Latest member
RosaDemko

Latest Threads

Top