hi,
I'm writing a webmethod to return a dataset using ado.net, the method takes
parameters as follows:
<WebMethod(Description:="This method is used to Get Account Report")> Public
Function GetAccountReport(ByVal businessName As String, ByVal userName As
String, ByVal passWord As String, ByVal sentFromDateTimeText As String,
ByVal sentToDateTimeText As String) As DataSet
the thing is that how do I validate the fields sent over before I send it to
the database, for required fields; correct date time,e tc. and return it?
I need to return meaningful text but not an empty dataset?
is this possible?
Thanks
Tu-Thach - 09 Dec 2004 14:57 GMT
You should throw an exception when the parameters are not valid.
> hi,
> I'm writing a webmethod to return a dataset using ado.net, the method takes
[quoted text clipped - 12 lines]
>
> Thanks