master pages
-
i have created a master page login.master now i use this master page in login.aspx is there a way to put html tags in asp:content??? if not then how to put title of the current page?? :confused:
-
i have created a master page login.master now i use this master page in login.aspx is there a way to put html tags in asp:content??? if not then how to put title of the current page?? :confused:
You can use more then one Content Place Holder. So just place 2nd Place Holder at the top in Login.Master , and in the Login.aspx type the title of the Login Page. Or in the Master Page at the Page_Load() you can get the name of the current page
some_variable = System.Web.HttpContext. Current.Request.Url.AbsolutePath
and then type a switch statement to set a Label at the Top. LikeIf (some_variable.Contains("Login.aspx"))
lblTitle = "Login Page";