|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Help with HtmlTextWriterI have developed a treeview control that reads in an xml file which holds the information for building the tree. The nodes are hyperlinks to other pages. I want to be able to include the inline code <%Request.QueryString("CID")%> I use the htmltextwriter.write method to output the node. The problem is: When I run the app, the link appears in the page fine but when I roll over the link the url shows as: http://mycomputer/xmlnodes/manageforums.aspx?CID=<%=Request.QueryString("CID")%> Upon further testing, it appears that there is something going on with the htmltextwriter.write method. I did a simple experiment with the following piece of code: htmltextwriter.write(<a href='manageforums.aspx?CID=<%=Request.QueryString("CID")%>'>my link</a>") This produced the same result as above. If I do " view source" from the browser, which opens 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. Hello Larry,
Instead of the string literals '<' use < or < instead of '>' use > or > Cyril Gupta Cyril,
Thanks for replying. I tried that and got the same results. I used: htmltextwriter.write(<a href=''manageforums.aspx?CID=<%=Request.QueryString("CID")%>''>my link</a>") any other ideas? Show quoteHide quote On Sat, 7 Jan 2006 10:31:13 +0530, "Cyril Gupta" <nom***@mail.com> wrote: >Hello Larry, > >Instead of the string literals '<' use < or < > >instead of '>' use > or > > >Cyril Gupta >
Armin - Start sound problem revived in new thread
Loading data in the flexgrid takes long time adding asynchronous support VB 2003 - Odd Bug in My Program Deploying VB .NET application WITH MS Access db Paging, Filtering and Sorting Db Interaction spped issue with upgraded code from vb6 to vb.net Add a line break in label.text populating text boxes... How to trap if a cancel has occurred on cell validation? |
|||||||||||||||||||||||