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

  • Home
  • SEARCH
  • 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 7815535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:33:09+00:00 2026-06-02T05:33:09+00:00

I use a master page for my site and for some reason, I can

  • 0

I use a master page for my site and for some reason, I can no longer view the master page in design view. All that appears is a blank page with a blinking cursor. I’ve been at it for over 2 hours and can’t figure it out. Yet when I run it, everything looks and behaves great. What am I missing?

Here is the Site.Master code:

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="WebApplication2.SiteMaster" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head runat="server">
<title></title>
<%--Here is where you reference your style sheets and JQuery library.  The link href takes the
    relative path and publishes fine for the directory.  With <script> and <style> tags, copies 
    like the JQuery reference, you will need to use the '<%# Page.ResolveClientUrl() %>' to get 
    the same relative path behavior at publishing time.  Typically you would define a code block
    and choose '<%=' however page headers don't play nice with code blocks.  '<%#' defines as a
    databinding expression and then when you add Page.Header.Databind() to your code behind for
    the master page, The DataBind method evaluates all the databinding expression(s) in your 
    header at load time--%>
<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
<link href="~/Styles/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%# Page.ResolveClientUrl("~/Scripts/jquery-1.4.1.min.js") %>"></script>

<asp:ContentPlaceHolder ID="HeadContent" runat="server">
</asp:ContentPlaceHolder>
</head>

<body>
<form id="form1" runat="server">
<%--The ScriptManager is a what is used by the Microsoft controls to provide AJAX functionality.
    It needs to exist for the the AJAX libraries to be referenced and placing it right below the 
    Master's page Form tag is the best place--%>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

<div class="page">
    <div class="header">
        <div class="title">
            <h1>
                SalesPro Technologies Online 
            </h1>
        </div>

        <div class="loginDisplay">
            <asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
                <AnonymousTemplate>
                    [ <a href="~/Account/Login.aspx" ID="HeadLoginStatus" runat="server">Log In</a> ]
                </AnonymousTemplate>
                <LoggedInTemplate>
                    Welcome <span class="bold"><asp:LoginName ID="HeadLoginName" runat="server" /></span>!
                    [ <asp:LoginStatus ID="HeadLoginStatus" runat="server" 
                        LogoutAction="RedirectToLoginPage" LogoutText="Log Out" 
                        LogoutPageUrl="~/Account/Login.aspx"/> ]
                </LoggedInTemplate>
            </asp:LoginView>
        </div>

        <div id="divMenu" class="clear hideSkiplink">

            <%-- The following code is for a traditional menu bar to appear:
                 <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="false" IncludeStyleBlock="false" 
                      Width="40%" Orientation="Horizontal">
                 <Items>
                     <asp:MenuItem NavigateUrl="~/Default.aspx" Text="Home"/>
                     <asp:MenuItem NavigateUrl="~/About.aspx" Text="About"/> 
                 </Items> 
                 </asp:Menu> --%>

            <asp:LinkButton CssClass="LinkCss floatleft" ID="linkHome" runat="server" 
                PostBackUrl="~/Default.aspx">Home</asp:LinkButton>
            <asp:LinkButton CssClass="LinkCss floatright" ID="linkAbout" runat="server" 
                PostBackUrl="~/About.aspx">About</asp:LinkButton>          
            <asp:LinkButton CssClass="LinkCss floatright" ID="linkOptions" runat="server">Options</asp:LinkButton>
            <asp:LinkButton CssClass="LinkCss floatright" ID="linkReports" runat="server" 
                PostBackUrl="~/reports.aspx">Reports</asp:LinkButton>  
        </div>

    </div>
    <div class="main">
        <asp:ContentPlaceHolder ID="MainContent" runat="server">
        </asp:ContentPlaceHolder>
    </div>
    <div class="clear">
    </div>
</div>

<div class="footer">     
</div>

</form>

</body>
</html>
  • 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-02T05:33:10+00:00Added an answer on June 2, 2026 at 5:33 am

    I think your comments with ASP tags in it are confusing Visual Studio. Try removing <%= <%# %> from within your comments and see if that helps. If this is your problem you may need to add spaces within the tags so they don’t confuse VS. ie. < % = You should still be able to understand your comments.

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

Sidebar

Related Questions

I have defined CSS in MasterPage so that all pages can use the same
Currently, we have a site where almost all the pages fall into some page
I would like to have a aspect of my site that users can use
Initially i was planning to use master page for every page in my application.
I use asp.net script manager in master page to add js files . In
I'm trying to use jQuery UI tabs much like a Master Page in ASP.Net.
I have a view that that nedds to use an external static content provide.
For some reason, I am getting a runtime exception when I try to use
I have defined a $(document).ready() event in Site.Master page and I also want to
I have a large slow ASP.net site that uses master pages. I've identified that

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.