Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > ICallbackEventHandler

Reply
Thread Tools

ICallbackEventHandler

 
 
Ben Schumacher
Guest
Posts: n/a
 
      08-24-2006
I have a page that implements ICallbackEventHandler. I'm trying to
accomplish auto saving a page everytime the user navigates away from the
page. To initialize the callback, I fire the onunload event on the window
as can be seen below.

<script type="text/javascript">

window.onunload = Save;

function Save()
{
CallServer()
}

</script>

This works great as I can see in my Page_Load event that the Page.IsCallBack
property becomes true. Now here is where I am stuck. My RaiseCallBack
event fires just as it should, but when i try to read the ".text" values of
all my textbox controls on the form I get whatever was in the previous
viewstate. Not what i typed/changed the textbox to just before the
callback. Whats even more weird is that when the page comes back to the
client after re-rendering it self i can see my changed text box value. So i
fire the callback again, and still i can't read the current value out of the
textbox control. It's like the ICallBackEventHandler interface doesn't keep
track of the changes on the form. It just gives me whatever that last
viewstate values that were generated from a full page POSTBACK not CALLBACK.

Any suggestions?

Thanks,

Ben


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Example in help about ICallbackEventHandler seems to be wrong? Edwin Knoppert ASP .Net 0 01-19-2006 11:48 AM
ASP.NET 2.0 ICallbackEventHandler Lorenzo Soncini ASP .Net 2 12-28-2005 05:31 PM
ASP.NET 2 ICallbackEventHandler Maya Nasri ASP .Net 2 11-02-2005 10:34 AM
ICallbackEventHandler Q???? JimGreen ASP .Net 1 10-25-2005 01:30 AM
ICallbackEventHandler and Mozilla begemot ASP .Net 3 06-22-2005 08:35 AM



Advertisments