Sunday, 28 April 2013

How to check for a particular record whether it is present or not in dataset? | VB.Net Interview Questions

if the record is not present i want to display a message as no records what is the code for checking
if you are using "DataReader" then
if DataReaderName.HasRows then
statements
else
statements
end if
if you are using "DataSet" then
if DataSetName.TABLES.("tablename").ROWS.COUNT=0 THEN
statements.
end if

No comments: