No Web content form for ASP.NET website template
-
Hi, I created a new web application and added a Master page. But when I tried to add a content page, Right click project - Add New Item - there is no content page listed there in the Open box. But the same is visible in a ASP.NET web application. How do I add a web content page on to a ASP.NET website? Regards, Blumen
“The thing for you is a burial permit. You have only to speak and I will see that you get it.”
-
Hi, I created a new web application and added a Master page. But when I tried to add a content page, Right click project - Add New Item - there is no content page listed there in the Open box. But the same is visible in a ASP.NET web application. How do I add a web content page on to a ASP.NET website? Regards, Blumen
“The thing for you is a burial permit. You have only to speak and I will see that you get it.”
Blumen wrote:
Right click project - Add New Item - there is no content page listed there in the Open box.
No, You will not get Content page in Open Box. Just Select a Web Form and Checked The "Select Master Page" Checkbox on Note : It should only be enabled if you have added a Master page on your web application. or even you can add a web form, delete all aspx code and add those code
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> </asp:Content>
Note : Change code according to your requriment.
cheers, Abhijit Read My Latest Article