[thelist] parsing querystrings in .net

Andrew Martin comitque at hotmail.com
Sat Sep 25 14:29:05 CDT 2004


I'm new to .NET and am trying to figure out how to use a query string 
instead of a hard-coded file for this code; I'm showing the way I would do 
it in ASP, just for clarity.

<asp:xml runat="server" id="xmlDisp" 
DocumentSource="<%=Request.Querystring("recipe")%>" 
TransformSource="recipes.xslt" />

If you replace the Document Source with a valid xml file, it'll render as it 
should but I want to just pass a variable to the page and have it show that 
document.  Is there an easy way to do this?

Thanks! 


More information about the thelist mailing list