Href with imbedded single quote

  • Thread starter Thread starter Wayne Wengert
  • Start date Start date
W

Wayne Wengert

I am trying to build a list of href statements that include parameters as in
the following code:

Response.Write("<td align='center'><a href='YTDDetails1.asp?jname=" &
aryRslt(0,i) & "&jclass=" & ColList(j+1) & "'>" & aryRslt(j,i) & "</a>")

The value of the aryRslt(0,i) is names that can include a single quote (e.g.
"O'Brien") and that truncates the statement. How should I code this to
accomodate that?
 
I dont think single quotes in attribute names are legal, my advice is to
avoid them.
 
Back
Top