How to add Web User Control to WebUI project(Enterprise Template P

G

Guest

I started a new solution using enterprise template project, added WebUI
project to that.

Now I want to add web user control (*.ascx) to this project. But i'm not
getting web user control in the "Add New Item" pane.

Do Enterprise Template WebUI don't allow to create user controls. If it
allows then how to do that ?
 
W

William F. Robertson, Jr.

I believe user controls can only be defined and used within a web project.
If you are writting a webcontrol library, you will need to write your user
control as a Custom Server Control. You receive some benefits such as
design time functionality.

HTH,

bill
 
B

Brock Allen

You can create a text file, name it with .ascx as the extension and add:

<%@ Control Language="C#" %>

And then you have a user control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top