asp.netasp.net-4.5custom-server-controlsservercontrols

How to create custom server control in asp.net 4.5


With new ASP.NET 4.5 in VS 2013 I do not see project template for creating server control. Does any one have idea how to create custom control in asp.net 4.5?


Solution

  • There are multiple ways of creating a Custom Server Control in ASP.Net.

    All depends on your requirements - inherit from WebControl, CompositeControl or existing Server Control.

    If you are looking for a template, go to Web > Web Forms Server Control.

    enter image description here

    FYI: Creating a Custom Server Control requires some degree of experiences. If you are new to ASP.Net, I'll suggest you to look at User Controls.

    Update: How to Create Web Forms Project in VS 2013

    enter image description here

    enter image description here