Re: New To ASP.Net - Templating - Good Methods?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Many thanks, the custom user controls look like exactly what i needed!

Thanks,
Taz

"Elton W" <EltonW@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EEA732C5-4426-4E2B-9390-F8ECA55ED947@xxxxxxxxxxxxxxxx
Hi Tarun,

1. create usercontrol and put menu in it. Then put usercontrol in
individual
pages. When you need change menu, you only need change it in the
usercontrol.

2. use Master page: create menu (and other common staff) in the Master
page,
then create Contend pages and refer MasterPageFile. Any menu changes only
need to be done in one place, master page.

HTH

Elton Wang

"Tarun Mistry" wrote:

Hi all, im new to ASP.NET, migrating from PHP, I hope some nice folks can
help me out here.

With PHP im very used to creating a template system so i can start
designing/coding early and alter a single template which is then
refershed
through the entire site (a good example being a menu).

Im totally lost in ASP.NET (2.0) right now, is this possible? What should
I
be looking towards.

Thanks for any help and input.

Kind Regards
Tarun





.



Relevant Pages

  • Re: Reference A var on Master Page from User Control
    ... I'm not positive how to do it from the usercontrol itself, ... suggested and I still can't get access to the Property in the Master Page ... Do it with a private variable and public property. ... Public Property UserId() As Int32 ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Accessing public methods in user controls
    ... if you want to access a usercontrol in Master page (from ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Add body onload attribute from UserControl?
    ... My application consists of a MasterPage which is used for all WebForms. ... In one complicated UserControl I have a number of Javscript functions. ... attribute to the Body tag which is generated by the Master Page. ... How can I add the attribute from the code-behind of the User Control? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Add body onload attribute from UserControl?
    ... My application consists of a MasterPage which is used for all WebForms. ... In one complicated UserControl I have a number of Javscript functions. ... attribute to the Body tag which is generated by the Master Page. ... can't add it in the declaration in the Master Page, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Add body onload attribute from UserControl?
    ... My application consists of a MasterPage which is used for all WebForms. ... In one complicated UserControl I have a number of Javscript functions. ... attribute to the Body tag which is generated by the Master Page. ... How can I add the attribute from the code-behind of the User Control? ...
    (microsoft.public.dotnet.framework.aspnet)