?
Solved

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

Posted on 2015-01-07
3
Medium Priority
?
152 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 2000 total points
ID: 40536833
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
ID: 40536850
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
ID: 40536852
The question id is Asked On2015-01-07 at 13:25:42ID: 28592537
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

850 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