R
RobertP
If I have a WebMethod that takes a parameter, what is the correct way to
validate it? I could throw an exception, but that does not seem right.
public DataSet TestMethod( string MyString )
{
// Validation Code
if ( MyString =="InvalidValue" )
Throw SoapException();
// Real code starts here
return ds;
}
validate it? I could throw an exception, but that does not seem right.
public DataSet TestMethod( string MyString )
{
// Validation Code
if ( MyString =="InvalidValue" )
Throw SoapException();
// Real code starts here
return ds;
}