Results 1 to 2 of 2

Thread: linkable table cell in web table control

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2004
    Posts
    169

    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
    Last edited by redshirtme; Mar 1st, 2005 at 04:58 PM.

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width