asp.net templates!

  • Thread starter Thread starter hansiman
  • Start date Start date
H

hansiman

in my asp.net project I find myself adding new .aspx files and adding
stylesheet and javascript links in the header part.

Is there a centralized way / method to ensure that a .aspx file has
the correct stylesheet and javascript links in the header part?

How do you do it?
 
Hi,

One of the ways to do that is using an asp.net literal control.

Here is a sample.

aspx file

<html>
<head>
<asp:Literal runat="server" id="ltlTitle" />
</head>
<body>
test
</body>
</html>

in the aspx.cs file

protected Literal ltlTitle;

ltlTitle.Text = "<title>this is the title of my form</title>";

Hope this helps!
Franck


| in my asp.net project I find myself adding new .aspx files and adding
| stylesheet and javascript links in the header part.
|
| Is there a centralized way / method to ensure that a .aspx file has
| the correct stylesheet and javascript links in the header part?
|
| How do you do it?
|
 
I don't know how indepth you want to go, but here is what we do in my
development group.

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q320985

It enables use to have a custom page layout that appears when my developers
select "Add new item". We have fully customized control of the initial Html
layout of the page and the initial code behind file.

HTH,

bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top