ASP.NET项目运行第一页.ASCX [英] ASP.NET project run first page .ASCX
本文介绍了ASP.NET项目运行第一页.ASCX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请帮助
i需要针对以下问题的解决方案
我的项目需求如项目仅包含.ascx页面.NO .ASPX PAGE 。所以我如何运行项目.one .ascx页面作为母版页并加载所有其他.ascx和项目工作。
SHOUTING从标题中删除[ /编辑]
Please help
i need a solution for below problem
My project requirement like project contains only .ascx page .NO .ASPX PAGE. So how i run the project .one .ascx page work as a master page and load all other .ascx and project works.
SHOUTING removed from title[/Edit]
推荐答案
首先,您应该知道ascx页面的用法吗?
ascx文件的主要用法:它是一个用户控件,是一种复合控件,就像一个ASP.NET网页。
给用户控件:
*您可以将现有的Web服务器控件和标记添加到用户控件中
*定义控件的属性和方法。
*然后你可以将它们嵌入到ASP.NET网页中。
如何在你的aspx页面中使用它:
在页面的头部区域调用它。
First of all, you should know the usage of ascx page?
The main usage of a ascx file: It is a user control, is a kind of composite control that works much like an ASP.NET Web page.
To a user contol:
*You can add existing Web server controls and markup to a user control
*Define properties and methods for the control.
*You can then embed them in ASP.NET Web pages.
How to use it in your aspx pages:
Call it in your page's head section.
<![CDATA[<%@ Register Src="~/folder_name/YourControl.ascx" TagName="YourControl" TagPrefix="urCtrl" %>]]>
功能主页的完全不同。
祝你好运,
OI
The functionality of a master page is totally different.
Good luck,
OI
这篇关于ASP.NET项目运行第一页.ASCX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文