Using web custom controls from the same project

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any way that from my aspx page I can use a custom control defined in the same project
I really don't want to create another project just to write and consume a web custom control.
 
Dont know if I am missing something here
You can drag and drop the ascx file from the solution explorer in vs.net to your page right?
 
Yeah, you can.
After you create the control class, right-click on your toolbox
Customize Toolbox >> .NET Framework Components >> Browse
Select the DLL for your wrb project (e.c. inetpub/wwwroot/myWebApp/bin)

Drag Drop and have fun!



Ed Duncan said:
Is there any way that from my aspx page I can use a custom control defined in the same project?
I really don't want to create another project just to write and consume a
web custom control.
 

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

Back
Top