Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2005

Tip: Looking for answers? Try searching our database.

User control question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TCORDON - 28 Oct 2005 16:25 GMT
I have created a copuple of user controls for my web app, but when I add any
one of the to a web form I cannot reference it without mannualy adding:
"Protected Withevents MyControl as MyUserControl" Is there any way to have
the control add this line by itself when it is dropped into a web form?

Thanks
Jon Paal - 28 Oct 2005 18:06 GMT
user control tutorial here

http://www.dotnetjunkies.com/quickstart/aspplus/doc/webpagelets.aspx

----------------------------------------------------------------------------
We’re living in the 21st century, in the atomic age,
and we’re still confused about evolution. Unbelievable
Kevin Spencer - 28 Oct 2005 21:51 GMT
Assuming you're using VS.Net, you can drag and drop it from the Solution
Explorer into the Design view of the page.

Signature

HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
A watched clock never boils.

>I have created a copuple of user controls for my web app, but when I add
>any one of the to a web form I cannot reference it without mannualy adding:
>"Protected Withevents MyControl as MyUserControl" Is there any way to have
>the control add this line by itself when it is dropped into a web form?
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.