i have a special question i really want to learn how to develop custom aspx page forexample; if you create a aspx page automatically page created:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Test.xyz
{
public partial class MyPage: System.Web.UI.Page
{
}
}
But i want to develop: like that if a press create aspx page:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyFrameWork.Business;
sing MyFrameWork.DAL;
namespace Test.xyz
{
public partial class MyPage: System.Web.UI.Page
{
}
protected void Save()
{
}
protected void Delete()
{
}
}
Howw to generate this page right click - Add new Item (Automatically)
You need to create a new item template. This page describes what you need:
(Basically you create your page, then goto File>Export Template and follow the wizard.)
It sounds like you're trying to edit Visual Studio's default template for ASPX code-behind files.
You ca n find it in C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Web\1033
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.