How to test a custom control

E

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?
 
S

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top