Home All Groups Group Topic Archive Search About
Author
3 Sep 2007 2:10 AM
Elmo Watson
Let's say I have created a new custom control - one that needs to be put in
the Toolbox, in order to drag it to the web page

How do I test it, in order to debug and step through the code?

Author
3 Sep 2007 6:19 PM
Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
The best way is to have a solution with two projects in it.
One project is your custom control.
The other program is the test harness (web application?)
From your web application, add a project reference to your custom control
project.
After compiling the solution, your custom control should appear in the
toolbox for your web application.
You can then drag the control onto a web form and test it out.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net


Show quote
"Elmo Watson" <wha***@yahoo.com> wrote in message
news:%23mik8%23c7HHA.1164@TK2MSFTNGP02.phx.gbl...
> Let's say I have created a new custom control - one that needs to be put
> in the Toolbox, in order to drag it to the web page
>
> How do I test it, in order to debug and step through the code?
>

AddThis Social Bookmark Button