473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

reading notes in an ASPX page?

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
May 7 '06 #1
2 1122
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?

--

Bruno Alexandre
(a Portuguese in Denmark)

"Darrel" <no*****@nospam.com> escreveu na mensagem
news:eH**************@TK2MSFTNGP03.phx.gbl...
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

May 7 '06 #2
> 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
May 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: fabrice | last post by:
Hello, I've got trouble reading a text file (event viewer dump) by using the getline() function... After 200 - 300 lines that are read correctly, it suddenly stops reading the rest of the...
0
by: Granger Godbold | last post by:
This is in regards to the long-standing bug with the colons in the form-id. I'm not satisfied with the main workaround that's been circulating: http://www.asp.net/Forums/ShowPost.aspx?PostID=191953...
3
by: Nelson R. | last post by:
Hi, im using a form to get some input from the user. This form is in a HTML file. When I post the form directly to my email, i receive all fields correctly. Example test.html: <FORM...
4
by: darrel | last post by:
Karl has helped me in the past in regards to communicating between controls and pages: http://www.openmymind.net/communication/index.html#3.1 I ended up going down the interfaces path and...
1
by: Fadi.MM | last post by:
Hi Guys, I'm trying to create a library of ASP.NET user controls. What i'm trying to do is to encapsulate all my controls in one library (DLL) and re-using them in other projects. Everything is...
9
by: Milsnips | last post by:
Hi all. i'm tryng to implement the Rewrite.NET url rewritining functionality into a test project i've created, however i am hitting a problem at this line (direct from the web example): ...
36
by: ali3n8 | last post by:
Hello I need some assistance with creating a form/subform. The scenarios is I have a form on this form i want to create a button to open a page were notes can be entered and time stamped. On the...
2
by: iKER- | last post by:
Hi! I´m working in a program witch need to read Exif data from my Sony Alpha A100 raw (arw extension) pictures. I found a table with keys for read it, but i can´t read. I tried something, but i...
5
by: alf8kitty | last post by:
Hello, I have a form that allows a user to submit notes in a textarea. <td><textarea name="Notes" value="" ROWS=3 COLS=35></textarea></td> The notes get sent to the MySQL database correctly...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.