Getting HTML Source From Web Pages To Include In My ASP Scripts

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

View Replies


ADVERTISEMENT

Pages Display Source Code In Browser

I'm just trying to set up a testing server via Dreamweaver that is my local box. HTML works fine and ASP works fine IF there is no js code input. I can save a few images in a table as an ASP page and it works great, but if I try to pull a table from a database, the browser suddenly displays the code, rather than the page.

I've heard some people referring to articles that might address this, but so far I'm not seeing them.

I have .asp files being handled by asp.dll from the internet information services section.

What the heck am I missing? What else should I provide y'all so we can brainstorm this?

View Replies View Related

Source Code For Professional Active Server Pages 3.0

I got this book for some time. I need to download the source code for this
book. However, Wrox, the publisher, does not have download code for this
book. Could anybody suggest any site from where I can get the download of
source code for this book?

View Replies View Related

Reading And Displaying HTML Source From Remote Page

I am currently attempting to convert from PHP to ASP and I am having some difficulties.

Foremost, from my PHP page I have pages that reference HTML source code from a remote page, write it to a local page and then displays it. I haven't been able to find any way to display this HTML source anywhere.

View Replies View Related

Run Include Pages With Querystring

i want to include 2 page in ONE ASP page . i want to change include pages with querystring by this method : when open page in normal mode run first include page (EX :index.asp), and when enter querystring in addressbar change page to second include page (EX :index.asp?cat=2) is this possible?

View Replies View Related

How To *include* A File In An Html Page?

i have many *.html* pages with the same header. i wanted to make one *header* file and put a link to that file in all html pages. So if i ever need to make changes in the header, i will need to edit only 1 file rather than all pages.

for *.asp* pages this code works fine:-

<!-- #include file="filename.inc" -->

but the same **include** does not work for *.html* pages. i guess there is some other way to put a link!

View Replies View Related

Include A Line In .HTML File

is it possible to include a line of asp in a .html file?

View Replies View Related

Active Server Pages Error 'ASP 0234' :: Invalid Include Directive

I'm getting this erro.wht does it mean

Code:
Active Server Pages error 'ASP 0234'

Invalid include directive

E:INETPUBESVC001320HTML../assets/lib/MSDBConnection.inc, line 2

Server side include directives may not be present in script blocks.Please use the SRC= attribute of the <SCRIPT> tag.

View Replies View Related

Asp And Html Pages

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.

View Replies View Related

Include Header File With Extention .html In Asp

I want to make a web page in which I would include first header from header.html(it works fine),then sql connection subs from sql.asp,then variables from config.asp and so on.

when I write include for those asp files it doesn't seem to read them (no variables can be read)and when i try using server.execute,it shows me their content like in normal html files.I've tried to find a solution, but either I haven't looked long enough or it's not available.

View Replies View Related

Convert Several ASP Pages Into HTML

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?

View Replies View Related

Process HTML Pages

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?

View Replies View Related

Create Html Pages Through ASP

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.

View Replies View Related

Using Asp Script In Existing Html Pages

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 ?

View Replies View Related

Static HTML Pages Live

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

Compile HTML Pages Into One Page

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?

View Replies View Related

How To Include Html Files In ASP (similar To Index.php?page=contact)

I'm building a site which runs on 4 templates, each a different colour. I would like to pull in different content into each template using ASP.NET, similar to the php version of index.php?page=content.

I've not programmed in ASP before so am hoping someone can either supply me with a script or point me in the right direction.

View Replies View Related

Security :: Prevent Users From Submitting HTML Pages From Their Local Machine

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.

View Replies View Related

Using ASP To Replace Content But Not Tag Content In HTML Pages

Using ASP I'd like to modify a string that contains HTML. I need to modify the content (the bit that the users see) but not the stuff in the tags. For example, if I had the following string Code:

View Replies View Related

Asp Pages Randomly Showing As Blank White Pages

Using IIS 5.0 and sometime some asp pages (absolutely
randomly) showing as blank white pages. So far only one
way of fixing it - restart whole server. Restarting IIS,
or specific web server not helping, only whole server.

I enable server side and client side debugging, but no
errors showing up...

In view source pages always look like this:
-----------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1251"></HEAD>
<BODY></BODY></HTML>
-----------------------

Any idea why it can happened and how to fix?

View Replies View Related

Can XML Be Used As ADO Source

I am working on a small project which requires XML data to be read from ASP.

I am successful at using XML/DOM objects. But when the data size goes up, sequential access will tax the web server. I would like to retrieve the data in the xml file like a MSAccess DB.

I read somewhere that XML source can be provided as data stream in ADO. If anyone has knowledge on this, please provide me links. If possible, answer to these queries will also be appreciated.
1. Which version of IIS supports this.
2. Which version of ADO
3. Additional components needed at the server ?

I found the following link at MS.
http://support.microsoft.com/default.aspx?scid=KB;en-us;q263247

View Replies View Related

Open Source

I am looking for an open source, very simple CMS that allows an administrator to add pages, news articles, and maybe a staff directory.
We don't need new users to signup, or comment, or anything along those lines. Maybe a wysiwyg editor included. Just for a homepage, a news section (that may include many sub-cats, pages).

View Replies View Related

Source Of Dllhost.exe

I've got a Windows 2000 server running with about 50 websites on it, all
running ASP scripts. I've noticed that the servers CPU usage gets up 100%
sometimes, caused by dllhost.exe, which I'm certain is a hanging ASP script
somewhere on the box. Probably an on error resume next line that doesn't go
anywhere when an error is an encountered. Anyways, I'm not sure if there's
a way to isolate the website where its originating, or even the page this
problem is originating from. Is there a way to do this?

View Replies View Related

Data Source Name

i dunno what's the DSN coz it's my friends code and she's using windows2000 so her open database connection code differs from what i use..like

"con.open ...."

what should i do to redirect the the connection to its database?i cant change all the codes coz there's many pages and takes ahellotta time

View Replies View Related

Source Control

Does anyone know of any source control software (besides Visual studio) that allows a multi-user environment to be able to check out/in files and keep version control?

View Replies View Related

Source Code

I am trying to debug some values in production server.I want to print the value of rRes(10),but I don't want to show it in the screen.I just want to show it in the source code but comment out,so that I can look at the value.Is it possible?

Response.Write("rRes(10) = " & rRes(10)) will show the value in the screen,but i want to hide it in the screen but still see the value in the source code.

View Replies View Related

Source Commerce For ASP.NET

there are any open source for ecommerce site like a one such for 'oscommerce' in php/mysql.

View Replies View Related

Protect Source

i've developed an appliaction that i want to sell it to my client, but dont want him to reseller it, so is there any solfware or techniques that i can used to protect my asp source ?

View Replies View Related

Source From Root

how do u get somthing from the root directory no matter where abouts you are? say i'm in /folder1/bla/test/foler2 and i wanted to place an image on this page but i don't want to have to backtrack ( ../../../../ ) all the way to get there. is there a peice of code that can go straight to the root directory?

View Replies View Related

Source Page In IFrame

I want to open the source code in an iFrame. What's the ASP script for that?

View Replies View Related

Data Source Name Not Found

ADODB.Connection.1 error '80004005'

SQLState: IM002
Native Error Code: 0
[INTERSOLV][ODBC lib] Data source name not found and no default driver specified

------------------

strconn ="DSN=dsnname ; UID=username ; PWD=password"
set conn = Server.Createobject("adodb.connection")
conn.Mode= 3
conn.open strconn
the error is in the last line. THANX

View Replies View Related

Extracting Source Code

Is there a way of processing an ASP page and placing the resulting HTML
source code into a TEXTAREA on another page?

I have a page that will be generated dynamically from database content.
However, I want a form on another page to have access to the compiled source
code for use in an electronic newsletter.

Manually I would load the dynamic page, view the source and copy it out. I
would then paste it into my form field on the relevant page.

View Replies View Related

Split Up Source File

This is not really language specific but more of a source code parsing.
I have a large ASP source file that I like to split up, resulting in separate ASP files, each containing one function and the filename named after that function.
Does anyone know of a tool/script which does this?
PS: I am too lazy to learn Perl/AWK/Python to do this, hence why I believe someone has already written a tool/script to do this. Possibly in C++/etc.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved