I forgot to say that initially, I wanted my my raise event to return a
string, when I do
public string RaiseCallbackEvent(string eventArgument)
{}
then compile, I get the following error
'contact_project' does not implement interface member
'System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent(string)'.
'add_contact_project.RaiseCallbackEvent(string)' is either static, not
public, or has the wrong return type.
Thanks again
> I am implementing the ICallbackEventHandler interface, and one of its members
> methods in a server control as follows :
[quoted text clipped - 26 lines]
>
> Thanks for your help
Steven Cheng[MSFT] - 05 Apr 2006 07:25 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.

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)