1) I created a Class Library with a class and given path of User control,
overridden CreateChildControls(), RenderContents() methods, inherited WebPart
class.
Created User control in a separate web site.
2) I copied the UserControl files (.ascx and .ascx.cs) and pasted these files in
C:\Inetpub\wwwroot\wss\VirtualDirectories\8081\UserControls folder
3) Copied the dll and pasted in
C:\Inetpub\wwwroot\wss\VirtualDirectories\8081\bin folder and assembly folder
C:\WINDOWS\assembly
4) Added <safeControl> tag in web.config file located at
C:\Inetpub\wwwroot\wss\VirtualDirectories\8081
5) Kept breakpoints to the class in the class library and attached worker
process w3wp.exe.
6) Loaded the web part in the webpart gallary and clicked on the link for
preview, it has taken to the class and i am able to do debug class file, but not
able to debug usercontrol file.
I need to do debug .ascx.cs file, how can I do it. Am I doing in the correct
way?