user control header page in asp.net C#?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nirmalsingh
    New Member
    • Sep 2006
    • 218

    user control header page in asp.net C#?

    Hai all,

    I am new to asp.net c#. using visual studio 2005. my question is

    i want to to use a header page(html) in all page in common. can i use user control like that or any other way and how? if so, i wish to keep login user's id in hidden text box of header page instead of maintaining it in session. is it possible to do like this?
    another doubt is if i do so, i will get three pages in a screen such as header, content and footer. can i access value of content page in header using javascript? and content of hidden text value in content page?
    thanx in advance.
  • somnathmali
    New Member
    • May 2007
    • 4

    #2
    this is simple task

    1. User Master Page. ( Master page is new concept in ASP.NET 2.0 )

    2. Add Header user control in the Master page.

    3. and set the Masterpage property of other pages to newly created masterpage.

    Note:

    you need to remove all HTML , HEAD , and Body, form tags from the content pages.

    check MSDN for more help

    Comment

    Working...