Click here to Skip to main content
11,486,466 members (76,011 online)
   

ASP.NET

 
JokeRe: Disable Pop-up Blocker Pin
jkirkerx13-Jan-13 14:31
memberjkirkerx13-Jan-13 14:31 
Question.i cant select master page as well as place code n seperate file textbox in vs 2008. Pin
Member 97128329-Jan-13 23:48
memberMember 97128329-Jan-13 23:48 
AnswerRe: .i cant select master page as well as place code n seperate file textbox in vs 2008. Pin
Sandeep Mewara10-Jan-13 4:07
mvpSandeep Mewara10-Jan-13 4:07 
AnswerRe: .i cant select master page as well as place code n seperate file textbox in vs 2008. Pin
jkirkerx10-Jan-13 13:54
memberjkirkerx10-Jan-13 13:54 
In the page, you build it like a regular webpage with the header and footer, and in the middle, you place a content placeholder object, a container that will hold that space in the seperate file you created.

Master page
<%@ Master Language="VB" CodeFile="en-us_store.master.vb" Inherits="masterpages_store" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="shortcut icon" href="/favIcon.ico" />
</head>
<body>
    <form id="form1" runat="server">
      <div id="DefaultHeader_Wrapper_III">
        <asp:ContentPlaceHolder ID="SiteMap" runat="server">
           <!- This is a blank container - leave it emtpy -->
        </asp:ContentPlaceHolder>
      </div>
   </form>
</body>
</html>

default.aspx - reference the container in the master page in your content page, and content below will be injected into the master page.
   <asp:Content ID="Content3" ContentPlaceHolderID="SiteMap" runat="server">
    <!-- Encode the Sitemap Content of the Page -->
    <div class="sitemap_container">
        Some content such as words or pictures in your seperate file
    </div>
</asp:Content>

QuestionStart Up for Project Required Pin
Ziad Aslam8-Jan-13 20:31
memberZiad Aslam8-Jan-13 20:31 
AnswerRe: Start Up for Project Required Pin
Richard MacCutchan8-Jan-13 21:58
mvpRichard MacCutchan8-Jan-13 21:58 
GeneralRe: Start Up for Project Required Pin
Ziad Aslam8-Jan-13 22:26
memberZiad Aslam8-Jan-13 22:26 
GeneralRe: Start Up for Project Required Pin
Richard MacCutchan8-Jan-13 23:48
mvpRichard MacCutchan8-Jan-13 23:48 
AnswerRe: Start Up for Project Required Pin
J4amieC9-Jan-13 1:42
memberJ4amieC9-Jan-13 1:42 
GeneralRe: Start Up for Project Required Pin
Ziad Aslam9-Jan-13 2:07
memberZiad Aslam9-Jan-13 2:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 25 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid