Adding Footers To Static Html
I'm running a Windows 2000 server with IIS. I have ASP execute access on the server. My users publish their pages onto our webserver by copying their files onto their respective directories in the server.
I intend to have each author append <meta> tags which describe information such as: author name, authorEmailAddress, authorPhoneNumber, etc..
When a user browses a particular page on the server, the web server will need to read this information (the meta tags) from the requested HTML file, and append an "Author block" at the bottom which contains some of the meta-information, as well as determining the Created Date and Last Edited date from the HTML file itself (from the filesystem).
I'd also need to include some kind of conditionals such as making the author block red if the last update date was more than 30 days ago (todaysDate-FileSystem[currentHTMLfile]).
How can I do this? I'm truly puzzled. I don't want make my authors use .ASP files because this gives my authors too much power (not to mention most are computer illiterate). I'd like for them to write static content, while the server appends content that is generated dynamically.
View Replies
ADVERTISEMENT
I have a couple of static HTML pages live, as a sort of family blog. Now I just found out how ASP could work, experimenting with WikiAsp.
What I would like to know is whether it is possible to include some DHTML in my static pages for gathering comments on blog entries, which are saved to a database for example on 1asphost.
Of course it would also be nice to read out the database again to see the comments to each blog entry in the static pages. Can this all be done using ASP?
View Replies
View Related
I need to put headers and footers in my word doc from asp and cannt get it to work. Found this code on the net Cannt get word to open the external file. Any ideas Code:
View Replies
View Related
I'm looking for a script that lets me add certain images from a directory (from like a drop down menu) plus add text (through like a text field) to a html file which would be saved in a directory. So I could then go and open the html file and the new text would be there with the embedded images.
View Replies
View Related
i am using frontpage 2003. I have an image that I have sliced in Photoshop, saved as an html and opened it with FP2K3. What I would like to do is find a way to add a .cmd or .exe or .bat file to a section of the html code. Can this be done?
What I am trying to do is pick either a hotspot or hyperlink and embedd the executable, so that when picked it runs. all it is really doing is rdp'ing to a session on the server.
View Replies
View Related
Basically i have a form on a HTML page which someone fills out with a few IDs, then i have a .asp file which is meant to add the info to a database.
However it just wont work, the field names in the database are correct. - i hope the if statement is correct too. Code:
View Replies
View Related
I need to create a module where a technical novice can send an email newsletter (that has already been created and uploaded on a server) to a list of subscribers.
I know this can be done using CDO.Message and CreateMHTMLBody
My question is how can I add a few lines of new content like say a header and footer and may be some personalization (like a direct unsubscribe link for each subscriber.) to an already existing html file before emailing it out.
View Replies
View Related
i have table which is generated from the database, and is beeing displayed on my website...How can i make the header row static???? so i can still see the header row while scrolling thru the data
View Replies
View Related
I have to submit my html-page but the asp-variables shout kepp their contant. is it posible to make a static-variable or can i realize this another way?
View Replies
View Related
I'm using the Server.Execute method to include a static page inside a
dynamic database call. This static page is not a valid HTML page (i.e.
lacking <body>,<head>, etc. elements), but I'm pulling it into the dynamic
page just to give the content an upgrade in presentation, including images.
The problem is that there is no way to have relative URLs in the content
page, so all the image src's are wrong. Is there a better way to include
static content like this, or a way to alter the contents on the static page
prior to running Server.Execute (I could parse the file via the
FileSystemObject, but I'm hoping not to do that)?
View Replies
View Related
forking with a aps site previously programmes which is currently using frames to have a persistant menu floating at the top of the site. I would like to switch this to a floating menu system and be rid of the framing. How do i do this?
View Replies
View Related
My asp application has many asp pages that are linked together.I want to create a variable which is initially set to some value (say 50). On each page,the variable is to be procesessed.
Now on the next page i want to use that processed value of the variable.(ie if on my page 1 value of variable became 30 due to some processing,the page 2 should have the value of that variable as 30 , and not 50)
how and where i should declare the variable.P.S.actuallythe main page keeps on referring to itself. its actually an online quiz
main.asp reads as:
<form name="form1" action="main.asp?action=1" method="POST" >
View Replies
View Related
WINXP/FP2000/IIS4
Is is possible to pass a populated static array to a new page - as session variable, maybe or cookie?
View Replies
View Related
I have a site that will be displaying static files to clients. Each client will have their owb directory locked down through NTFS permissions. Currently I have a Client folder in the wwwroot then that client folder has a folder for static files in it. How much more secure would it be if I moved it out of the wwwroot and used a virtual directory?
View Replies
View Related
I am facing problem with the huge Viewstate size(Using .NET 2.0). to improve the application performance,I am using Static variable to store view state data. Does anyone has other option to improve performance or what r drawback of using Static variable.
View Replies
View Related
I am using forms authentication to protect all content as described in the
kb article below.
http://support.microsoft.com/defaul...kb;en-us;893662
This works fine except for files that are larger than about 40 or 50mb at
which point the user gets a 404 error and the httperr log indicates
connection_dropped status.
This is a w2k3 server with SP1 and all security patches installed.
Has anyone seen this before? I have been reading various posts online but
none seem to fit this symptom. Also have tried tuning various meta-base
properties to no avail.
View Replies
View Related
My client has a laregly static web site in English only. I will be adding e-commerce functionality shortly. Therefore, I am seeking an approach to allow users to select a language to view the entire site with. I have ASP Classic at my disposal. The site has no back-end database. I am thinking of providing Japanese, German and Spanish.
I am aware that different approaches exist. I good book or tutorial would help me out. Or do some of you have ideas? Remember: static pages, ASP Classic and no database.
View Replies
View Related
I know via mod rewrite you can mimi static pages, but how does one do this for ASP? before I go crazy modifying my code to generate a static page for all of our products (1000's of html pages) and new ones for SEO purposes, I want to make sure there is no other way to do this?
View Replies
View Related
I having trouble with some of my classic asp pages being dropped from google.Specifically, a set of four pages reused many times with the content identified via query strings (max 3 variables). I was under the impression that google no longer has a problem with urls appended with query strings. Does anyone know if it is possible to incur penalties for the "over use" of such pages? My product detail page for example is used to display 230 seperate products.
if using static urls may help get my pages re-indexed, but I have had difficulty finding a way to do this with classic asp. Could anyone suggest a suitable method or advise possible reasons for my google disaster?
View Replies
View Related
When I use IIS 6.0 to display static content everything works according to plans. Now I have created an asp page even though there is no dynamic content at the moment. The web page's name just ends in "asp" and has the Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
at the first line of the code.
When I try to link to this asp-page I get an error code saying "Http 500 Internal Server Error". I then disabled the "friendly http errors" and got this information.
"Asp error Asp 0203"
"Invalid code page"
"The specified code page attribute is invalid"
I should also add that I have enabled/allowed asp as extension in IIS manager.
Anyone who knows what I can try to get IIS working with dynamic content too?
View Replies
View Related
I have a table having 3 columns. There is a checkbox for each line. I
need to get those lines whose checkboxes are checked, and show those
lines to another webpage. Is there any way to do that? My concern is
that all information in the table are in <tb></tb> pairs without any
name tag. Any idea?
View Replies
View Related
I'm doing a content management system, whereby the user can enter the HTML code for a currency symbol, eg £ for £.y . when I bring this data backup, say they want to edit the settings, then my ASP/HTML page is rendering the HTML code, eg £, rather than showing the original value, eg £.
If for example I put a space between the '&' and the 'pound;', eg & pound; then this will cause me problems because the user will think that they have to a put a space in or they file it with the space, which means the HTML code won't work any more. Is there a way round this?
View Replies
View Related
i need to include the html inside another html, though it might appear simple, the catch is this, my one html is in one server and my another html is in another server.I cannot read the html and stream it as it has images and their path gets changed when i do that.
More over i donot have any control over the html which i am going to include all i have is a url http:abcxx.htm whose content i want to show in another asp page. The technology is ASP (vbscript and javascript).
View Replies
View Related
I have a form on my asp page that sends data to an emailing script. I am working with other peoples code which is causing a lot of hassle. Is there any way of sending a Bcc address command from the form rather than the emailing script?
View Replies
View Related
I wanted to know how I should go about doing this. I have this query:
SQLmax="SELECT Max(OrderNumber) AS intTotal FROM Status"
Which gives the Max(OrderNumber).Say in this case it is giving out put as 37.
Now i want the output to be displayed 38,which can be done by adding 1 to Max(OrderNumber).
Should i get this by doing this way?
var=RS(intTotal)
var=var+1
Response.WRite var
Is this right?
View Replies
View Related
Im using this code to pass a value to a variable:
<a href="Artists.asp?cat=<%=Server.URLEncode( rsuser( "art_Artist" ) )%>"> <%=rsuser( "art_Artist" )%></a>
How do I add another value to this link with the variable name catArt so that I can add:
?catArt=<%=Server.URLEncode( rsuser( "art_Artist" ) )%>
View Replies
View Related
what do you think is the best way to implement an "add new row to table" functionalilty?
am using asp(obviously )im currently using document.createElement with javascript, but im having a hard time retrieving the data.am also thinking if this is really the best way to do this.or if this would work with all other browsers other than IE...
View Replies
View Related
how to add a password to using this connection string
<%
set conn = server.createobject ("ADODB.connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("dat48372.mdb"))
set rs = Server.CreateObject("ADODB.recordset")
SQL = "SELECT Price FROM DABRadios WHERE (ID LIKE 6)"
rs.Open SQL, conn
showall=true
%>
View Replies
View Related
i have a id1 field which has data like this 002,003,004 and i have to increment it by one when i add a new customer so this is what i do
Set rs1 = Server.CreateObject("ADODB.Recordset")
sql1="Select Max(id1) from table2"
rs1.Open sql1, Conn ,2,2
maxid=rs1(0)
so i get the maxid for example as 003. the next record will be added and it should be 004 and i do it in this way maxid= maxid+1
but when the record is added the id1 field has a value of 4 instead of 004
View Replies
View Related
Say I have to different recordsets that have the fields:
rsA.Fields.Item("A").Value ,rsB.Fields.Item("B").Value
How would I add those to fields? It may be my inexperience but when I
tried something like
rsA.Fields.Item("A").Value + rsB.Fields.Item("B").Value
didnt work because one of the fields was a empty value. I have about
6 fields i need to add together if a value exists in any of them.
Suggestions?
View Replies
View Related
I want to fix this problem, i dont no how. Bassicly there is blank data appearing in my database, for no apparant reason! Code:
View Replies
View Related
How can I add a new user on my server using ASP?
User example: myserver/user1
View Replies
View Related
I'm new to ASP and a few querys
I have created my database in Access with the following fields
StockCode (Text Box, Primary Key)
Item (Memo)
Price (currency)
Picture (memo)
OnOffer (Yes/No)
and I know that access table cannot have a picture in it, only a access
form using OLE, but how do I get my asp page to display a picture for
every record? The picture would be a picture of the product with the
Stockcode as the filename - m001110.jpg?
View Replies
View Related