G
Guest
I am implementing the ICallbackEventHandler interface, and one of its members
methods in a server control as follows :
public void RaiseCallbackEvent(string eventArgument)
{
if (eventArgument != "")
{
result += tmp1.ToString() + "), new Array(" + tmp2.ToString() + "));";
return result;
}
else
{
return "showQueryDiv" + JS_suffixe + "('" + eventArgument + "', new
Array(), new Array());";
}
//throw new Exception("The method or operation is not implemented.");
}
Yhe other method which I dont use as follows
public string GetCallbackResult()
{ }
When I compile I get the following erros
"Since 'contact_project.RaiseCallbackEvent(string)' returns void, a return
keyword must not be followed by an object expression"
and the second error
"contact_project.GetCallbackResult()': not all code paths return a value'
Thanks for your help
methods in a server control as follows :
public void RaiseCallbackEvent(string eventArgument)
{
if (eventArgument != "")
{
result += tmp1.ToString() + "), new Array(" + tmp2.ToString() + "));";
return result;
}
else
{
return "showQueryDiv" + JS_suffixe + "('" + eventArgument + "', new
Array(), new Array());";
}
//throw new Exception("The method or operation is not implemented.");
}
Yhe other method which I dont use as follows
public string GetCallbackResult()
{ }
When I compile I get the following erros
"Since 'contact_project.RaiseCallbackEvent(string)' returns void, a return
keyword must not be followed by an object expression"
and the second error
"contact_project.GetCallbackResult()': not all code paths return a value'
Thanks for your help