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?
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?
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.
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?
I have a client that wants to be able to search both our html and asp pages at the same time.I need to know if this is possible and if so any solutions that I can use.I am working in asp,and access.
I am trying to get a poor mans mod-rewrite done on an IIS server which I do not have full access to.
What I have decided to do is literally copy the interpreted code from the asp page and create an html file with the name that I would like.
Other than manually doing this, is there an ASP or VB command to save the contents of a page after its been run on the client side, and save it as another file?
I'd like to process HTML documents in an ASP script, i.e. to remove any unwanted elements and extract desired element and attributes. I know how to do it on client side within IE using its HTML DOM. But what I'd like is to do it server-side. Is there a way, for instance, to reuse MSIE technology to retrieve interfaces like IHTMLElement, IHTMLDOMAttribute, aso, or just built-in features that would allow me to do the same?
I have a large database of reviews, and the asp processing slows down the server a lot when retrieveing the information. I want an asp application to generate an html page everytime a review is entered into the database so people view static pages.Anyone have a clue on how to do this, i've searched everywhere i cant find the solution.
I'm planning to design a comprehensive shopping cart in asp that will work on different pre-designed html templates. This means that for each html template, the various asp pages like categories (category.asp), products (products.asp), cart (cart.asp) and so on will have same appearance in terms of page background, top logo, company slogan, top links, copyright & privacy statements at bottom, etc. My question is --
Is it possible to divide the html code of a particular template in two parts, like header (header.asp or header.inc) and footer (footer.asp or footer.inc) so that for any asp page, I just include header first followed by asp scripts and then footer ?
If possible, how it is done ? I heard that it is possible in php pages with the help of 'Require' statement. Can anyone suggest any similar page on the web ?
What I would like to do is build a page that displays HTML pages from a sub directory in one long page like an FAQ page.I have code to build a table of contents, I just need to know how to extrac the document tietle from the Meta tag and how to compile the content beloe the table of contents.Could someone point me to an asp routine that compiles FAQ's?
I am running an ASP script which I require to get the source html from some URL so I can pick out bits of this and include the data in my webpage. So it should have a function something like this:
Function GetHTMLSource(String URL)
which retuns the source for example as a string or an array of strings
I'm not sure how to tackle getting the html source. I've tried setting up an Internet Explorer object and also using the createDocumentFromUrl function which have worked in VB but I can't get to work in ASP
I am trying to prevent users from submitting HTML pages from their local machine to our website and I was wondering what the best way of doing this was.
I was thinking about using the HTTP_REFERER server variable (to check where the user has submitted a page from) as a blanket fix however when you use the javascript document.location on a page the HTTP_REFERER is always blank, which makes that a flawed fix.
I have seen other sites protect against this, so I know it can be done. Whats the best way.
I have got a small problem as follows, i am trying to test my web page on the live site of which it doesn't load to the database. hence it loads on the production server.
I am having trouble with an ASP login that uses sessions to control access to certain pages. However the sessions are not being carried accross upon using response.redirect.
I realise that this is the case that DNS names and IP addresses vary upon whether it works or not, however how can i get around using sessions live on the internet? and make them work>?
IT also has almost all of the features I want. It uses a microsoft access 2000 database (I use the following code to connect to the database:
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; " DSNtemp=dsntemp & "DBQ=" & server.mappath("SOMEPLACE") sqlstmt = "Select * From TABLENAME" Set rs = Server.CreateObject("ADODB.Recordset") rs.Open sqlstmt, DSNtemp, 3, 3 Do until rs.EOF or rs.EOF)
The code works fine, I would just like to add a thing and it would tell what page the user(s) are/is at and then I can request a chat with them and a box would pop up asking them if they would like to chat. My oly problem is how would I keep track of the visitors on my site, and how would I know when they left the site?
i'm looking and have been for quite a while now for a good live support script for sales consultants to web surfers.
all i need from the script is the content thats being writen by both parties to show in a log window above and a text field below to enter the text and next to it a .jpeg of the sales consultant there talking too, all with a speedy refresh rate and either automatic notification to the consultant via sound or alert of the surfer browsing the site, or an icon for the user to select for live support.
all needs to be in a pop up box on my site not a seperate chat page or forum. i've seen it on many hosting sites but cant seem to find a cheap or free script to use or alter for myself, any sugestions or scripts would be very much appreciated, and if i can be of any assistance to you i would be glad to assist.
how can we check this locks work ...means suppose i used adlockpessimistic ..this lock does not allow other user to alter data ...i wanted to check it live.
I would like know the active (live) users who have logged in to my site. I should have a live connection with each client so as to enable us to send any messages which should pop up in their system.
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
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?
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)?
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?
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
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?
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.
I was just wondering: is it possible to put something in ASP code that would be able to tell the difference when my site gets visited by a live user or a bot?
My website is setup to email me every time there's a visit, but it notifies me when it is visited by web crawlers as well, which I don't care about, I only want to know about real people. How do I teach my script to tell the difference? Any suggestions?
Someone generates an RTF document, which is stored on the server side. Next he must be able to edit the document in a WYSIWYG way, and save right back to the server (without downloading to the user first and uploading again)
What would be the best way to implement this ? Anything goes. ActiveX, Richtextbox ways, etc...
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.
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.
I am facing a problem that i am unable to connect to Live Communication Server using my own UI. Actually i want to access the API's in LCS through my own UI(which is a messenger UI),which i am using to implement chatting messenger in my project.
The main reson is that i dont know the code to connect to this LCS and what namespace shld i use so that i can access all the functionality of my LCS 2005.
The coding is to be done in c#. I could have used the MS OFFICE Communicator direcltly but i have to use my oen UI and thus i need to connect to this LCS...