我可以在没有控件声明的情况下将 ASP.NET 用户控件放置在页面上吗?
我想将用户控件放在页面上,而不在页面顶部注册标签。 例如:
<p>some text</p>
<myname:mycontrol runat="server" />
这可能吗? 我听说标签声明可以在 web.config 中完成...这是真的吗?
如果是这样,您知道哪些 .NET 框架版本支持此功能吗?
谢谢
I would like to put user controls on pages without registering the tag at the top of the page. For example:
<p>some text</p>
<myname:mycontrol runat="server" />
Is this possible? I've heard that tag declarations can be done in web.config... is this true?
If so, any idea which .NET framework versions support this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 .net 2.0 web.config 中:
更彻底的讨论 http://weblogs.asp.net/scottgu/archive/2006/11/26/tip-trick-how-to-在 web-config.aspx 中注册用户控件和自定义控件
in .net 2.0 web.config :
Much more thorough discussion http://weblogs.asp.net/scottgu/archive/2006/11/26/tip-trick-how-to-register-user-controls-and-custom-controls-in-web-config.aspx