I'm hoping someone can help with a problem...I don't work in anything related to programming, but we needed some asset tracking pretty badly, so in my spare time (not very much, we average 10hrs days) and with the tools at hand (a 600mhz pile running winXP) i built a little classic ASP site to handle all the tracking and orders. Everyth...
I've got a web-based RSS Reader written in Classic ASP that I've used successfully in public projects past. However, it does not want to cooperate on this in-house project.
Pertinent Code:
set xmlDoc = createObject("Msxml.DOMDocument")
xmlDoc.async = false
xmlDoc.setProperty "ServerHTTPRequest", true
xmlDoc.load(extURL)
If (xmlDoc.par...
Does of anyone know of any Classic ASP (VBScript) Twitter libraries? Thanks.
...
I have an ASPX page that redirects to a page that has an IFRAME which requests an ASP page on an entirely different domain. Once I'm done doing what I need to do there, I need to get back to the original ASPX page.
Is there anyway to do this? history.goback(-1) does not work as it just refreshes the IFRAME. Any suggestions?
...
I have an application that I want to (eventually) convert to ASP.NET MVC. I want to do an all out service upgrade (to ASP.NET) but want to use current asp stuff to run the current functionality so I can upgrade small pieces while making incremental upgrades to the new framework. This site is heavily dependent on a VB6 DLL that is not v...
Hi there,
I have some problem with inserting image when i generate pdf using FPDF library (ASP port version) you can get it here ASP FPDF
I have tried this code (this was ASP VBScript):
pdf.Image Server.MapPath("map.jpg"), 10, 10, 800, 400
pdf.Image "map.jpg", 10, 10, 800, 400
pdf.Image "http://localhost/pdf_test/map.jpg", 10, 10, 80...
I am maintaining a classic asp application and while going over the code I came across two similar lines of code:
request.serverVariables("URL")
''# Output: "/path/to/file.asp"
request.serverVariables("SCRIPT_NAME")
''# Output: "/path/to/file.asp"
I don't get it... what is the difference? both of them ignore the URL rewriting that I ...
I have a string of "DD/MM/YYYY HH:MM:SS" which I need to transform to a date, the problem is the default conversion goes "MM/DD/YYYY HH:MM:SS" unless the day is >12 in which case it switches. I'd like to ensure that my day's go into the day portion of the date/time.
Is there an easy fix to this?
...
I have a legacy web page made with frames (yah, I know). One frame (letFrame) is trying to update another frame (rightFrame) with the following anchor:
<a href="foo.asp?myVar=BAR" target=rightFrame>
foo.asp is already loaded in rightFrame and looks something like this
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="MYNAME" Content...
I have a scenario in which I am loading a separate classic-ASP application into an IFRAME which I have programmatically embedded into an ASP.Net web form. This external application uses session variables extensively, however, when it navigates from one page to another, it loses the session variables. Any suggestions?
...
I have previously used Expression Web with XP and MS Server 2003 and in each case I am able to preview .asp pages in the browser.
I have now transferred to Vista and get the error "this page may contain dynamic content that requires a Web server...."
On the other hand should I wish to preview an HTML page there is no problem.
I am awar...
I have to convert some code from classic ASP to ASP.NET
1) How can I best handle syntax as below, where it seems to fail because the code is inside a tag, and also perhaps because the condition is split over several tags.
2) Any tools or guidelines that are good on this kind of code?
3) Classic ADO.
<li><a<% if "" = myFolder the...
Does anyone have a relative date/time from now to a natural/human for classic ASP function in VBScript? This is like Twitter.
Examples:
Less than 1 minute ago
About 5 minutes ago
About an hour ago
About 3 hours ago
Yesterday
Wednesday
etc.
...
So the problem is half the app is written in classic asp and half is in asp.net. There's a PDF file (in memory) that is generated by classic asp code that I need to share with the .NET half. I thought of saving the PDF to the FS or DB, which I am pretty sure most of you wouldn't recommend because it would need to go through a very slow p...
Hi friends,
I have an ASP page where I have 2 variables, strActualRate and strProposed.
The values are:
strActualRate = 33.30
strProposed = 33.3
So when I write the following line to compare:
if strActualRate <> strProposed then
Response.Writr "Both are not equal!"
end if
I am getting the output "Both are not equal", even though...
I'm a C# and PHP developer. At work, I just got some classic ASP stuff dumped in my lap. I only need to make edits for a few weeks so I don't want to have to learn too much about legacy stuff I'll never touch again. However, I do need to be able to do my job for this duration.
How can I get a good crash course in ASP? I need to get good...
We've got a large classic asp application and we consider migrating to either asp.net or php. I don't want to talk about the pros and cons of either one, but I'd rather like to know whether there are ways to avoid a complete rewrite in one shot when migrating to php. We simply can't stop maintaining the current codebase just to do a rewr...
Hi
Im trying restore database from backup dynamically with application code
simple sql command for restore
con.execute("RESTORE FILELISTONLY FROM DISK='c:\old.bak' " & vbcrlf &_
"RESTORE DATABASE newdb " & vbcrlf &_
"FROM DISK='c:\old.bak' " & vbcrlf &_
"WITH MOVE 'newdb' TO 'c:\newdb.mdf', " & vbcrlf &_
...
I have a classic ASP style #include from a ASP.NET file as:
(!-- #include file= "../../maininc.aspxinc" --)
(Guess it is actually an IIS server-side include?)
It is some strange caching going on. It seems like the original file is cached so that changes in maininc.aspxinc has no effect.
IIS6
Expiration headers off as far as i can se...
I'm writing a COM object in C# and I'd like to raise errors to vba/asp client software using the mechanism it understands - the Err object.
In good ol' days that would have meant implementing ISupportErrorInfo on the COM object but I can't find any information about how to implement that interface in a C# object.
Can anybody help?
tha...