如何在不添加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...
更多推荐
发布评论