B
Boban Dragojlovic
in the codebehind portion of a page, I dynamically create a series of
hyperlinks that I add to the page.
in that code, I have something like this:
dim h as new hyperlink
h.NavigateURL = "/somepage.aspx?age=35&gender=M"
Unfortunately, when it renders the HTML page, it changes the ampersand in
the URL as follows
h.NavigateURL = "/somepage.aspx?age=35&gender=M"
This, of course, doesn't work, because the 2nd parameter's name has now been
changed from 'gender' to 'amp;gender'
How can I get around this?
(I tried setting the 'href' attribute directly ...
h.attributes.add("href","/somepage.aspx?age=35&gender=M") ... but it
produces the same result)
hyperlinks that I add to the page.
in that code, I have something like this:
dim h as new hyperlink
h.NavigateURL = "/somepage.aspx?age=35&gender=M"
Unfortunately, when it renders the HTML page, it changes the ampersand in
the URL as follows
h.NavigateURL = "/somepage.aspx?age=35&gender=M"
This, of course, doesn't work, because the 2nd parameter's name has now been
changed from 'gender' to 'amp;gender'
How can I get around this?
(I tried setting the 'href' attribute directly ...
h.attributes.add("href","/somepage.aspx?age=35&gender=M") ... but it
produces the same result)