This is my objective. On a server at one of my companies, I have a login page running on the webserver their. I have my website host on a server in another building. On that website, I have people that login to their profile and they have a link to get to the other server to login. That login...
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...
This is what I had:
iCheckNumber = Pad(Replace(CStr(Request.Form("CheckNumber")), ".", ""), 9, "0", True)
This works perfectly:
iCheckNumber = Pad(Replace(CStr(Request.Form("CheckNumber")), ".", ""), 9, " ", False)
All I had to do was replace the "0" with " "
And True to False
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 need to fix this code to display the date as 2000716 instead of 071604:
Function DateToString(xx)
Dim dd, mm, yy
xx = Request.Form("PaymentDate")
dd = ZeroFill(Day(xx),2)
mm = ZeroFill(Month(xx),2)
yy = ZeroFill(Right(Year(xx),2),2)
DateToString = mm & dd & yy
End Function
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...
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.