ASP.NET - how to check that data is coming from database or not using breakpoint
Asked By suresh jain on 02-Feb-13 03:51 AM
i want to check whether data is coming or not that i want to set to text boxes
i know for that breakpoints is use but how to do this
thanks
nadeem shaikh replied to suresh jain on 02-Feb-13 05:15 AM
if(dt.rows[ROWNUMBER]["Column name"].Tostring() != "")
{
Yourtextbox.Text = dt.rows[ROWNUMBER]["Column name"].Tostring()
}
OR
You can Check like this
if(dt.rows[ROWNUMBER]["Column name"].Tostring() != Syatem.DBNuLL.Value)
{
Yourtextbox.Text = dt.rows[ROWNUMBER]["Column name"].Tostring()
}