> 1. Is there some magical new way to do this in ASP.NET 2.0 and have it
show up nice in Design Mode?
No magical way. The Master Page functionality sets up a "server control"
that renders the common elements. The IDE rendering the control is based
solely on the programmers allowing this. There is currently no magic way to
set up your own control to do this. Migrating to a master page would be the
easiest, if possible.
If not possible, consider creating a compiled server control, as it will
render, according to the Render() method, in the IDE. YOu can then template
the Page and start using your new page template for all new pages.
2. If not how can I create a re-usable, easy as editing a UserControl
like template which Design Mode will render nicely.
I know of no way to set up a control that allows drag and drop and renders
in the design surface. Perhaps this is something Microsoft can look at in the
future. Barring that, you would have to create your own designer for your
custom control, which is a lot of work if you ask me.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************
"Electrified Research" wrote:
From ASP.NET 1.1 I have a very useful UserControl which acts like a
template control. I call it a CustomTemplate.
Basically it gives me a re-usable look to sections of the site without
having to tinker with HTML. This is very much like what is being done
by Master Pages but with a User Control.
I have a two part question:
1. Is there some magical new way to do this in ASP.NET 2.0 and have it
show up nice in Design Mode?
2. If not how can I create a re-usable, easy as editing a UserControl
like template which Design Mode will render nicely.
Thanks.