473,396 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Page CallBack

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!
Aug 24 '06 #1
1 1902
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
"Ben Schumacher" <bs*********@navegate.comwrote in message
news:%2****************@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!

Aug 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: TS | last post by:
Im in a web page and call an asynchronous method in business class. the call back method is in the web page. When page processes, it runs thru code begins invoking the method then the page...
3
by: Glen | last post by:
This is my first attempt as asynchronous processing. I have created a small test app as proof of concept, but I am having one proglem. In the example (code listed below), my callback routine has...
4
by: Jeremy Holt | last post by:
Hi, In a windows.forms application I would BeginInvoke a delegate on the UI thread to collect data from a database. When the call returns to the AsyncCallback, if the Control.InvokeRequired =...
0
by: Roy | last post by:
The following code - straight out of the MSDN help - uses ASP.NET 2.0's Client Callback features, and yet, ALWAYS postback to the page. Why? I expected no postbacks to occur. <%@ Page...
1
by: Demi | last post by:
I'm trying to use an Async="true" page to do an async HttpWebRequest. My code is based on the MSDN example: http://msdn2.microsoft.com/en-us/library/21k58ta7.aspx The problem I'm having is...
0
by: skberen | last post by:
Issue: We have a web user control on a web page (aspx) that uses the new ASP.Net 2 feature Client Callback. The web user control is using a CheckBoxList control and button control to allow the...
1
by: roend83 | last post by:
Hi, I'm trying to use the Asp.net Callback to save changes to data when the user leaves the page or closes the browser. This works fine on IE; however, on firefox the callback never gets...
3
by: Nathan Sokalski | last post by:
I am recieving the following error on the second postback of a page I have written: The state information is invalid for this page and might be corrupted Stack Trace: ...
0
by: sydneycan | last post by:
Hi everyone. First time I'm posting something, so far I've been able to google it out but this time no luck so far... I have a html input checkbox on my page From the javascript 'switchlayers' in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.