T Tumurbaatar S. Aug 24, 2005 #1 How to change a document's title programmatically, from the Page_Load() for example?
G Grant Merwitz Aug 24, 2005 #2 you can either create a literal and set its text to: <Title>Some TITLE</title> Or, you can declare a public variable in your code like follows public string PageTitle; then in your Title tag do this: <TITLE><%=PageTitle%></TITLE>
you can either create a literal and set its text to: <Title>Some TITLE</title> Or, you can declare a public variable in your code like follows public string PageTitle; then in your Title tag do this: <TITLE><%=PageTitle%></TITLE>
G Grant Merwitz Aug 24, 2005 #3 Sounds fine to me, never tested i though. if you change the # to and =, you wouldn't have to use the Page.DataBind() method. But it should work fine
Sounds fine to me, never tested i though. if you change the # to and =, you wouldn't have to use the Page.DataBind() method. But it should work fine
S Siva M Aug 24, 2005 #4 Hi, Declare it as HtmlGenericControl. i was also thinking that. But how do you declare the title in your code behind? Vis studio doesn't add it automatically
Hi, Declare it as HtmlGenericControl. i was also thinking that. But how do you declare the title in your code behind? Vis studio doesn't add it automatically