i need to pass a variable to this function.
if i set my string without the parameter like
this works ok in that the window is launched.
Dim reportLink As HyperLink
reportLink = New HyperLink
reportLink.Text = "Map"
reportLink.ImageUrl = "images/thumbnails/map-icon.jpg"
reportLink.Attributes.Add("onclick", "return openRadWindowFromGrid();")
however if i add my parameter variable with
reportLink.Attributes.Add("onclick", "return openRadWindowFromGrid(" + UrlString + ");")
the link doesnt trigger at all...
whats the correct way to construct this string?
It seems that the resulting string is unquoted. For example:
Originally Posted by mark-web
which would be treated as attempting to use a variable called grid5