Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi In last versions of VS there are 2 topics: User Control and Custom Control
in VS2010 I didn’t find Custom Control but in file->new->project->web
I found a ASP .Net Server Control.
Is it same the "Custom Control" in last version of VS?
If not ,how Can I Create a Custom Control (web control library) in vs2010
Thanks very much
Posted

I did not find anything from older versions which disappeared from VS 2010.

Unlike UserControl, Custom Control is simply a class derived from a base class Control or one of derived classes. Just write its code:

C#
public class MyControl: Control {
   //your code goes here
}


—SA
 
Share this answer
 
Try a well written article which will guide you how to create Custom Control in VS 2010
Creating a Custom Web Server Control in ASP.NET using Visual Studio 2010[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900