Ask a Question related to ASP.NET General, Design and Development.
-
suzy #1
question about page template - please help
hi,
i have created a aspx page template by creating a template.cs file which
inherits from the page class. In this file I override the OnInit event and
create a template in the form of a header, left menu and a footer. there is
also a body area where the main content of the page will go.
i created these 4 areas by dynamically creating a placeholder in each area
at runtime. in the template.cs i load user controls into each area except
for the body area (as this is meant to be populated by the main aspx page).
in my aspx page (which inherits the template class) if i create controls at
runtime i can simply reference the placeholder in the main body area, and
add a control to it at runtime.
my problem is that if i try and create controls at design time in my aspx
page, they appear before the header, rather than in the main body area.
i had a feeling i was creating my template in a wrong way when i did it,
because i was generating html code in my .cs file and it's hard to
read/maintain when you have several table cells.
can anyone please give me an example of how to create a template with a
header, left menu and a footer?
i have examples on the net but they all seem to be doing it in different
ways.
ps: i am a beginner to asp.net.
suzy Guest
-
Newbie Question: Biz Card Template Question
Hi, I got the Pagemaker PlugIn - I am using one of the templates for Business Cards - the elements appear to be grouped (bound box all around when I... -
Template question
Hi everyone I'm working on a new website of a soccerclub, here you can take a look http://www.harmklaassen.nl/vvbaronietest/ But now I want to... -
Question about new page creation from template
Hello everyone! I'm relatively new to using Contribute (v3.11) and have an issue. I've created and uploaded a client's site, using DW8, to a... -
Page Template
Hi How can I do a page tamplate VB If you have an exapme Thinks -
..................| template question |....................
I have created this template where two colums are editable. When I copy and paste a paragraph to an editable column and try to put a break (<br>)... -
Saravana #2
Re: question about page template - please help
Check out this article, this will help you. Here i have explained the basic
stuff of Page Template, how you need to create page templates. I have also
given links to various article which talks about Page Template
[url]http://www.microsoft.com/india/msdn/articles/87.aspx[/url]
--
Saravana
Microsoft India Community Star,MC**
[url]www.ExtremeExperts.com[/url]
"suzy" <me@nospam.com> wrote in message
news:OqQXb3$WDHA.3268@tk2msftngp13.phx.gbl...and> hi,
>
> i have created a aspx page template by creating a template.cs file which
> inherits from the page class. In this file I override the OnInit eventis> create a template in the form of a header, left menu and a footer. therepage).> also a body area where the main content of the page will go.
>
> i created these 4 areas by dynamically creating a placeholder in each area
> at runtime. in the template.cs i load user controls into each area except
> for the body area (as this is meant to be populated by the main aspxat>
> in my aspx page (which inherits the template class) if i create controls> runtime i can simply reference the placeholder in the main body area, and
> add a control to it at runtime.
>
> my problem is that if i try and create controls at design time in my aspx
> page, they appear before the header, rather than in the main body area.
>
> i had a feeling i was creating my template in a wrong way when i did it,
> because i was generating html code in my .cs file and it's hard to
> read/maintain when you have several table cells.
>
> can anyone please give me an example of how to create a template with a
> header, left menu and a footer?
>
> i have examples on the net but they all seem to be doing it in different
> ways.
>
> ps: i am a beginner to asp.net.
>
>
Saravana Guest



Reply With Quote

