Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

should the ASP.NET Server Control template exist in Visual Studio 2015 community edition?

I am trying to build a custom ASP.NET server control, but I am failing at the first hurdle. All the tutorials have as their first step "Select the ASP.NET Server Control template". My install of studio does not have that template. (VS 2015 community edition) Ive tried several machines, with windows 7 to 10, and still no template.

Is this a matter of the template not being part of this edition, the template no longer being available, or something else that I am missing?

like image 854
Paul Avatar asked Mar 04 '16 15:03

Paul


People also ask

What are ASP NET server controls?

An ASP.NET server control is a tag written in a Web page to represent a programmable server-side object used for displaying a user interface element in a Web page. ASP.NET server controls are tags that can be understood by the server.

Where are the templates in Visual Studio?

You can find the project template in the New Project dialog, by searching for "project template" and selecting either the C# or Visual Basic version.

How many types of ASP.NET controls are there?

ASP.NET uses five types of web controls, which are: HTML controls. HTML Server controls. ASP.NET Server controls.


2 Answers

You're at the New Project screen. But ASP.NET Server Control isn't a project. You need to create a project (a class library or web application) and then right click your project in the Solution Explorer and expand Add, then click New Item. Expand Visual C# Items, Web, Web Forms, then you'll see Web Forms Server Control.

enter image description here

like image 165
mason Avatar answered Sep 20 '22 17:09

mason


You have to add a new Windows Forms Application project. Right click the project and select the new item. Once selected, a pop-up window will appear. Click Web and you can see the Web Forms Server Control.

like image 41
John Avatar answered Sep 19 '22 17:09

John