asp.net 窗体怎样引用WebControl

2025-05-19 03:41:02

1、点击“开始”——“Visual Studio 2015”,启动Visual Studio 2015 程序。

asp.net 窗体怎样引用WebControl

2、点击“新建项目”,在“新建项目”界面,展开“模板”—“Visual C#”—“Web”,选择“ASP.NET Web 应用程序”,

asp.net 窗体怎样引用WebControl
asp.net 窗体怎样引用WebControl

3、输入项目名称,如 testWebControl , 选择项目存放位置,点击确定

asp.net 窗体怎样引用WebControl

4、在“新建ASP.NET 项目”界面,选择模板“Empty”,勾选“Web Forms”核心引用,点击“确定”。

asp.net 窗体怎样引用WebControl

5、在弹出的“连接Azure”界面,登录到Azure,可以将项目保存到Azure上,如果不需要连接到Azure,直接点击“取消”即可。这样就新建了一个名为“t髫潋啜缅estwebcontrol”的ASP.NET项目了

asp.net 窗体怎样引用WebControl
asp.net 窗体怎样引用WebControl

6、新建项目后,点击右侧的“解决方案资源管理器”,打开解决方案,右键点击“testwebcontrol”项目,点击“添加”—“Web窗体”,输入web窗体名称,点击“确定”,新建一个ASP.NET窗体。

asp.net 窗体怎样引用WebControl
asp.net 窗体怎样引用WebControl

7、新建的ASP.NET窗体,默认打开的是源代码设计界面,点击“设计”切换到窗体设计界面。

asp.net 窗体怎样引用WebControl
asp.net 窗体怎样引用WebControl

8、展开Web窗体设计工具箱,工具箱内都是webcontrol控件,用于设计ASP.NET窗体,将webcontrol控件拖动到ASP.NET窗体即可使用。

asp.net 窗体怎样引用WebControl
asp.net 窗体怎样引用WebControl
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢