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
Solved

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

Posted on 2015-01-07
3
144 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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

860 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