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?
I'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?
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?
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.
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.
I 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 am trying to peform a multiple deletion of records from a single table "Stockist"
I i keep getting the following Error and can't see where i am going wrong. Can anyone help?
Microsoft OLE DB Provider for ODBC Driverserror '80040e10' [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2. /RetailerStockProductRemove.asp, line 22
I am urgently finding a set of codes to write data into a form and the data will go to my database. However i have tried a lot of form but couldn't successfully process. Below is one of my problem...
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x9a8 Thread 0xa08 DBC 0x3041e1c Jet'.
I have this insert statement where instruction field in the DB is a memo field.
SQL="INSERT INTO int ([instruction]) VALUES " & _ "('"&Request.Form("myTextarea")&"')"
objConn.Execute(SQL)
Its giving me error: Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80040E14) [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
I am having trouble with installing IIS, I tried to do it in my control panel, but it wants the disk, I don't have the disk because my computer came with Windows XP Pro 2002 Service pack 2.
so I went to the microsoft website and downloaded the free download of IIS6. Then when I go to my control panel and Administrative tools it is in there and when I click on it, there is no computer name available.
I have a sign-in box that is an IFrame, with a form target of "_top", and the current (parent) page URL as a hidden field.
If sign-in in successful, there is a response.redirect to the page URL, having set the session variable LoggedInOK=true.
However, if the sign in is not OK, I want the IFrame to be the target, (i.e. _self, not _top) to display the error.
Is there a way for ASP to control whether it redirects to _top or _self, as setting the form target in the Login page requires "pre-knowledge" of whether it will be successful.
I'm writing an Online registration system for my friends new business. I'm trying to incorporate checkboxes so when a person checks on 3 or 4 checkboxes and hits the Submit button I can pass the information of what they checked_on to a new page. When I get to the new page I would like to update a database, based on what they checked_on on the previous page. I'm not sure how to do this. I'm not sure how to pass the information.
using PWS on test machine (NT4 workstation SP6) and everything was fine but cpshost.dll was used in the website we're maintaining, so I idiotically installed it from a Visual J++ disc. now the website works fine but when i navigate to 127.0.0.1 nothings happens. I've checked directory browsing is enabled but still nothing happens!
I'm aware that cpshost.dll was never meant to be used on NT workstations but as I said before the upload functionality works fine, it just seems to have screwed the directory browsing up - and also the code document.referrer equals nothing.
I am primarily a front-end designer and not familiar with ASP beyond breaking up pages into include files. Recently, one of my freelance clients wanted to display an RSS feed from his blog on his site. I did some research and found the rss2html.asp script. I chose this over a javascript solution because those scripts apparently don't affect search engine rankings.
I implemented the script and it was running fine until about a month ago, when the site and sometimes the server running it started to crash. The ISP and the blog company the RSS feed originates from blame the script. Bytescout, who wrote the script, says that it's probably the feed that's causing the problem. The RDF version of the feed validates as RSS, but the ATOM one has specs that are too new for the validator to parse correctly. Code:
i'm working on access db the problem is when i enter date in d/m/y format it wrote db m/d/y format but this happens only with small numbers i.e if date 04/09/2002 it become 09/04/2002 in db but if it is 24/09/2002 there is no problem.
I'm having some trouble parsing an XML document I'm getting from my company's bank in response to a XML document I'm sending. Both docs are transferring fine, and in fact if the transaction in the document I send is accepted (valid credit card), everything parses perfectly.
The prob is when the transaction is not accepted by the bank server (invalid credit card), and the document that's returned to me has different tags. Code:
I am having trouble with someone else's code that worked when it was used last, but now it's not. I am new to ASP programming so I not too sure what's happening. Code:
I have started session("visitorID") in global.asa in order to keep track of how many users are on our site at any given time, trouble is I can't seem to call the session while on another page.
As I am relatively new to asp I'll post both the setting of the session and the call to it on the other page below Code:
This is the SQL statement I am executing to pull the field, which is meant to be the last record inserted into the shopping cart by a particular individual. Code:
I am having trouble with my file uploader. I do not program a lot of .asp and its a bit confusing. As well, I just took over the development on this webpage so the code is not my own.
The file uploader worked before but now that I have the webpage put to a test site it doesn't. Would this be a reason why I cannot upload? i am also having trouble accessing the database, which makes it even harder for me to see whats hapening to the file.
When I upload it says that it uploaded successfully but when I see the webpage the photo isn't there. Would you like to see the code for the uploader?
I have this list of records (from an Access DB) and would like to use check boxes to delete 1 or many records. I think there is something wrong with the SQL though, cause the records are not deleting when the form is submited. Code: