G
Guest
I have a C# webmethod that returns a dataset, What i want to do is if an
error occurs to call the error method and pass that back to the front end
client app.
i have
public dataset names()
{
dbconnection;
try
{
//excute SP's
}
catch (Exception e)
{
logErrors(e.message) // if this then call logErrors then stop
processing this method
}
return dataset
}
error occurs to call the error method and pass that back to the front end
client app.
i have
public dataset names()
{
dbconnection;
try
{
//excute SP's
}
catch (Exception e)
{
logErrors(e.message) // if this then call logErrors then stop
processing this method
}
return dataset
}