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.
 
Back
Top