Solved

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

Posted on 2015-01-07
3
147 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Jerry Miller earned 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

705 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