dreamer610
MIS
Let me explain my situation. I have a page which has several sections on it. For the most part the content in these sections is going to stay the same on a day to day basis. However occasionally the content is going to change based on the date. So, for example on Valentine's Day, there might be an announcement about a special sale for that day only. My original idea was to store the contents of each section in a database. There would be default rows which would show up, unless there was a row for that specific date. This looked like it would work fine, until I realized that there was going to be ASP code within the data.
So for example I'd have something like this in my database:
<a href="/sales.asp?CartID=<%=CartID%>">Today's Specials</a>
When this data was pulled the ASP Code was not being executed. After doing some research, it appears to me as if there is not a way to have code pulled from a database executed. My question is, am I correct in this assessment? Is there no way to store code in a database and have it executed once it is pulled? And if not, does anyone have any better ideas on how to do what I want to do? Thanks in advance and please let me know if you need more information or clarification, or if there is a better forum for this question.
So for example I'd have something like this in my database:
<a href="/sales.asp?CartID=<%=CartID%>">Today's Specials</a>
When this data was pulled the ASP Code was not being executed. After doing some research, it appears to me as if there is not a way to have code pulled from a database executed. My question is, am I correct in this assessment? Is there no way to store code in a database and have it executed once it is pulled? And if not, does anyone have any better ideas on how to do what I want to do? Thanks in advance and please let me know if you need more information or clarification, or if there is a better forum for this question.