[RESOLVED] Question about paths
hi Guys,
I save the path of where a users profile image is stored in my database
Code:
~/Profile/Images/stig1.jpg
now in my code behind I create anchor controls dynamically and set the src attribute:
Code:
Dim imgStatusImage As HtmlGenericControl = New HtmlGenericControl("img")
imgStatusImage.ClientIDMode = UI.ClientIDMode.Static
imgStatusImage.ID = String.Format("img{0}", r.Field(Of Integer)("CommentID"))
imgStatusImage.Attributes.Add("src", UserProfile.ImageURL)
I am currently in the directory called Wall/Wall.aspx. Profile is one directory up. If i use ../Profile/Images/stig1.jpg it works. I would have though asp.net would resolve the url when I use the tilde ~. How can I make this work using the ~
Re: [RESOLVED] Question about paths