ASP.NET: How do you debug dynamically loaded user controls using 开发者_运维百科LoadControl(string path);
If everything is part of the same solution and built in debug - I believe you should be able to just place a breakpoint in your user control and it will get hit.
Alternatively, in your project that contains the user control you could use Ctrl-Alt-P to attach the project to the IIS process (or WebDev.WebServer process if you're using Visual Studios built in web server aka Cassini). This way you could debug that project on it's own.
精彩评论