I have a delete button, using a dtc, and need to prompt the user with an "Are you sure?" yes/no after he clicks the button, but before the delete takes place. I have the delete in a server side event handler:
<SCRIPT ID=serverEventHandlersVBS LANGUAGE=vbscript RUNAT=Server>
Sub...
What am I doing wrong here? I'm getting the error:
Type mismatch: '[string: "<input type=button v"]'
Am I missing a set of quotes? How do I do this?
Thanks for any help.
Here's my code:
do while not rsEmpPosts.EOF
dim referenceNum
referenceNum =...
How do I do the equivalent of a Yes/No msgbox in vbScript.asp? I'm getting a permission denied error, and I looked in the documentation and it said it was removed from vbScript in asp.
Does anyone know how I can get around this problem?
Tbank you.
I'm probably not going about this in the proper way, but it's making me problems:
I have a page that displays all the user's info and also all the job posts he made with their info and an option to change them.
So I opened up a recordset with all the post info where EmployerID = EmployerID. So...
Is there a way to make a dtc button on the fly?
I'm trying to validate a form made of dtc's. In the onClick server side event handler, I ran through all the fields, and if they were incorrectly filled in, I recreated the field and added one to a counter, otherwise I recreated the field with the...
How do you make a server side button - in other words a button that will call a server side event handler - in vbscript?
I'm trying to create a form on the fly, and I need to make a button with an onClick that will be handled server side. There is a dtc that does this, but I need to create it...
Is there a way to use string.indexOf() is vbScript?
i.e.
if email.indexOf("@") = -1 or email.indexOf(".") = -1 or email = "" then
Thanks in advance!
Can someone point me in the right direction, please?
I'm trying to validate some form fields in VI using dtc's.
I have an onClick event which reads all values from the page and writes them to the db using addImmediate.
I would like to get the values from the form and rewrite the form with the...
I have an include.asp file on every page. My problem is that on any page that requires server side event handlers such as onClick, there seems to be another round trip to the server which cancels out the contents of the page. For example, the code in the handler will not recognize the form...
I think I finally got to the root of this onClick problem. Now I just need help getting around it.
I have an include file with a .asp extension on a page that also requires onClick processing. In the onClick I need to reference recordsets and forms from the rest of the page. The problem is...
I have the following code in an onClick server side event handler:
<script ID="serverEventHandlersVBS" LANGUAGE="vbscript" RUNAT="Server">
Sub btnSubmit_onclick()
session("Location") = Request.Form.Item("lstLocation")
Response.Write...
I have the following code in an include file to check if the user logged in or not. For some reason, whenever a page requires session variables being set in an onClick event, this code kills them, and they don't show up on the next page.
Does anyone know why and what I can do so I can have this...
On my hello username box in the corner, I had the "If you are not USername, please login." With login being an href to the home page like this:
if session("CandID") <> "" then
dim helloString
helloString = "<h3>Hello " & session("UserName") &...
At the top of my menu, I have some code to check if the user is logged in by way of session variable, and if so, hello User. Otherwise, it will display a login box.
The problem is that when I get to the first place where the session variable would and should be <> "", the code seems...
I'm trying to put a login box on the top of each page and hello username if the user logged on already, i.e. if they have a session variable. Maybe this is crazy, but I wanted to include it in each page just above my menu, so I don't have to put it on every page and for ease of changes.
Here's...
Jorgandr gave me this code a while back, but I didn't use it then, because I thought I'd use dtc listboxes instead of manual asp, but I couldn't get them to work, so I used this after all, and it works just great.
It's a little hard to read with all the <%, and I was wondering if there's a...
I have a page that checks in two different, ever changing, tables for matches and emails users if matches were found. I set the page to run once a day. But, how can I keep track of which matches were already found so I don't keep sending the same email every day with the same info? I suppose...
When I try to update a recordset
rsValidatePassword.updateRecord
I get this error:
Insufficient key column information for updating or refreshing.
The page has a sql statement which checks a username and password from the page before against the db, and brings up all the user's info, and...
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.