I Don't Use Frames .How Can I Make Template Usig Asp?
Are there programs capable of creating templates for non-frame based websites?
View RepliesAre there programs capable of creating templates for non-frame based websites?
View Repliesi have a file *.num and when i enter the full URL to download it he give my
a 404 error !
but when i rename the *.NUM by *.TXT everything coming ok !?
so how i can tell to IIS6 to accept *.num files ?
Below is code to display in a drop down menu some addresses. There is two things i need to do. One is to not show if there are no records but also there could be duplicate records, How do i stop duplicates occuring...
View Replies View RelatedI dont have CDONTS support. i am using the following script. with this, even yahoo doesn't consider the email to be HTML and displays all the HTML tags and treats it as TEXT. here is the code i use! Please dont consider it abuse as i dont know how to encloase the code in TAGS!
<%
mes = ""
IsSuccess = false
sTo = Trim(Request.Form("txtTo"))
sFrom = Trim(Request.Form("txtFrom"))
sSubject = Trim(Request.Form("txtSubject"))
sMailServer = "127.0.0.1"
sBody = Trim(Request.Form("txtBody"))
if Request("__action")="TestEMail" then
TestEMail()
end if
Sub TestEMail()
Set objMail = Server.CreateObject("CDO.Message")
Set objConf = Server.CreateObject("CDO.Configuration")
Set objFields = objConf.Fields
With objFields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = sMailServer
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Update
End With
With objMail
Set .Configuration = objConf
.From = sFrom
.To = sTo
.Subject = sSubject
.TextBody = sBody
End With
Err.Clear
on error resume next
objMail.Send
if len(Err.Description) = 0 then
mes = " Message sent to " + sTo
mes = mes + " EMAIL SENT SUCCESSFULLY!"
IsSuccess = true
else
mes = " " + Err.Description + " TESTS FAILED!"
end if
Set objFields = Nothing
Set objConf = Nothing
Set objMail = Nothing
End sub
Sub Alert(html)
if IsSuccess then
Response.Write "<div class='testRelults' id='testSuccessful'><span class='testResult'>Success:</span>" & html & "</div>"
else
Response.Write "<div class='testRelults' id='testFailed'><span class='testResult'>Fail:</span>" & html & "</div>"
end if
End Sub
%>
am using a join query below to get multiple results from different related tables to form one. e.g
SELECT DISTINCT dbo.e_Wallet.subscriptions, dbo.e_Wallet.username, dbo.e_Wallet.status, dbo.e_Wallet.suspension, dbo.ewalletx_yr_registratn.email, dbo.ewalletx_yr_registratn.Fiscal_Yr, dbo.ewalletx_yr_registratn.end_date, dbo.e_walletpurse.purse
FROM dbo.e_Wallet INNER JOIN dbo.ewalletx_yr_registratn ON dbo.e_Wallet.registrationID = dbo.ewalletx_yr_registratn.registrationID AND dbo.e_Wallet.email = dbo.ewalletx_yr_registratn.email LEFT OUTER JOIN dbo.e_walletpurse ON dbo.e_Wallet.email = dbo.e_walletpurse.email AND dbo.e_Wallet.registrationID = dbo.e_walletpurse.regID
WHERE username = 'variable'
however it dosent seem to work or show any results on my asp page. What is wrong here ?
Im working on an automated email sending script which work real fine. I have to send 2 different list of email ( contact1 and contact2) of an acces database file (.mdb).
The fact is that my script work well but for some reason it only send the second list of email (contact2).
The script process the list contact1 without any error but obviously it isnt sending mail to those email.
It seems to be an easy fix mistake but i cant figure out why the first contact list isnt sending. Must be a "If then" mistake or something with the loop i think.
Heres the code: ......
I have a formview which im using to ammed records in a DB via a gridview. When an item is selected on the gridview its details are shown in the formview. Ive wrote the update statement for the Insert button in the formviews edit mode.
If i edit a record in the formview this updates the DB, but not the gridview striaght away. I have to click on one of the select buttons on the gridview to update this. I have gridview.databind() on the click event of the insert button of the formview and on pageload, if its a callback. Code:
can use template with asp like php ?
View Replies View RelatedI am looking for a website that provides a message board template.
Also one that provides a form that allows customers to pay membership dues online while inputing information to be stored in a database.
I am trying to update a website that uses ASP to connect to a database.
I want to change a template file i have so that it is CSS driven with as few tables as possible.
I have managed to strip the tables from the header and footer sections of the template and replace them with divs and CSS styled unordered lists.
I am struggling with the site breadcrumb, navigation and main content areas as these use ASP code to draw data from a database (i dont have access to the database). The site is updated using a Content Management System.
The main site webmaster has told me that a CSS driven template is unworkable. I think that she just cannot be bothered to change with the times and therefore won't move to a CSS driven layout. She took great lengths explaining that she had been doing the job for six years and that tables were the best way to go.
I have the template file i'm trying to change. I have included the full template unchanged below. The template code is below: Code:
I need sample in asp how ? so when I change into news/link/ or somthing then I get the info in default ??? can somone tell me how? or where I can find templete in ASP not html??
Default.asp
Include
Left.asp
Right.asp
Top.asp
Bottom.asp
Are there any template engines out there for ASP? I'm a PHP guy at heart and I love my Smarty template engine. Is there a template engine out there for ASP that is comparable to Smarty? Are there any template engines at all for that matter?
View Replies View RelatedI need to create a template for an online newsletter that will auto-generate
page number (with current page not hyperlinked) and previous and next
buttons (no previous on first page and no next on last page).
Does anyone know of any quick asp code that will do this? I don't think
that it'd be too hard to do, but I'm very new at asp. Code:
Is it possible to open a Outlook Template via ASP? The template will be housed on the webserver itself.
View Replies View RelatedMy client has 35 domains (web addresses) that they want to host on a Windows 2K box with IIS 5. They want one application built using ASP and SQL server, hosted somehow on the IIS so that it appears as the same application for each domain. The end user of each domain will actually be using the same application.The head of each of the 35 domain, or the jr. web master of each domain should be able to cutomize the look of the each of their domain. This customization feature would be built into the ASP application. Things that can be changed would be some text, color of text, size and color of input boxes.
This application will be similar to some of the eCommerce sites that have a web interface for their merchants to be able to modify their individual sites. Sort of selecting and modifying templates. They want 1 application so any changes and update of the application will reflect on all domains.My question is how do I start designing this?
Where can I get info on this project, any opensource stuff I can look at?
Do I incorporate XML anywhere?The domains will be accessing the same DB, how do I minimize DB trips?
I have created a word template(.dot) with several bookmarks but know I don't know how to fill this information from the asp page. I have to retrieve the information from the database and fill the information in the word document Code:
View Replies View Relatedi work a lot with smarty that is a template manager for php.. there is someone similar for asp ?
View Replies View RelatedI am looking for a script or a tutorial on how to generate a web page by having a user fill in a few chosen fields and entering the information into some preprogrammed html code using variables.It would then display their page and underneath it the html code.
Exactly like this, but in asp or cold fusion:
http://www.tupics.com/freead/create.pl
I would like to code a message template. I have 2 pages here, to ease my illustration, I named it as FirstPage.asp and SecondPage.asp. I had coded a button on FirstPage.asp, so that when user clicks on the button,then the SecondPage.asp will pop up and a list of messages which is retrieved from database will be displayed, row by row accordingly.
my doubt is how to set a selected message from SecondPage.asp to put it in FirstPage.asp's textbox?
Does anybody have the code to open a Word template held on the same machine, from an asp page,. say path is "C: emplatesBuild1.dot". I've tried a lot of different codes but none open it. If this is possible can I write to it with "response.write" statements.?
View Replies View RelatedI am implementing print template solution. I would like to use it in asp
app. I open new document then generate print preview then print and
finally close preview window, but I am not able to close previewed document.
I try to move document window out of screen - somewhere like
9999999,9999999 position, view preview then print and finnaly close
preview window. Then document window is invisible but still exists.
How can I close the document window after preview??
I belive it would be better solution if I could open printed document in
my ActiveX (with browser ActiveX included) but trying do it I receive
login page :-( . I am not able to share session between document and
implemented ActiveX.
I have just been asled to produce an facility on an existing web site that allows users to go to a page which contains four business card designs. They would then select a design and be able to fill in the details they want on the selected card whilst they are on line and send the information to the company for printing. If this make sense can anyone help?
View Replies View RelatedDoes anyone know of a good template class/system, which I can use in my ASP pages to seperate HTML from ASP?
View Replies View RelatedCan anyone do me a huge favour? I need an asp template page which will pull data and display it on that page, from an XML file.
The file doesnt contain all the data, its a query to data on a server within our work.
Ive tried endlessley from tutorials etc and the best ive had is a message saying "XML DATA RETRIEVED"
I just cant get the phonelist.xml file to display, basically its a list of staff name / email / phone extension.
I have seen PHP scripts that that define an iHTML template and then set an array that is used by the iHTML file to add code fragments. Does anyone know how an iHTML template can be used by ASP?
View Replies View RelatedI have different templates for different companies to be sent to the customer. first i get all the templates from the DB by giving: Select templates from tempates;
Now i want the user to select one..may be we can have a radio button displayed near the textarea in which i will be displaying the templates from DB. Once the agent selects one of the templates to be sent,that template should be sent as an email to the customer.
How do i go on achieving this ,with good formatted template in the DB?
As creating folders after a form submission is quite easy (as pointed out in my last post - thanks again) I was wondering If it was also possible to create a new permanent ASP page based on a template .
All that needs to be changed is the title of the page and the file name. However the new page must be a copy of the template (only with these changes in it.
I'm looking for an ASP template class, that's up to par with Smarty. I really need a few functions that Smarty has, like assign, section, custom functions and the ability to use arrays in my templates. I doubt anything like it exists in ASP, but I'm still hoping... anyone know of any template class that comes near Smarty?
View Replies View RelatedIs it possible to send data from ASP and put it into a existing template? i don't want to create an excel document I only want to send one piece of information from ASP to the Exisiting Template.
We have created a online quote number genetrator for our sales team and we want it to open the excel quote template and put the quote number on that excel template.
Right now I use difference include files for my header, footer, functions, config, etc. Has anyone had any success with this type of template system? Or maybe there is a better template system everyone is using?
Also, if anyone is familiar with "here document" syntax in PHP, how do I get that type of functionality for my ASP code? I tried creating functions for the header and footer such as getheader(pagename, pageid) but was unable to figure out how to write such a large piece of code to be output by a functions.
On the server i am using a asp script to loop thru an xml file that contains a number of email addresses. When i pick up a email address i would like to call a cfm template that sends the email. I have tried the below:
Server.Execute("sendemail.cfm?Email=john");
but it gives me a ASP 0231 error. i suspect that i can only call another asp script. Interestingly i only get an error when i use the string parameter any thoughts? i would like to use CF as the mail delivery vehicle.
From the ASP application I am trying to 1) open a template 2) add data to a couple of fields (passed from order.asp to invoice.asp) 3) do a Save As so that the user can save to client.
I have this code working fine for a word document, but I am having touble with the XLT. Any suggestions?
At the moment i'm working on a template based newsletterscript and this a testscript to get some variables. This is actually working for one record but i want it to get al the records where the Newsid = "1" e.q.
It's not necessary to print/ write the results but this is just testing.
Actually the following part should be a select case... depending on the value of the column = template e.q "1" he should display this record in another format. Code: