D
David
Hi all,
I am developing a CMS with URL Rewriting. This however hides my valid
Request.QueryString values, which returns the underlying one that is used by
the ReWriting.
However, I have a plan... I am putting the string (which I can easily get
to) into HttpContext.Current.Item["MyQueryString"] which I then return
later. This sort of works, but I want to be able to use it like the
querystring...
So, if I then put it into a NameValueCollection like QueryString is, then I
want to be able to get at it like you would do with Request.QueryString.
My QueryString is within my Page class (My regular pages inherit from my
Page Class). So, I return it as something like...
string MyVal = Page.QueryString
However, this returns System.Collections.Specialized.NameValueCollection
If I was to do MyVal = Request.QueryString, I get the list of querystring
collection rather than the type.
How can I get it to return my collection?
notes...
If I put ?dave=abc123 in my querystring, then when I do...
string MyVal = Page.QueryString["dave"];
I do get the value... abc123
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
I am developing a CMS with URL Rewriting. This however hides my valid
Request.QueryString values, which returns the underlying one that is used by
the ReWriting.
However, I have a plan... I am putting the string (which I can easily get
to) into HttpContext.Current.Item["MyQueryString"] which I then return
later. This sort of works, but I want to be able to use it like the
querystring...
So, if I then put it into a NameValueCollection like QueryString is, then I
want to be able to get at it like you would do with Request.QueryString.
My QueryString is within my Page class (My regular pages inherit from my
Page Class). So, I return it as something like...
string MyVal = Page.QueryString
However, this returns System.Collections.Specialized.NameValueCollection
If I was to do MyVal = Request.QueryString, I get the list of querystring
collection rather than the type.
How can I get it to return my collection?
notes...
If I put ?dave=abc123 in my querystring, then when I do...
string MyVal = Page.QueryString["dave"];
I do get the value... abc123
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available