K
Keith Patrick
I have to do some programmatic redirects (in several pages) based on URLs I
am given from an external source. The URLs have querystrings at the end,
but one in particular is about 240 chars long, so I need to programmatically
redirect to it. Unfortunately, I can't find a way to do it. There is no
Response.Form or Response.Attributes (Request has Form and Params, but they
are read-only). I've tried using AppendHeader to pass my K/V pairs there,
but they don't show up in the Request. AppendCookie *does* work in that
way, but when I put in all the cookie K/V pairs, the length limit hits me
again, leading my Response.Redirect to inexplicably take me to my login page
once I get to around 2000+ plus chars total.
I've also tried programmatically adding hidden inputs to the page, but
Controls.Add throws an exception because some of my pages have <% %> in them
Is there a straightforward way to populate the POST header so that I can
transparently replace my querystring with posted data?
am given from an external source. The URLs have querystrings at the end,
but one in particular is about 240 chars long, so I need to programmatically
redirect to it. Unfortunately, I can't find a way to do it. There is no
Response.Form or Response.Attributes (Request has Form and Params, but they
are read-only). I've tried using AppendHeader to pass my K/V pairs there,
but they don't show up in the Request. AppendCookie *does* work in that
way, but when I put in all the cookie K/V pairs, the length limit hits me
again, leading my Response.Redirect to inexplicably take me to my login page
once I get to around 2000+ plus chars total.
I've also tried programmatically adding hidden inputs to the page, but
Controls.Add throws an exception because some of my pages have <% %> in them
Is there a straightforward way to populate the POST header so that I can
transparently replace my querystring with posted data?