RE: ICallbackEventHandler
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Wed, 05 Apr 2006 06:25:20 GMT
Hi Salam,
Thank you for posting.
Regarding on the ASP.NET 2.0 script call back issue, based on my research,
it seems a document issue. As for the ICallBackEventHandler interface, it
contains two member functions we need to implement:
#ICallbackEventHandler Methods
http://msdn2.microsoft.com/en-us/library/dcc3kkye.aspx
The "RaiseCallbackEvent" function does not have return value, so we can not
return any data in this function. If we need to return data to client-side,
we need to use the "GetCallbackResult" function. e.g:
_cbResult is a page member variable
=====================================
#region ICallbackEventHandler Members
public string GetCallbackResult()
{
return _cbResult;
}
public void RaiseCallbackEvent(string eventArgument)
{
_cbResult = eventArgument + "__" + DateTime.Now.ToLongTimeString();
}
#endregion
==============================
Hope this helps. And sorry for the inconvenience the document problem
brings you.
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
.
- Prev by Date: Re: problem with encoding
- Next by Date: Re: WebRequest and Range Header
- Previous by thread: RE: Using System.Transactions with Oracle
- Next by thread: Commercial component: joystick driver controlled by user software
- Index(es):
Relevant Pages
|