Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert User Controls to Server Controls

I'm wondering if anyone has any experience converting User controls to Web controls?

Ideally, I'd like to offload some of the design work to others, who would give me nicely laid out User Controls. Then, I could go through the process of converting, compiling, testing and deploying.

Until MS comes up with the magic "Convert to Server Control" option, it looks like I'm pretty well stuck with re-writing from scratch. Any ideas?

like image 931
Chris Cudmore Avatar asked Jun 01 '09 15:06

Chris Cudmore


People also ask

What is user control and server control?

User Controls are controls built with a designer within a web project. They typically are only private to a web application (Although there are ways you can make them available to other projects). Server Controls are controls that are also known as Web Controls.

What is the difference between HTML and Web server controls?

Server control events are handled in the server side whereas HTML control events are handled in the client side browser only . It can maintain data across each requests using view state whereas HTML controls have no such mechanism to store data between user requests.

What is a server control?

Server controls are tags that are understood by the server. There are three kinds of server controls: HTML Server Controls - Traditional HTML tags. Web Server Controls - New ASP.NET tags. Validation Server Controls - For input validation.


1 Answers

Is there a reason you must convert these user controls to server controls? Remember that it is possible to compile a user control into an assembly.

like image 77
Andrew Hare Avatar answered Oct 20 '22 02:10

Andrew Hare