Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8728763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:42:40+00:00 2026-06-13T08:42:40+00:00

I have had a lesson on visual studios for an asp.net and am stumped

  • 0

I have had a lesson on visual studios for an asp.net and am stumped on this master page please help me. I cannot link the default pages to the master page I am not sure

default page code

<%@ Page Title="" Language="C#" MasterPageFile="" AutoEventWireup="true"    CodeBehind="Default.aspx.cs" Inherits="AdrianASP2012.WebForm2" %>

        <div>
            <h2>Nulla luctus eleifend</h2>
            <p>This is <strong>Greenness </strong>, a free, fully standards-compliant CSS template designed by <a href="http://www.freecsstemplates.org">FCT</a>.   The photos in this template are from <a href="http://fotogrph.com/"> Fotogrph</a>. This free template is released under a <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attributions 3.0</a> license, so you are pretty much free to do whatever you want with it (even use it commercially) provided you keep the links in the footer intact. Aside from that, have fun with it :) </p>
            <p>&nbsp;</p>
            <p>Maecenas pede nisl, elementum eu, ornare ac, malesuada at, erat. Proin gravida orci porttitor enim accumsan lacinia. Donec condimentum, urna non molestie semper, ligula enim ornare nibh, quis laoreet eros quam eget ante. Aliquam libero. Vivamus nisl nibh, iaculis vitae, viverra sit amet, ullamcorper vitae, turpis. Aliquam erat volutpat. Vestibulum dui sem, pulvinar sed, imperdiet nec, iaculis nec, leo. Fusce odio. Etiam arcu dui, faucibus eget, placerat vel, sodales eget, orci. Donec ornare neque ac sem. Mauris aliquet. </p>
            <p class="button-style"><a href="#">More Details</a></p>
        </div>

and master page body section is

    <body>
    <form id="form1" runat="server">
        <div id="header">
            <div id="logo">
                <h1><a href="#">Greenness</a></h1>
            </div>
            <div id="menu">
                <ul>
                    <li class="current_page_item"><a href="#" accesskey="1" title="">Homepage</a></li>
                    <li><a href="#" accesskey="2" title="">Our Clients</a></li>
                    <li><a href="#" accesskey="3" title="">About Us</a></li>
                    <li><a href="#" accesskey="4" title="">Careers</a></li>
                    <li><a href="#" accesskey="5" title="">Contact Us</a></li>
                </ul>
            </div>
        </div>
        <div id="banner-wrapper">
            <div id="banner">
                <img src="App_Themes/Theme1/images/pics01.jpg" width="1000" height="345" alt="" />
            </div>
        </div>
        <div id="page-wrapper">
            <div id="page">
                <div id="content">

                    <!-- CONTENT PLACE HOLDER HERE -->
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server"></asp:ContentPlaceHolder>


                </div>
                <div id="sidebar">
                    <h2>Maecenas  lectus</h2>
                    <ul class="style1">
                        <li class="first">
                            <p><a href="#">Aliquam erat volutpat. Pellentesque tristique ante ut risus. Quisque dictum. Integer nisl risus, sagittis convallis, rutrum congue.</a></p>
                        </li>
                        <li>
                            <p><a href="#">Aliquam erat volutpat. Pellentesque tristique ante ut risus. Quisque dictum. Integer nisl risus, sagittis convallis, rutrum congue.</a></p>
                        </li>
                        <li>
                            <p><a href="#">Aliquam erat volutpat. Pellentesque tristique ante ut risus. Quisque dictum. Integer nisl risus, sagittis convallis, rutrum congue.</a></p>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div id="footer-wrapper">
            <div id="footer-content">
                <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                </asp:ContentPlaceHolder>
                <div id="fbox2">
                    <h2><span>Fusce ultrices</span> fringilla</h2>
                    <p>
                        <img src="App_Themes/Theme1/images/img05.jpg" width="320" height="150" alt="" />
                    </p>
                    <p>Aliquam erat volutpat. Pellentesque tristique ante ut risus. Quisque dictum. Integer nisl risus, sagittis convallis, rutrum id, elementum congue, nibh. Donec leo, vivamus fermentum nibh in augue praesent a lacus at urna congue rutrum elementum congue.</p>
                    <p class="button-style"><a href="#">More Details</a></p>
                </div>
                <div id="fbox3">
                    <h2><span>Mauris vulputate</span> scelerisque</h2>
                    <ul class="style3">
                        <li class="first">
                            <img src="App_Themes/Theme1/images/img02.jpg" width="78" height="78" alt="">
                            <p>Nullam non wisi a sem eleifend. Donec mattis libero eget urna. </p>
                            <p class="posted">August 11, 2002  |  (10 )  Comments</p>
                        </li>
                        <li>
                            <img src="App_Themes/Theme1/images/img03.jpg" width="78" height="78" alt="">
                            <p>Nullam non wisi a sem eleifend. Donec mattis libero eget urna. </p>
                            <p class="posted">August 11, 2002  |  (10 )  Comments</p>
                        </li>
                        <li>
                            <img src="App_Themes/Theme1/images/img04.jpg" width="78" height="78" alt="">
                            <p>Nullam non wisi a sem eleifend. Donec mattis libero eget urna. </p>
                            <p class="posted">August 11, 2002  |  (10 )  Comments</p>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div id="footer">
    </form>
</body>   
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:42:41+00:00Added an answer on June 13, 2026 at 8:42 am

    First give the MasterPageFile name in your MasterPageFile=”~/YourMasterPage.master”
    Second you have to write code inside the content place holder..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have had a look around, but the closest I found was for asp.net.
I have had a persistent problem with Visual Studio 2010 and any framework version
I have had this problem crop up a few times and I can't figure
I have had several situations when i would like to do that. This could
I have had a few problems getting this right, so I wanted to ask
Have had this happen alot, I forget to select the .java file before running
I have had many attempts now on attempting to make this work and i
I have had an earlier version of this app deployed with the same WebSphere
I have had a couple of questions on this issue. However, now I have
I have had this for a couple of days now. I have a simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.