Click here to Skip to main content
Licence 
First Posted 17 Feb 2006
Views 13,593
Bookmarked 13 times

common title in whole web application

By | 17 Feb 2006 | Article
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

About the Author

Ritesh Sutaria



India India

Member

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.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 PinmemberRoberto Collina10:35 9 Mar '10  
GeneralMy vote of 1 PinmvpLuc Pattyn1:19 5 Feb '10  
GeneralMy vote of 1 Pinmemberhammerstein056:55 22 Jan '10  

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.

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