M
Mike
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?
example:
<Books>
<computers>
<type>Programming</type>
<ISDN>0</ISDN>
</computer>
</Books>
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.
vb.net code to all the web service
public GetAllBooks()
dim me as getbooks.book = new getbooks.book
dim ds as new dataset
dim dvBook as new dataview
ds = me.GetBooks()
dvBook = ds.table(0).defaultView
dlBooks.datasource = dbBook
dlBook.databind
end sub
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?
example:
<Books>
<computers>
<type>Programming</type>
<ISDN>0</ISDN>
</computer>
</Books>
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.
vb.net code to all the web service
public GetAllBooks()
dim me as getbooks.book = new getbooks.book
dim ds as new dataset
dim dvBook as new dataview
ds = me.GetBooks()
dvBook = ds.table(0).defaultView
dlBooks.datasource = dbBook
dlBook.databind
end sub