roncli.com blog
The blog of roncli
roncli.com blog
roncli.com
blog
Profile
roncli
Houston, Texas, United States
Labels
Coding
CTG Music
Editorials
Games
Miscellaneous
Music
Servers
Silliness
Software
Sports
Trax in Space Beta
Weather
Recent Posts
Of UPS's and Procrastination
ASP.Net Sinks In
Dropping the Ball... or the Box
Back to Two Hands - For Now
Google's Boggle
Ow
Migration to GMail
How 'Bout Them Astros?
Slowly Learning Linux
Taking the Good with the Bad
Monday, October 24, 2005
ASP.Net Templates and the Designer
Posted: 11:59:00 PM 0 comments
After a lot of frustration, I finally managed to get the ASP.Net templates I've been working on to allow you to edit the contents of the page in the designer. It was rather annoying having to edit in complete HTML, then go to the designer to drag and drop the necessary components onto the page, only to have to go back to the HTML to format everything.

It's not that I don't mind writing in a non-WYSIWYG editor. OSMusic.Net was done like that, no designer - or development environment for that matter - involved. I wanted to get out of that habit when using ASP.Net, but until I was able to get a designer template actually working the way I wanted to, I had no way of doing that.

How's this done? Well, if you're using Joe Agster's sample, in the PageBody class (Or the PageBodyBase class if you are designing multiple templates), instead of <ParseChildren(False)>, put <ParseChildren(False), System.ComponentModel.Designer(GetType(System.ComponentModel.Design.ComponentDesigner))> there. That will allow you to be able to design your forms through the designer instead of having to rely solely on the HTML editor.

Labels: ,




0 Comments

Post a Comment