[Last Call] Learn how to a build a cloud-first strategyRegister Now


How do I add a WebControl (.ascx) to the Toolbar so I can drag it to my web page?

Posted on 2007-10-09
Medium Priority
Last Modified: 2012-06-27
How do I add a WebControl (.ascx) to the Toolbar so I can drag it to my web page?
Question by:Tom Knowlton
LVL 96

Expert Comment

by:Bob Learned
ID: 20043161
If you have 2005, then it should automatically create the WebControl on a special tab if you have the control within the project, or you have a separate project added to the solution, and referenced in the main project.

If you have 2003, then you need to build the DLL, and Add/Remove items from a tab.


Author Comment

by:Tom Knowlton
ID: 20043409
It's 2005 and the ascx file is in a folder that is part of my project.

I don't see the special tab ... hmmmm....

Expert Comment

ID: 20043453
What the difference from just dropping it from the solution explorer onto the page that from the toolbox?
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Author Comment

by:Tom Knowlton
ID: 20043469
No difference.

Just wondering if I can do it.
LVL 96

Accepted Solution

Bob Learned earned 1600 total points
ID: 20043518
I thought you were talking about a custom web control, and not a UserControl.  You can add custom web controls to the ToolBox, but not a UserControl.

Here is an article that talks about both types, and how to reference and use each:

Turning an ascx user control into a redistributable custom control

LVL 16

Assisted Solution

McExp earned 400 total points
ID: 20043903
You can't add a User Control to the Toolbox

You can drag and drop from the Solution Explorer instead.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month18 days, 2 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question