Reading Doc Files

Is it possible to display a doc file within an ASP page and have it show the header and footer of the page?For example,in ColdFusion you can use cfcontent to display doc files, however any html on the containing page doesn't show.I was hoping that with ASP, it would show the HTML of the page that reads the doc file.

View Replies


ADVERTISEMENT

Reading Files And Directories

I have several files and directories and I want to read the contents, seperate them into fields and INSERT them into a database.

The structure is as follows:

D:DISCSSC8849SC8849-01 Artistname - title.zip
D:DISCSSC8849SC8849-02 Artistname - title.zip
D:DISCSLG114LG114-01 Artistname - title.zip

I want to read every file in D:DISCS, seperate the filenames into: Disk Number, Track Number, Artist and Title - drop the .zip and the hyphens entirely and insert the data as a record in a database.

View Replies View Related

Reading Text Files

I was under the impression if I had a page with several database queries to 3 different databases, it would be faster if I just had the queries cached to text files since the query result won't change that often and I build the cache manually when needed.

So my question is would it be faster to just include text files instead of doing multiple Access and SQL queries on a web page?

View Replies View Related

Linking Reading Files

Assume that there are 100 flash files in a directory and i want to load 4 flash. files for every page and list of links in a row previousPage.page1.page1.page3.........page10.Nex tPage) How can i divide
100 files into pages and 4 filash files on every page. is it possible to use files systemobject to createpages or sholud i record content of directory of files to a database and then use recordset to create pages.

View Replies View Related

Reading Server Files

I have files on a server. I want to read the SERVER's File system and write out the filenames to the page. how can i do this?

View Replies View Related

ASP/PerlScript And Reading And Writing Files

In ASP, using PerlScript, how do you read and write to files?

View Replies View Related

Ideas For Reading/writing .ini Files

I'm planning a little asp prog that will allow me to read&write .ini files.

meaning, read lines that are:
key=value

and maybe even read from groups (optional):
[group 1]
key1=value1

[group 2]
key2=value2

View Replies View Related

Displaying Image From Database Saves Files To Temporary Internet Files

I have a website that we display images we have saved into a SQL Server 2000 database as binary BLOB. This is on a Windows 2003 Server. Just recently (a week ago) this website began to save the images it is displaying on the website as ASP pages in the Temporary Internet Files > IE.Content > Folder.

We have other websites where we use the exact same code and these do not save files on the server when they are displayed.

Here is the code to display the image:
Set rs = objConn.Execute( SQL )
Response.ContentType = "application/octet-stream"
Response.BinaryWrite rs("Product_Image")

SQL is the SQL String to get the image from database

When I add this code:

Response.ContentType = "image/jpeg"

The images still display on the website, but now are saved in the Temporary Internet Files folder as JPG's.

View Replies View Related

Reading XML With ASP

Could somebody please help me out with this? I have been researching it all day and can't figure it out.

All I want to do is put some info from this XML file (staff.xml):

<staff>
<employee id="1">
<name>John</name>
<job>Janitor</job>
</employee>
<employee id="2">
<name>Mary</name>
<job>Accountant</job>
</employee>
</staff>

into an ASP page. I already started an ASP page:

<html>
<head></head>
<body>
<%
Set objXMLDoc = CreateObject("Microsoft.XMLDOM")
objXMLDoc.async = False
objXMLDoc.load("staff.xml")

response.write("<p>")
'I NEED TO INSERT THE FIRST PERSON'S NAME HERE
response.write("<br>")
'I NEED TO INSERT THE FIRST PERSON'S JOB HERE
response.write("</p>")

response.write("<p>")
'I NEED TO INSERT THE SECOND PERSON'S NAME HERE
response.write("<br>")
'I NEED TO INSERT THE SECOND PERSON'S JOB HERE
response.write("</p>")
%>
</body>
</html>

That's all I have in the ASP page because I am having trouble with it. Could somebody please help with it real quick? I'm sure it's very simple, but I am having trouble learning the XMLDOM thingy.

View Replies View Related

Reading RSS/XML

anyone know a simple to use RSS/XML feed getter so i can add external news
to my site?

View Replies View Related

Reading Xml

I got a little piece of ASP code to read from a remote url, which is expected to be an xml, like a RSS feed, and echo the content out to be processed by downstream xml processor. The code is like this:

<%response.ContentType="text/xml"%><%
Response.Buffer = false
Dim objXMLHTTP, xml, url, text
Set xml = Server.CreateObject ("Microsoft.XMLHTTP")
url = Request.QueryString("url")
xml.Open "GET", url, false
xml.Send
text = xml.ResponseText
Response.write(text)
Set xml = Nothing
%>

Using firefox, I get the request.responseXML object back from the code above, works fine. But in IE, the request.responseXML is returned null, but request.responseText did show the entire xml file.

My question is how should I make change to the above code to let IE honor the request.responseXML object? I gues the xml is somewhat ill formatted and IE can not recognize it as an xml.

View Replies View Related

Reading XML

I have an ASP classic site that needs to add the option of reading an XML file send back from another web site and parsing it into a multi-column HTML table. The server is Windows Server 2003. Can anyone direct me to where I might find more info on this?

View Replies View Related

Cd Reading

I have just created a cd based demo web with FP2000 under XP pro. The disc plays back fine on the XP machine, but when tried on a WIN 98 machine it doesnt play, and I get " G: is not accessible Device not ready" when I try to read it in Win Explorer. The disc is a 48x speed 700mb CD-R. Is it too fast for the older machine?

View Replies View Related

Can Php Files Execute Inside Asp Files?

Can a php file be executed inside an asp file? I need to execute a php file in another asp file but i'm not so sure it's possible.
My server can run both asp and php and they run without any problems... I just need to find a way to include the execution results of the php file in the asp one.
Is it possible to use SSI and include the executed php file and then the executed asp file in a main ssi file?

View Replies View Related

Convert ASP Files To Executable Files

I have installed PWS in windows 98 in each of the system at various places and put my Sales program files in the WWWROOT directory in all the branches. I'm afraid that the users may tamper my ASP files. Is there any way of converting .ASP files to .exe files so that the dont see my program.

View Replies View Related

Reading A Cookie Value?

am trying to create a login page for the first time, I have a login page, validate login page and if the password is correct it takes me to the first page.

I have customized this code someone else created,but what I have a problem with now is I need to log who submitted that data and that is why I am trying to read UserName cookie so I can later match that data.

This is the error I get which is telling me that it is reading the cookie since this is the UserName I am logging in with
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'boxhill'.

but I can't see what is wrong, and there is not much out there for this kind of error.

So I can login successfully but now i need to read and dispaly that cookie and then insert the value of the cookie but,but don't worry about that now, just trying to give you the full picture.

So this is the code for reading the cookie ...

View Replies View Related

Reading Mp3 ID3 Tags?

i was wondering if any one could give me some info on how to get mp3 ID3 tags in ASP?

I've seen it done, but don't really have any idea how,
just looking for info like song lenth, bitrate, and so on.

View Replies View Related

Reading DIV Tags

I have a function in ASP and I want to read a DIV tag. Any ideas? I know
the syntax but when I apply it, doesn't work.

View Replies View Related

Reading/Echoing

What is a good method to read a file that is hosted on another server. I really want to echo the code found between a "<PRE>" and "</PRE>" tag found in the source of an externally hosted file. How should I go about this? I am somewhat new to ASP, but am confident there is a way.

View Replies View Related

Reading File

I have a routine I'm writing to read the contents of a file and modify it. However the file will not parse properly into an array, so I strongly suspect I'm using the wrong character to parse the file. The line of code that is supposed to parse the file is:

arrLines = Split(sFileContent, vbCRLF)

When I view the array, it appears as one continuous line, but when I open the file in a file editor it's very clear there are 15 lines.

View Replies View Related

Reading An Xls File

I've got a league standings file that gets uploaded as an xls file. To display the contents, I'm not sure what the most efficient way is:

1.) Import the xls file into a database every time the file is updated

2.) Read the contents of the xls file using OpenDataSource or OpenRow Set

3.) Something I haven't thought of yet!

View Replies View Related

Reading A Sql File

I've to got a login script, but in the middle of the verification script, I'd like once the vify has been ok'd to look for a sql file, that has insertion data in it, once the file has been found the asp code must read and carry out the sql command (insert the data in the access db), once done the sql file gets deleted. Code:

View Replies View Related

Reading The Cell

I have to upload one excel file. In that excel file I need to check the availability of data in particular cells and also the worksheet name. If the data is not available at particular cell, say for eg: $F1, an error should be thrown to user saying that the data is manadatory. How to do that? How to read the particular cell in ASP? If anybody knows the code, please send the same.

View Replies View Related

Reading A Variable

How do you read a variable that you've declared on one page

For example
I've declared
dim x
x=23

then i goto the next page. I can't seem to access it.
How do I get access to that variable that has been defined in the previous page.

View Replies View Related

Reading From Csv File And ,

Im having a bit of trouble with taking a csv file and sperating each row with a "," because we all know that csv's are serpated by cammas, my problem is the rows are getting messy because say I have for the first Collum "Toy, Really fast", it will seperate the collum name because of the , Is there any way I can remove these or whats the best way.
Heres my code right now: Code:

View Replies View Related

Reading File

I am developing a web page, in that i have to get user's photo from user and insert it in to database. how to upload this photo from local drive to my server

View Replies View Related

Reading Title

i dont know that is this right to put the question in this forum or in html forum.
anyways, the question is how can we read/find the value of title tag of html page using asp or any scripting langauge.if any one has idea, please do share

View Replies View Related

Reading The Data Of A .xls

I cannot figure this out for the life of me. All the tutorials I've gone though give code (and from what it looks like, wrong code) with absolutely no explanation?

My ultimate end is to read the xls file into a mysql database.. but I need some method, way or idea of actually doing this. Presently the data is an a .mdb database (so I can save it to different formats) but I cannot use the .mdb itself to upload the info (server disallows reading and writing from .mdb).

I've looked all over and there is no detailed method of doing this (all I really need is just the basic code for connecting to a .xls sheet (excel sheet) and then reading the data from a line and displaying it on the screen (there is no present tutorial that explains that, least that I can find)

View Replies View Related

Reading From An Email

I need to read from a weekly email and extract the contents of that email then convert them into HTML. I do not have control over the email that is being sent but do have control over the email account the notice is sent to? So to explain everything I need to take this email and post it onto a site, I can do it manually everytime but am looking for a way to let the script do it?

View Replies View Related

Barcode Reading

Does anyone have any experience of using barcode reading software with ASP applications?

I have an ASP-based application where Serial No's are entered manually. The users want to move across to a barcoding system so Serial No's can be picked-up automatically.

I have no experience in this area... Are there appropriate tools out there?Can anyone give me a few pointers?

View Replies View Related

Reading From Database

I have written some coding to insert customer details which writes to the database (table name is called cars). On my website if an existing customer enters their car reg then i wish for the rest of the fields to be filled in automatically by reading it from the database, has anybody got any ideas on what coding i should use for this and how i would go about doing this? My coding for insert is as follows: ....

View Replies View Related

Reading XML/RSS Feed With ASP

I could post the various bits of code that I've tried to use to get this to work... but it'd be kind of pointless as I haven't gotten very far with either of them (I've run across encoding problems, and problems where it works on the local machine, but not through ASP. I've tried using an XLT doc and without).

View Replies View Related

Reading URLs

if it is possible to store the URL of a browser window as a variable? For example:

var loc = window.location.href

in JavaScript will store the contents of the address bar as the variable loc.

View Replies View Related







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