Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > web service dataset

Thread Tools

web service dataset

Posts: n/a
I have a web service that calls SP's and returning a dataset. At times the
data is coming back as 0 and if that is the case i need to display nothing
just leaving it blank. With accessing data like this how can I check to see
if the data is 0?



if ISDN is 0 i need to display nothing. how can i do that?
I'm using a datalist to display the output. and calling the web method in
the web service. code to all the web service

public GetAllBooks()
dim me as = new
dim ds as new dataset
dim dvBook as new dataview

ds = me.GetBooks()
dvBook = ds.table(0).defaultView
dlBooks.datasource = dbBook

end sub

Reply With Quote
Steven Cheng[MSFT]
Posts: n/a
Hi Mike,

As for the DataSet's checking problem you mentioned, I think Shailesh's
suggestion that use the select method of the datatable is considerable if
the the <ISDN> is just a simple column in the DAtaTable. Also, since the
DataSet has GetXml method which can help return the dataset's xml
representation, you can use the APIS under the System.Xml namespace to
query this <ISDN> element (such as using the SelectSingleNode with
specified xpath). Thanks.


Steven Cheng
Microsoft Online Support

Get Secure!
(This posting is provided "AS IS", with no warranties, and confers no

Get Preview at ASP.NET whidbey

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does timer in Web Service Global.asax block my Web Service from processing web-site requests? Leo Violette ASP .Net Web Services 0 04-17-2009 12:39 AM
DataSet and dataSet JimO ASP .Net 2 03-08-2006 02:39 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N ASP .Net 1 10-31-2003 02:39 AM
DataSet to DataSet Joseph D. DeJohn ASP .Net 1 08-04-2003 03:25 AM