On a hosted web server I have asp pages that when I login it stores a session throughout the website until the session is killed. What I am trying to do is keep a session alive while going from one web server to another. So let's say I login on my website and it creates a session. On my website...
One the top of the page I'm trying to add some code is:
<%@language="javascript"%>
The code I'm trying to add is:
<%
if not session("userinfo")="" then
%>
xxxx
<%
else
response.redirect "http://www.advancedcontrolsolutions.com/sessionexpired.asp"
%>
<%end if%>
It keeps erroring out by...
One the top of the page I'm trying to add some code is:
<%@language="javascript"%>
The code I'm trying to add is:
<%
if not session("userinfo")="" then
%>
xxxx
<%
else
response.redirect "http://www.advancedcontrolsolutions.com/sessionexpired.asp"
%>
<%end if%>
It keeps erroring out by...
I have a javascript that reads a recordset that has 2 images stored in it:
<script>
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000
// Duration of crossfade (seconds)
var crossFadeDuration = 3
// Specify the image files
var Pic = new Array() // don't touch this
// to add more...
I have a database that stores the image name. The images are stored in a directory called img. In the database table images, I have fields image1 and image2. What I want is to display these images on a page. I want the script to check the database to see if there's image1, if so display it. If...
I have a function which puts zero's in front of my data. The number of zero's is based of the length I specify. Here's the function:
Function Pad(strText, nLen, strChar, bFront)
Dim nStartLen
If strChar = "" Then
strChar = "0"
End If
nStartLen = Len(strText)...
I have an MS Access database that sotres images. The fields are as follows:
Field Data Type Example Data
FileData OLE Object Long binary data
FileSize Number 21024
FileName Text building.jpg
ContentType Text image/pjpeg...
I have a user name and password login that uses a MS Access database. I want to know if it is possible to have a password expire in a certain time period. Say I change the password in the database and it records a timestamp. And I want it to expire 24 hours from the timestamp. Is this possible...
I have a payment field on a form that is numeric only allowed. The default value of the field is 0.00
If I enter a dollar figure in then I decide to clear it out then the field will be blank. How do I always keep 0.00 in the field only if it's blank. I used an onblur but my code won't work...
I have a form that collects checking account information. After collecting the information and pressing the submit button, it stores this info in an Access database. What is the best way to protect this info at the page level and database level? Would using SSL to protect the asp pages be fine...
When I press the submit button it has ok or cancel. When I hit ok it submits the data, when I hit cancel it submits the data. I want it when I hit cancel to not submit the data or reload the page. Here's my code:
<SCRIPT LANGUAGE=JAVASCRIPT>
function verify(){
msg = "Are you sure all the...
I have 3 textboxes on a form. Two of them will have dollar amounts entered into them always in dollars and cents like so: 23.99
I want to have textbox1 plus textbox2 equal textbox3.
User enters 25.99 into textbox1, textbox2 will have a value of 5.00 already in it and this textbox will be read...
I'm using the now() function to get the date. I need to format it before it gets written to the database.
Examples:
Was: 6/29/2004 12:41:04 PM Needs to be: 062904124104PM
Was: 11/9/2004 1:41:04 PM Needs to be: 110904134104PM
The time needs to be military time.
I have a script that calls a page which then redirects back to the original page. The problem is that when the script is called it opens a new page. Here's the code:
<script LANGUAGE="javascript">
function DoDeleteHead(){
var submitOK = confirm("Are you sure you want to delete this record?")...
Why is it when I enter a dollar amount with 2 decimal places does it round down the last digit? Say I enter 233.46 it will display 233.45
Heres my code:
<script>
function doIt(_f)
{
_f.t.value=convertIt(_f.t.value);
}
function convertIt(_v)
{
var _dollars=parseInt(_v);
var...
I have a field on my form for dollars. I has a max length of 8 chars. I'm storing this field to my database. Say a user enters in the following, I need it zero filled and the decimal stripped off:
566.38 = 00056638
239.40 = 00023940
432 = 00043200 if the user didn't enter a...
I have a login page with user name and password. How do I make it where if the user enters a wrong user name and password 3 times, it will not allow them to try a 4th time and displays an error message saying contact webmaster.
I'm trying to get a file uploader to work on my website. It works fine on my local pc. I listed the following code for each page below. I tried to change the path in the code by I'm not sure of the complete home directory path where my webpage is kept.
default.asp
<form name="frmSend"...
I have a textbox on my form that a user enters a part number. When the user tabs off the textbox I would like a message box to popup if the item does not exist in the database.
I have a text file with two columns: Email and SSN
Below is the text file named login.txt:
Email, SSN
14342, 4323
43545, 2232
03232, 2322
23232, 0434
Below is the code for my file called sDSNFile.dsn
[ODBC]
DRIVER=Microsoft Text Driver (*.txt; *.csv)
UID=admin
UserCommitSync=Yes
Threads=3...
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.