i am working on a page which calls an asp page on another server with some xml and then gets some xml back. the page calls and returns the xml fine but trying to display that xml properly is the problem.
here is the code:
Code: set req = Server.CreateObject("Msxml2.XMLHTTP") req.Open "POST","http://www.domain.com/xmldata.asp", false
strPath=Server.MapPath("ADList1.txt") Set objFSO=Server.CreateObject("SCRIPTING.FILESYSTEMOBJECT") Set objOpenFile=objFSO.OpenTextFile(strPath,1) Do While Not objOpenFile.AtEndOfStream Response.Write(objOpenFile.ReadLine() & "<br>") Loop objOpenFile.Close Set objOpenFile=Nothing Set objFSO=Nothing %>
When I try to execute the above code, the code never gets executed. Neither am I shown a script timeout error. After a lot of investigations, I concluded that the code is not getting executed due to the presence of
Set objOpenFile=objFSO.OpenTextFile(strPath,1)
If I comment line nos. 3 to 8, then the code gets executed but as expected without any output. Is this happening because of some permission which has not been given to IIS 5.0? If so, what is it? I am working on Windows 2000 Professional.
I need to read a simple txt file where there are some variables. I've done this a lot of times but in this case I have something different: the text file is located at an ftp server.
I've got a stored procedure which returns a select query on a linked server. This works fine if i call within SQL and Query Analyser but if i try and execue to return data to a ASP recordset i get the ridiculous
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14) [Microsoft][ODBC SQL Server Driver][SQL Server]OLE DB error trace [OLE/DB Provider 'MSDASQL' IDBInitialize::Initialize returned 0x80004005: The provider did not give any information about the error.].
Am i missing something really basic like a simple setting or is it just not possible.
1. Read a message from a POP3 mailbox 2. Parse the message into its parts 3. Create a record in an SQL server table with selected fields of the message 4. Upload the attachements to the filesystem 5. Write the path of the attachements to the SQL server record
For security reasons, I want the process to be initiated and approved by a user.
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.
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.
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?
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?
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.
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.
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.
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:
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.
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:
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
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
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)
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?
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.
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?