linkable table cell in web table control
Basically, I have a linkable table cell in web table control, the frustrated part is the linkable url contains apostrophe in person's name, so it makes that really hard to work correctly.
say, if the correct url PAGE will be D'Inocenzi,Mike.htm
how to make the code below work right?
.Cells(2).Text = "<a href='..//photos/D'Inocenzi,Mike.htm'>" & dr("name")& "</a>"
......
thanks
Re: linkable table cell in web table control
You are using VB.NET yes?
Try:
Code:
.Cells(2).Text = "<a href=""..//photos/D'Inocenzi,Mike.htm"">" & dr("name")& "</a>"
The double double quotes should escape the double quote characters therefore not needing apostrophes for the a link and hence allowing apostrophes within the name.
HTH
DJ