|
-
Jul 10th, 2005, 05:53 PM
#1
How do people deal with datasets, textboxes and DBNulls?
How do people deal with datasets, textboxes and DBNulls?
Woof
-
Jul 10th, 2005, 06:01 PM
#2
Re: How do people deal with datasets, textboxes and DBNulls?
Verrry carefully....
Actualy, I don't allow DBNulls to reach the application. Since I use stored proces for everything, I wrap all my fields (when applicable) with ISNULLs.
Tg
-
Jul 10th, 2005, 07:24 PM
#3
Junior Member
Re: How do people deal with datasets, textboxes and DBNulls?
if you don't us isnull, then i would write the function below (make sure it's public)
private sub BindPageData()
txtFirstName.Text = convertdbnulltostring(row("FirstName"))
end sub
'on some module page
public function convertdbnulltostring(obj as object) as object
if isdbnull(obj) then
return ""
else
return obj
end if
end function
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|