Results 1 to 6 of 6

Thread: Question about Master files

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Exclamation Question about Master files

    Visual Studio 2008 ASP.NET

    I understand what a master file is that will be used for all the other pages when needed. But my question is how does the page know where to be placed in the master page? In otherwords, say the master page as a logo at the top along with other stuff. And at the bottom I have some links and a copyright statement. I want the content of the other pages that use this master page to go in between. How do you set that area in the master page to be for this?

    Thanks for your help!

    Warren
    Last edited by WarrenW; May 15th, 2009 at 03:13 PM. Reason: Added version to posting

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Question about Master files

    moved to asp.net

  3. #3
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Question about Master files

    *Edit

    Wasn't for vb.net
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Re: Question about Master files

    Sorry about that - I clicked the wrong forum link!

  5. #5
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Question about Master files

    Add one or more ContentPlaceHolder controls to the Master Page. They can be placed anywhere you need them.

    Add a Content control in the Child page for each ContentPlaceHolder control as needed (they are optional). Associate the content control to a place holder control via the ContentPlaceHolderId.

    The Content controls are where you place the typical ASP.NET/HTML controls or any other markup.

  6. #6
    Fanatic Member bharanidharanit's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    673

    Re: Question about Master files

    Quote Originally Posted by WarrenW View Post
    Visual Studio 2008 ASP.NET

    I understand what a master file is that will be used for all the other pages when needed. But my question is how does the page know where to be placed in the master page? In otherwords, say the master page as a logo at the top along with other stuff. And at the bottom I have some links and a copyright statement. I want the content of the other pages that use this master page to go in between. How do you set that area in the master page to be for this?

    Thanks for your help!

    Warren
    The attached file is an example of simple Login Form which uses master pages.
    Also the login form is connected with SQL Databases.
    LoginControl.zip

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width