S
Shelly
hi,
I am trying to create a custom HTTP header and trying to
access that variable on another ASP.NET webpage.
Following is the code base-
I use the following code to set the header
Response.AppendHeader("MYKEY", "myValue")
and do a redirect to SecondPage.aspx
Response.Redirect("SecondPage.aspx")
In the second page, I try to retrieve the value using the
following code
Response.Write(Request.Headers.Get("MYKEY"))
I dont see any reponse back. Am I setting the header in a
inapproriate way? What is the reason y i am not able to
see my custom http header on the destination page. I am
able to get the standard http headers like "Host","User-
Agent" etc....
Can anyone enlighten me???
Thanks ..
Shelly
I am trying to create a custom HTTP header and trying to
access that variable on another ASP.NET webpage.
Following is the code base-
I use the following code to set the header
Response.AppendHeader("MYKEY", "myValue")
and do a redirect to SecondPage.aspx
Response.Redirect("SecondPage.aspx")
In the second page, I try to retrieve the value using the
following code
Response.Write(Request.Headers.Get("MYKEY"))
I dont see any reponse back. Am I setting the header in a
inapproriate way? What is the reason y i am not able to
see my custom http header on the destination page. I am
able to get the standard http headers like "Host","User-
Agent" etc....
Can anyone enlighten me???
Thanks ..
Shelly