XML Compliant QueryString
-
:confused: I am wanting to use semicolons( ; ) to separate my querystring parameters. And I would like to do this without extending/overriding HttpRequest; Does anyone know of a setting in IIS or .NET that allows you to use this feature. I want to eliminate the ampersands from the querystring Don Shanks U of W dshanks@nyet.spam.please.washington.edu
-
:confused: I am wanting to use semicolons( ; ) to separate my querystring parameters. And I would like to do this without extending/overriding HttpRequest; Does anyone know of a setting in IIS or .NET that allows you to use this feature. I want to eliminate the ampersands from the querystring Don Shanks U of W dshanks@nyet.spam.please.washington.edu
Hi, I don't know a way to do this but I have a suggestion for you... you can pass the entire semicolon seperated string in a single query string and then parse the querystring in the next page. what I mean is : http://myServer/test.aspx?qs=a;b;c;d and then in next page parse the querystring qs and then split the string with ";" hope this solves ur prob... regards, Aryadip. Cheers !! and have a Funky day !!
-
:confused: I am wanting to use semicolons( ; ) to separate my querystring parameters. And I would like to do this without extending/overriding HttpRequest; Does anyone know of a setting in IIS or .NET that allows you to use this feature. I want to eliminate the ampersands from the querystring Don Shanks U of W dshanks@nyet.spam.please.washington.edu
hi, Check the HTMLENOCODE and HTMLDECODE functions in .net http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebHttpServerUtilityClassHtmlEncodeTopic1.asp -Manish
-
:confused: I am wanting to use semicolons( ; ) to separate my querystring parameters. And I would like to do this without extending/overriding HttpRequest; Does anyone know of a setting in IIS or .NET that allows you to use this feature. I want to eliminate the ampersands from the querystring Don Shanks U of W dshanks@nyet.spam.please.washington.edu
The use of ampersands within the querystring is part of th http specification. If you want to use ; instead you will have to abandon the use of the Querystring collection object and grab the raw url and parse the information yourself. Are you trying to store a URL into an xml document? If that is the problem, why not just encode the url correctly eg. http://www.myweb.co.uk/somepage.aspx?arg1=2&arg2=3