Click here to Skip to main content
Click here to Skip to main content

common title in whole web application

, 17 Feb 2006
Rate this:
Please Sign up or sign in to vote.
Designing Common Title in Web Application

Introduction

Making Common Page Title in whole application

when we add webform in a project it is added from a predefined template by microsoft. All templates resides in <visual studio.net dir>\VC#\VC#Wizards\CSharpAddWebFormWiz\Templates\1033\ for c#

and in <visual studio.net dir>\VB7\VCWizards\WebForm\Templates\1033\ for vb

you can change webform1.aspx in those directories to make default form look as you want so you can change Title Tag in those forms to make a common application title, so we don't need to write it again and again in all forms.

changing webform1.aspx for c#

open webform1.aspx from <visual studio.net dir>\VC#\VC#Wizards\CSharpAddWebFormWiz\Templates\1033\

change title tag like this id and runat attributes are optional

<title id=PageTitle runat=server> Your Page Title </title>

or you can change pagetitle at runtime

protected HtmlGenericControl PageTitle=new HtmlGenericControl();

private void Page_Load(object sender, System.EventArgs e) {

          PageTitle.InnerText="Your application title";

}

enjoy!

regards,

aadreja

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Ritesh Sutaria has about 7+ years of IT experience on various technologies like ASP.net, PHP, VB, Oracle, PGSql, Sql Server. He has worked on various platforms including Windows, Linux. He has a powerfull problem solving skills which actually makes complex problems into simple problems.

Comments and Discussions

 
GeneralMy vote of 1 PinmemberRoberto Collina9-Mar-10 11:35 
GeneralMy vote of 1 PinmvpLuc Pattyn5-Feb-10 2:19 
GeneralMy vote of 1 Pinmemberhammerstein0522-Jan-10 7:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141216.1 | Last Updated 17 Feb 2006
Article Copyright 2006 by Ritesh Sutaria
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid