web 2.0

ASP.NET(vb.net) Response.AddHeader() - Response Object

ASP.NET(vb.net) Response.AddHeader() - Response Object - Response.AddHeader() : The AddHeader method adds a new HTML header and value to the response sent to the client. It does not replace an existing header of the same name. After a header has been added, it cannot be removed.

ShotDev Focus:
- ASP.NET(vb.net) Response.AddHeader() - Response Object

Syntax


AddHeader(
HeaderName,
HeaderValue
)

Example

<% Response.AddHeader "CustomHeader", "CustomValue" %>

Screenshot
You can retrieve the header if a special client returns it to the server on the next request with the following

<% ReturnedValue = Request.ServerVariables(”HTTP_CustomHeader”) %>
.
.
.

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.