reading notes in an ASPX page?

  • Thread starter Thread starter Darrel
  • Start date Start date
D

Darrel

I'm building a CMS type application that will allow the end-user to modify
and add ASPX pages themselves to be used as templates for the pages.

In the admin tool, they can select the particular templates they want to use
(for example: default.aspx, portfolio.aspx, etc.) for each page.

I'd like to show some 'template notes' in admin interface. For example, if
they select portfolio.aspx, I'd like to be able to show some notes like
"this template was written by xxxx and shows portfolio images on a grids..."

The catch is that I'd like these notes and templates to be independant of
the application so people can add/remove them as they see fit without
recompiling the app.

Is there anyway to store comment-type text in the ASPX page itself and read
it in? I guess I could wrap it in some custom comment tags and the read in
the file and use RegEx to grab the text. Is there a better way to handle it?

-Darrel
 
don't you use a DB to track who did what and when, usernames, etc...?
why not having a table with the page name and note right there and get the
values from the DB?
 
don't you use a DB to track who did what and when, usernames, etc...?
why not having a table with the page name and note right there and get the
values from the DB?

Because these are templates that anyone can make. I'd rather have someone
download a new set of templates, add the names to the DB, and let the
application handle the rest.

-Darrel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top