There is no automagic way to convert from ASCX to server control. And I am
not sure there is a tool out there, as the permeatations of what you might
accomplish are huge.
The way to do it is to look at the rendered output and create a render
method. Any helper methods, that do not touch controls, can be copied
verbatim from the code behind to the class. You then have to compile and
test, as it is a UI component. Once you do this a few times, you will be
well versed enough to create server controls without the intermediate user
control stage.
I wish I had a better answer and would love if someone could say Product X
does this. Good luck!
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#
or just read it:
http://feeds.feedburner.com/GregoryBeamer
********************************************
| Think outside the box! |
********************************************