如何在不添加ASPX文件的情况下测试用户控件?(How can I test a User Control without adding to an ASPX file?)

系统教程 行业动态 更新时间:2024-06-14 16:57:17
如何在不添加ASPX文件的情况下测试用户控件?(How can I test a User Control without adding to an ASPX file?)

目前,如果我想测试用户控件,我将自定义标签添加到现有的.aspx页面(如果必须,还可以创建一个新页面),然后在浏览器中查看此页面。

是否有更快,更好的方法来测试我不知道的用户控件?

Currently if I want to test a user control, I add my custom tags into an existing .aspx page (or create a new one if I have to), and then view this page in the browser.

Is there a quicker, better way to test User Controls which I'm not aware of?

最满意答案

您无法像页面一样运行用户控件。 你可以创建一个简单的测试表来测试它......

You cannot run a user control like you would a page. You could create a simple test form for testing it...

更多推荐

本文发布于:2023-04-12 19:55:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/d1bf68baf9951941d1dad8434fd3ac87.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   情况下   文件   测试   用户

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!