Templates
How do they work?phpbb or what ever its called comes with 3 different templates for a user to chose from-they are all totally different with different colours/images/layouts for each style.So how is this done?
View RepliesHow do they work?phpbb or what ever its called comes with 3 different templates for a user to chose from-they are all totally different with different colours/images/layouts for each style.So how is this done?
View RepliesI'm trying to find information on applying CSS to asp Controls. However, all the searches I do relate to ASP.NET 2.0 but I am only using 1.1 (I can't switch to 2.0).
Does anyone have any information or good links to explain how to apply templates or CSS to asp 1.1 controls?
I'm looking for a templating system in a Classic ASP environment that works like HTML::Template in Perl. I've actually used HTML::Template with great success in Classic ASP by using the PerlScript engine. PerScript literally brings almost .NET capabilities to Classic ASP.
Unfortunately I am on an assignment right now that precludes the use
of PerlScript -- I have to use VBScript -- and I am sorely missing the templating power of Perl's HTML::Template which allows me to completely decouple ASP scripting and COM+ component coding from HTML output.
If you don't know what I mean by referring to Perl's HTML::Template templating system, then perhaps someone can point me to a free ASP HTML templating system with some power. I've seen some rather simplistic templating VBScript classes that are an improvement over
mixing ASP code and HTML in ASP pages but I've seen nothing that has the power I am looking for yet.
I'm developping a module to send an automatic feedback e-mail to customers. The old version in plain ASP just used an HTML-document and replaced certain fields with the right value. Like {name} for instance with the customer's name.
But I think that in ASP.Net, this is way old-fashioned. I want to use full Web Forms, for example:
MailTemplate1.aspx
<html>
<body>
Hello <span id="customername" runat="server" /><br />
Thank you for your feedback!
</body>
</html>
As you can see, this is a full page and so using a control is not a right solution in my eyes. After all, it is a page, so I want to use a System.Web.UI.Page.
The ThankYouForFeedBack.aspx page would then have to to something like this:
MailTemplate1 MT= new MailTemplate1();
MT.customername.innerText = strCustomerName; // this line will fail, see below
SendMail(strCustomerEmail, I'm developping a module to send an automatic feedback e-mail to customers. The old version in plain ASP just used an HTML-document and replaced certain fields with the right value. Like {name} for instance with the customer's name.
But I think that in ASP.Net, this is way old-fashioned. I want to use full Web Forms, for example:
MailTemplate1.aspx
<html>
<body>
Hello <span id="customername" runat="server" /><br />
Thank you for your feedback!
</body>
</html>
As you can see, this is a full page and so using a control is not a right solution in my eyes. After all, it is a page, so I want to use a System.Web.UI.Page.
The ThankYouForFeedBack.aspx page would then have to to something like this:
MailTemplate1 MT= new MailTemplate1();
MT.customername.innerText = strCustomerName; // this line will fail, see below
SendMail(strCustomerEmail, RenderContents(MT));
It's obvious that I'm looking for the dummy "RenderContents" function. I didn't manage to to it with the Page.Render method, since the page does NOT get loaded if you create a page dynamically like on the first line of code. (Output is thus an empty string) Because of this too, the second line of code WILL PRODUCE AN ERROR, since customername points to nothing because the page doensn't actually get loaded.
Does anyone have an idea?
I am planning to implement some templates (around 30 templates). User will select this template from the drop down and click print. When it prints it should populate few fields from the form to template and print.
View Replies View RelatedI am looking for an example of dynamic ASP templates.
View Replies View RelatedI am a web developer writing a classic asp website that uses an excel document.
The way it works is that I have pre-filled out excel document sitting on the server that I would like to use as a template excel file.
What is to happen is that a visitor fills out a web form on the website and then the information from the web form is passed to the excel document and the blank spaces are filled in and the excel file is saved on the server.
I can create a blank basic excel document through asp no problems however I am not sure how to open an existing excel file, amend data to it and re save it again.
Also how do i access various cols & rows of the excel file through asp code. this will help me place the form data exactely where the data needs to go in the excel document.
Is this affective way using HTML Templates in ASP:
I have html template file with <<TAG1>> .. <<TAGN>> in places, where I want to insert some data then i generate this data in asp:
Dim d ' Create a variable.
Set d = CreateObject("Scripting.Dictionary")
d.Add "TAG1", "Athens" ' Add some keys and items.
d.Add "TAG2", "Belgrade"
d.Add "TAG3", "Cairo"
, open html template, replace each <<TAGx>> with generated data
(d.Item("TAGx") ),
and print it with Response.Write
Or there is any other usual methods to use templates?
I want a URL links to .dot and .xlt files on my websites. But when users try
to save them it triggers built in template functionallity to save it as .doc
or .xls instead.
How can I publish MS templates and make sure the users get the .dot files
instead of doc files?
This thread is not so much a big problem, but more to receive comments on my approach. You may have some other tips or advices of where to go or where absolutely not to go with my attempts. Code:
View Replies View Related