first of all, make sure that IIS is running, sometimes it stops suddently. Or just restart it.
next, try http://127.0.0.1/nocat/default.asp instead of localhost.
if your datatype for datetime is char then you will have spaces at the end of the string to fill out all the length of the field. That is why you need TRIM to trim them out before you compare. ' Oct. 5' is different than 'Oct. 5'. Maybe that is the reason.
After adding TRIM, do you get the...
There are two ways to do so
1. in the asp file where you have the link:
<a href="myapp.exe">click here to download</a>
when user clicks on the link, the browser will download that file and let user chooses between "Save", "Open", "Cancel".
2. <a...
I would use Dictionary to check for duplicated values. Before you add one item (date) into the Dictionary, you use object.Exists(key) to check.
If (object.Exists(key) Then
'do nothing
Else
'add into Dictionary
End If
You need one more information for the cookies (Expires)
Response.Cookies("LoggedIn").Expires = Dateadd("d", 3, Now)
That cookies will be expired 3 days later. If you don't have Expires, that cookies will be discarded when the browser is closed (like Session).
All include files are loaded into asp files before any ASP code is executed. Therefore, you cannot use that method to select which include files you want to load based on an ASP conditional statement.
I believe that this topic has been discussed many times. You should search here to find more...
You cannot use Session in this case. After IE is closed, all session variables will be gone. When user opens new IE, new session varialbes will be assigned to that IE (exactly to that SessionID).
You have to use cookies to save username and password on client's PC, so that, you can retrieve...
besides adding <% and %> you need an asp interpreter (like IIS, Chili!Soft ASP, ... I think you don't have it so you got error after adding <% and %>. Sorry, I don't know any free asp server to re-distribute.
the vbscript you wrote is client-side script, it will process only files on client's PC. If you want to open files on server, you must use server-side script. VBScript in HTML file will only run on client's PC.
You are running a client-side script.
To make it a server-side script, put your VBScript inside <% and %>
and use Server.CreateObject instead of CreateObject
<%
Option Explicit
Sub tstvb()
dim filesys, readfile
set filesys = CreateObject("Scripting.FileSystemObject")...
This is not exactly what you want, but this is an example that you can pass ASP variable to a client-side JavaScript.
I tested.
page1.asp
<head>
</head>
<body>
<form action="page2.asp" method="POST">
<input type="text" name="s"...
Just a thought.
I think that you use OutLook or some email client to read the email. Maybe that email client automatically break the line and go to the next line if that line is long (I think usually they set 78 chars/line).
In this case, the link is not long but Len(the text and the link) is...
when you use
Call VBFunction (sql)
asp will call server-side function.
I think you should use like this (not tested)
<% 'create SQL string from posting asp
'asp code here
sql = "This is my sql"
%>
<head>
<script language=vbscript>
function vbFunction(<%=sql%>)
'vb code here...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.