Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

Into my asp.net application there is a cookie called: " Location ". what i am looking for to do is in another page i want to pass this value and make the value is a page title in browser tab. (please note that i am using c#)

Example of how the cookie value will look like into tab:
ABC Sweden

As ABC is the website name and Sweden is cookie value will be one country name such as USA or Sweden etc.
Posted
Updated 8-Jul-15 12:26pm
v2
Comments
Peter_in_2780 9-Jul-15 0:03am    
As far as I know, the browser tab text is set from the HTML <title> element (if it is present). Not sure what the fallback is.

1 solution

set page title in second page by fetching the value from Cookie

C#
this.Page.Title = "ABC - "+Request.Cookies["Location"].Value;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900