D
darrel
I'm new to ASP in general. Have been doing a bunch of stuff using classic
ASP and a bit of stuff with ASP.NET (all with VBscript).
The .NET stuff i've been doing has been fairly simple...generating a report
from an Access table. The Datagrid along with some TemplateColumns seemed to
work well for that.
I'm not needing to now pull data from our Homemade CMS database to present
on our public site.
Datagrids and lists don't seem appropriate for this. They seem great for
whipping out quick data views, but seem really limited when it comes to
tweaking the display to include CSS, accessibility tags and attributes, and
formatting.
I need to spit out some content in this format:
[get the last 4 items from the newsitem table and use the template below]
<div class="newsitem">
<span class="date">[get the date and put it here]</span>
<h3>[get the date]</h3>
<p>[get the first 40 words]</p>
<p class="moreLink"><a>View More</a></p>
</div>
When I need something like this, are there any server controls I should look
at, or should I forget that and just go back to using inline ASP if/then
loops with a lot of response.write's to generate the wrapping HTML?
Actually, to simplify the question:
When should I use server controls vs. hand-rolled ASP templates?
-Darrel
ASP and a bit of stuff with ASP.NET (all with VBscript).
The .NET stuff i've been doing has been fairly simple...generating a report
from an Access table. The Datagrid along with some TemplateColumns seemed to
work well for that.
I'm not needing to now pull data from our Homemade CMS database to present
on our public site.
Datagrids and lists don't seem appropriate for this. They seem great for
whipping out quick data views, but seem really limited when it comes to
tweaking the display to include CSS, accessibility tags and attributes, and
formatting.
I need to spit out some content in this format:
[get the last 4 items from the newsitem table and use the template below]
<div class="newsitem">
<span class="date">[get the date and put it here]</span>
<h3>[get the date]</h3>
<p>[get the first 40 words]</p>
<p class="moreLink"><a>View More</a></p>
</div>
When I need something like this, are there any server controls I should look
at, or should I forget that and just go back to using inline ASP if/then
loops with a lot of response.write's to generate the wrapping HTML?
Actually, to simplify the question:
When should I use server controls vs. hand-rolled ASP templates?
-Darrel