Last post May 06, 2013 03:47 PM by Illeris
May 06, 2013 02:32 AM|Nisarga|LINK
Our application is like, based upon request to the web service (.asmx page), the response will be the url to which it has to redirect to aspx page. So we are using Http 302 redirect. My question is how we can pass parameters to the redirect page without
passing parameters as query string in url. Following code which am using
HttpContext.Current.Response.StatusCode = 302;
HttpContext.Current.Response.Status = "302 Found";
HttpContext.Current.Response.RedirectLocation = "http://localhost:58619/webservice/RequestForm.aspx?AssocID=" + AssocID + "&VendorID=" + VendorID";
I need to display content of http://localhost:58619/webservice/RequestForm.aspx page under requested url. Instead of passing parameters in this url, is there any way to pass the parameters
to the aspx page without using query string. If it is possible, how we can read these parameters at the destination page?
Please provide some example code for this
Thanks in advance
May 06, 2013 02:59 PM|adamturner34|LINK
Well, cookies or cache might work for you.
May 06, 2013 03:47 PM|Illeris|LINK
Or you could just encrypt your parameters, much easier :-)