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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With