?
Solved

Designing Web Controls

Posted on 2005-03-16
5
Medium Priority
?
276 Views
Last Modified: 2013-12-03
When i design win form projects I make windows controls visually using the designer and then compile them as dll's.  I can then add these dll's to my toolbox and drag them onto any other form i make in any other project.
My question is i am now moving to web design and would I like to make web controls.  But when I add a custom web control type I see no designer surface to drag and drop things like datagrids or treeviews onto.  Do I have to totally manually type my web control?  How do I have a group of people working in parallel on a web project if I can not visually design web controls?
Is web forms the only thing you can drag stuff onto?
I buy other web controls from companys that make them.  How do they make them?  Typing manually?
How do I go about this?

Josh



0
Comment
Question by:joshuadavidlee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 17

Expert Comment

by:Jesse Houwing
ID: 13559519
If you add a usercontrol to the project instead of a normal webcontrol you will get a designer. from there it's almost the same as making a normal page.

If you create a control library (which is what 3rd parties do) you'll have to write the conrtol yourself (as you say, type it manually) or create it as a usercontrol and then convert it (which isn't much work). 3rd parties also often inherit from existing controls making it easier to add functionality without having to add too much extra code.
0
 
LVL 17

Expert Comment

by:Jesse Houwing
ID: 13559521
0
 

Author Comment

by:joshuadavidlee
ID: 13560118
"" or create it as a usercontrol and then convert it (which isn't much work)."" could you focus more on this quote please....
0
 
LVL 17

Accepted Solution

by:
Jesse Houwing earned 2000 total points
ID: 13560206
If you look at the html code generated by the designer, you can quite easily re-create those by adding the right HTML controls and ASP.net controls to the Control.Controls collection in the Page.Init event. When you have done that, replace System.Web.UI.UserControl with System.Web.UI.WebControl and you're done. Ofcourse this get's more and more differcult as the size of the control grows.

If needed you can also just compile the UserControl as-is. You can then add the library as a reference to any web project and drag/drop the control from the toolbox once it's added to it.  It's just not at professional as doing it yourself I guess ;)
0

Featured Post

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.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

752 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