[thelist] parsing querystrings in .net

Ken Schaefer ken.schaefer at gmail.com
Sun Sep 26 21:21:34 CDT 2004

I would put the querystring value into a local variable, validate it,
and do something like this:

xmlDisp.documentSource = strRecipe


On Sat, 25 Sep 2004 12:29:05 -0700, Andrew Martin <comitque at hotmail.com> wrote:
> 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