Hi,
I want to store .aspx code in a database for easier management, editing etc.
(for a CMS-ish application)
Is this feasible without getting into massive amounts of trouble? The
codebehind will be static and on the filesystem, it's only the .aspx content
I want to be able to change (several, if not all, pages can share the same
simple codebehind for most content).
Any tips and suggestions would be greatly appreciated. Perhaps I'm heading
in the wrong direction here, if so, I'd still be thankful for any other tips
which would give me approximately the same functionality.
I though about creating my own XML format, then manually parsing the tags in
the e.g. "cms"-namespace. (which effectively would let the users write any
xml-compliant html code mixed with our own "<cms:"-style tags, which would
be replaced by e.g. server controls) - but I figured this would be too much
work...
Let's say I have the following .aspx code stored in a string variable:
<body>
<asp:Label id="Label1" />
</body>
I would then want to specify (in code) what class that WebForm should derive
from, and thus letting that class set the properties for Label1 (assuming
Label1 is defined in the class).
Thanks,
Nils Magnus Englund