|
-
May 9th, 2004, 03:51 PM
#1
Thread Starter
Lively Member
Dbnull
Hi,
I am trying to return a URL for a picture based on the file path (which is just an nvarchar value from my DB). This works fine when there are no nulls however in reality when the system is operational there will be nulls so I need it to be able to cope with this. I thought this should be an easy fix but none of the solutions I've seen to similar problems on this forum work! The line of code I have is:
Private Sub Page_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.DataBinding
Dim dr As DataRow
dr = Me.Dsplayers.View_Player_Stats.DefaultView(Position).Row
Me.TextBox1.Text = DataBinder.Eval(dr, "Player_ID")
Me.TextBox3.Text = DataBinder.Eval(dr, "Player_Name")
Me.Image3.ImageUrl = DataBinder.Eval(dr, "Photo_Path")
If anyone has any ideas please let me know!
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
|