Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for DBNull in DataTable
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00887448
Message ID:
00887759
Views:
11
Oops... a little bug in the ointment... there should be quotes around the column name in the first line of the If:
If drReader.IsDBNull("UserName") Then
   txtUserName.Text = ""
Else
   txtUserName.Text = CStr(drReader("UserName"))
End If

Carl.
Carl Olson, Jr.
CEO, Founder
Cerelogic, Inc.

www.cerelogic.com

"Applying rocket science to business."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform