the cookie is sent in a header field and has nothing to do with method, as
it always appears before any post data. the query string data is alo
seperate from the form post data.
so:
Request.QueryString["foo"] returns "query"
Request.Form["foo"] returns "fom"
Request.Cookie["foo"] returns "cookie"
Request.ServerVariables["foo"] returns null
Request["foo"] returns the first value found in the
above order
counting on this order is bad coding.
-- bruce (sqlwork.com)
<ke******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Given the following:
<script>document.cookie = "foo=cookie;";</script>
<form action="form.aspx?foo=query" method="post">
<input name="foo" type="hidden" value="fom" />
<input type="submit" />
</form>
What is the value of Request["foo"] server side? Experiment shows that
GET overwrites POST which overwrites the cookie. Is this documented
somwhere?
Ken Prat