Solved

How to add a new page that uses current Site.master for Access Denied in asp.net?

Posted on 2015-01-07
3
134 Views
Last Modified: 2015-01-07
Hi, I'm using vs2012.
I right click on my web application project.  I select Add new web form.  It doesn't ask me to choose the site.master to use.   How can I configure this?
Thank you.
0
Comment
Question by:lapucca
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Jerry Miller earned 500 total points
Comment Utility
You can right-click on the MasterPage and choose Add Content Page to add a new page under the Master.

You can also add this in to the page declaration:

<%@ Page Language="VB" MasterPageFile="~/MasterPages/MasterPage.master" AutoEventWireup="false" CodeFile="Stance.aspx.vb" Inherits="Stance" title="Main Menu" %>
0
 

Author Comment

by:lapucca
Comment Utility
Nice, I like the first method.  I did both ways and still the new page can not display the images that are used in the master file.  This new file is in the same level as my default page that works just fine.  I have another question open for this already.  Appreciate it if you can also have a look.  thank you.
0
 

Author Comment

by:lapucca
Comment Utility
The question id is Asked On2015-01-07 at 13:25:42ID: 28592537
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now