Sign in to follow this  
Khaos Dragon

need simple help with asp.net

Recommended Posts

Khaos Dragon    196
I am trying to write an ASP.net app for the first time using this language and having a bit of issues. I want to be able to add custom headers to my server responses and am for instance trying this....
protected void Page_Load(object sender, EventArgs e)
{
     Response.AddHeader("testName", "testValue");
     Response.Flush();
}
I am tracing all headers outputted and mine will not show up for some reason.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this