Grant,
Thanks for replying. What I am trying to do is use the htmltextwriter
to output the line. I am reading in an xml file and parsing it for
output to an aspx page.
Here is the line of code:
htmltextwriter.writer(("'<a
href=my.aspx?CID=<%=request.querystring("CID& quot;)%>'>my
link</a>")
As I mentioned above, when I run the web app the link shows
http://mycomputer/xmlnodes/manageforums.aspx?CID=<%=Request.QueryString("CID" )%>
(mycomputer is a fictious url)
If I view source with notepad and save it as an aspx page the link
works properly.
Larry
On Thu, 5 Jan 2006 09:53:36 -0000, "Grant Merwitz"
<gr***@workshare.com> wrote:
I can't seem to see your page.
Try UrlEncode the link.
Response.Redirect("http://mycomputer/xmlnodes/manageforums.aspx?CID=" +
Server.UrlEncode("<%=Request.QueryString("CID")%> "));
"larryvan" <la*******@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googleg roups.com...I have been beating my head against a wall for two days now. I need to
output a hyperlink using htmltextwriter.write that looks like this:
<a href='manageforums.aspx?CID=<%=Request.QueryString ("CID")%>'>
When I run the app and click on the link it looks like this:
http://mycomputer/xmlnodes/manageforums.aspx?CID=<%=Request.QueryString("CID" )%>
If I view the source in notepad the syntax for the link is correct.
Furthermore, I can save that page with a .aspx extension and load it
into the browser and the link works correctly.
Any ideas? This seems like something developers would want to do quite
often.