Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Debug a .NET applet

0 views
Skip to first unread message

MarcuE...@gmail.com

unread,
May 24, 2007, 10:52:40 AM5/24/07
to
Hello...
I have a Windows Forms UserControl in a ClassLibrary and I use this
UserControl as an applet in IE. Both WebApplication and UserControl
are in C#.NET 2.0. The UC has a button with a handler on it`s click
event.
I import the UserControl in a ASPX page using the <object> tag.
How can I debug into the UC when I click the UC button?

Thanks

Message has been deleted

Peter Bromberg [C# MVP]

unread,
May 24, 2007, 2:39:02 PM5/24/07
to
In this type of deployment scenario, your control is being hosted in Internet
Explorer in the client browser, not on the server where it would be visible
to the Visual Studio.NET debugger.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net

MarcuE...@gmail.com

unread,
May 25, 2007, 4:05:53 AM5/25/07
to
Peter, can you take a look in here? It seems that is possible...
http://www.15seconds.com/issue/030610.htm
the article is on VS.NET 2003 not on VS2005 and that`s why I posted
this question : How can it be done in VS2005?

Peter Bromberg [C# MVP]

unread,
May 25, 2007, 6:19:01 AM5/25/07
to
Yes, that is correct, you should be able to attach the debugger to Internet
Explorer.
It's not fun though.

MarcuE...@gmail.com

unread,
May 28, 2007, 4:11:00 AM5/28/07
to
Thanks for the answer. I know it isn't fun, but it's usefull.. :)
If I try that mechanism in VS2005, and I set a breakpoint,
VisualStudio says that it will hit it... but it dosen't...
Anyway... I've made a "debug" by writing some messages in EventLog.

0 new messages