I use Request.ClientCertificate to read user cert from Estonian National ID Card for authenticating users. All works fine, i can read cert and personal id code, authent. user aso.
But problem is when user logs out and the browser info stays open, even when user removes id-card from reader and clicks on "Login" link, user will be authenticated because cert. is in cache? Code:
I got a problem while running an application. The code for this is as follows:
aList = Split(strMsg,";") For nX = 0 to UBound(aList) strarry=split(aList(nX),"_") var_year=left(strarry(2),4) var_month=mid(strarry(2),5,2) var_day=mid(strarry(2),7,2) var_date=var_day&"-"&var_month&"-"&var_year var_time1=mid(strarry(2),9,2) var_time2=mid(strarry(2),11,2) var_time=var_time1&":"&var_time2 set rs1=conn.execute("insert into tbl_BackupfileInfo(Filename,Createddate,Createdtim e)values('" &aList(nX)&"','"&var_date&"','"&var_time&"')") Next
while runnig this application some times it works fine .But some times it giving an error
Error Type:Microsoft VBScript runtime (0x800A000D) Type mismatch: 'UBound'.
I am trying to create a string that is cencatenated from values in a form. The form pulls in the values in a reocordset and displays each record in a row with a checkbox.
I want to cencatenate the values of the ProjectName field if the checkbox (isChecked) has been checked when the form is submitted. Here is the code that i am using:
<% If (Request.Form("Submit") <> "") Then Dim Criteria Criteria = "" For Each Item in Request.Form("ProjectName") If Request.Form("IsChecked") Then Criteria = Criteria & Request.Form("Projectname") Else Next Response.write Criteria End If %>
If I get rid of the If then else statement with in the For Each statement, then all of the items will cencatenate. I am just trying to grab the rows where the user has checked in the box for the row.
can anyone tell me why it is that when i do (see the code>)
1 the value of the submit button doent match? 2 the collection returns the collection string as line one? 3. how do i jump these 2 for error check and trim replace?
While programming in ASP.NET, I'm used to copying out all the contents of the Form collection of the page's Request object, then emptyting the Request.Form collection itself so all my user-supplied values are safe in my "protected" Session Object. I often do the "emptying" with the Request.Form.RemoveAll() method
However, this time around, I'm creatng an ASP 3.0 application (not ASP.NET), and I'd like to reproduce similar functionality. It seems there's no such method as Request.Form.Remove() or Request.Form.Contents.Remove() as I thought I'd find. Can anybody help me with this, or do I have to just stick to my Request.Form collection, since there'd be no point copying out all the values into Session variables if I can't empty the Request.Form collection?
in my mail sending page i'm getting the following error
Cannot use Request.Form collection after calling BinaryRead.
can enyone explain y i'm getting that error
here's my coding where i get the error
str2 = split(Request.form("C1"),",") i use the above code to get multiple checkbox values for getting the id's of the users to whom the mail should send
here the mail sending works as a loop while the attachemnt also attached to the mail
I have "DataEntrypage.asp" which is a data entry page(about 250 data elements includes text boxes, radio buttons, check boxes, drop down boxes etc).
After the data validation through javascript(form.action = "ProcessData.asp" )I post this page to "ProcessData.asp" which process all the database transactions like updates, deletes and inserts.
At the begining/top of the "ProcessData.asp" I loop through Request.Form collection and store them in a text file on the WEB SERVER.
Once in a while the whole Request.Form collection is disappearing in the text file. At that instances it is creating the text file with size of 1kb but it is not showing any thing in the file.
I checked and it is not loosing the session information.
I have the below page which i use to add the information from a form to my MySQL database. It works perfectly fine when I don't add the code at the top for sending an email. Can someone be kind and have a look at my code and let me know where I am going wrong.
When I add the email code at the top the error I get is : Error Type: Request object, ASP 0206 (0x80004005) Cannot call BinaryRead after using Request.Form collection. /change_management/area/upload.asp, line 92
upload.asp I use for addding an attachment to the form ....
I am moving a mySQL db from one server to another. My backup sql is coming from phpMyadmin and I am using another 3rd party db admin program on the server. I am copying and pasting this code:
After about 30 minutes of frustration I finally discovered what was causing a general 500 internal server error and to my surprise it was something I seem to always take for granted for its simplicity. A type mismatch error trying to compare a string to a numerical value, which is something that PHP has no problem or qualms with. However, this continuous problem continues to haunt me year after year and has brought me to tears with frustration. This is the line that raises the error:
nID = Request("ID") If IsNull(nID) Or IsEmpty(nID) Or nID = 0 Then .... (and so on)
In the past I've written a function 30 lines long that compares values by confirming value types of the variables first, but I would rather put a gun to my head than do that. Since there are obviously other bright PHP and ASP developers out there that constantly trip over this problem, I would like to know your suggestions or methods of working around this.
I pass session variables in a querystring to another page, which increments an array and adds them to it. This had been working absolutley fine on my local machine and I uploaded the scripts to a remote server. Everything worked fine (and still does) on the remote server.
I then decided to try opening the script that receives the querystring in a popup with javascript window.open, to display the results in the popup instead of a full new page as before.
When I tried this I got a Type Mismatch on the receiving page. I hadn't changed any of the code in any of the pages apart from calling the receiving page with window.open, so I thought it just didn't like being called/opened that way. So I removed the window.open and went back to the old way - and I still get the Type Mismatch.
I couldn't see why it was throwing this now, so I downloaded the scripts from the remote server (which work fine) to my local machine and I still get the Type Mismatch on the local machine. I tried stopping and starting IIS and then rebooting, but to no avail. It still works remotely but not locally.
The mismatch is occuring apparently between the String I'm trying to add to the array and the array index (which is also a session variable): Code:
Like so many, I will preface my question by saying I'm a complete ASP noob. I am however very experienced with PHP/MYSQL so I understand the concepts, it's just a syntax problem. I have the following:Code:
sqlGroups = "select groupName from Groups where groupID = '" & rsParts("groupID") & "'" set rsGroups = Server.CreateObject("ADODB.Recordset") rsGroups.Open sqlGroups, strConn
response.write(rsGroups("groupName"))
This is resulting in a type mismatch error. rsParts("groupID") is from another recordset in the script, of type Long Int. groupID in the Groups table is autonumber, also of type Long Int.
Guys i tried this sqlstr= "UPDATE BorrowerTab SET BorrowerName = '" & strName & "', Email = '" & strEmail & "', Phone = '" & strPhone & "'"
I get the error [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
I think the problem is i need to have a WHERE clause in my sql statement The thing is i dont know how to... Cuz the field is an auto number(BorrowerId)
One ASP page doesn't throw a type mismatch error and the same exact code in a second ASP page throws a type mismatch error.
I simply throw a Cdbl around my variables and it clears the error, but i'm getting a new one today that i didn't get yesterday on the second page. Again, putting a Cdbl around it... Why is this page being so particular?
I have verified that the info from my submit form with the datbase and have figured out it has something to do with my database. When I dont fill out a certain field on the form like LoanAmount it gives me that error.
In my database the field type is set to currency and no required with a default value of 0. If i change the field type to text it works if I dont fill in the LoanAmount field, but I dont want to change it to that . Any suggestions? I want to be able to not have to enter info if not needed into certain fields and still be able to submit the rest of the info. here is my submit page: Code:
I am an ASP developer seeking to build an interactive web site. Unfornately I'm so very frustrated and out of answers for a pivital part of my ASP programming. You see, A number of database Tables are linked together through a common ID Value in a Numbered Field.
These values are the ManagerID and the UserID. The ManagerID is used to get data about the manager and the UserID is used to get data about the users. Unfornately I am getting a ton of Type Mismatch results when I try and compare a numeric value to a string value stored in a Session Variable.
While using a Text Field methoud partially solves this problem, it causes a problem when records go above ID 9, as it instantly puts record ID 10 out of order in the table, thus causing severe problems with various functions in the project that add new records to the tables and generate a new ID value.
This is because when new records are added, it takes the last value stored in the bottom field and increments it by 1. thus since the last value would be 9, and if it increments to 10, you get a duplication error every time you try and add a record above 10. Thus only a Numeric Field which can auto-adjust according to the record values can this program function in the way it needs to.
For your review, here is the code of my Login Script page, I will site where the problem is. If I can find a solution to this problem, I can find a solution to plenty of others as well (As many other parts call on Numeric Field values to call records from the database.) Code:
I'm using this to show an expandable/retracable naviation list but I'm getting a type mismatch on line 46:
Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch
I'm guessing it might be because it's trying to compare a string to an int but I can't find where my variable would become a string. So if you guys can help it would be great I've been at this since at 8 this morning. Code:
I am trying to check to see if there is a value in a varbinary datatype in sql2000 and asp. If rs("value") = "" then is what I am trying to do but I get an error "800a000d" Type mismatch.
I am having a problem with a page that creates a treeview from a database, by reloading itself on each request for a new folder to be explored. The problem revolves around using an array to store the data, that is copied to a session variable, and reloaded from that with each new view.
That is, on first opening the page, the array is created and populated, then copied over; subsequent reloads of the page load the session variable, rather than create the array. This is where the problem lies - by DIMing the array, the first load of the page is fine, but a type mismatch pops up when the session is pulled in to the array name; not DIMing the array, the first load fails due to not declaring the array.
Currently the ony way I have round the problem is to switch option explicit off and not DIM any variable. If there was a way to have the session variable and array co-exist to start with, that would be good.
I'm at my wits end here. I am getting type mismatch error in a ASP page when I try to multiply decimals*integers. This shouldn't be this difficult. I have tried the conversion functions,changed the datatypes in the pages.
this piece of code works fine. My problem is that if I have the same code layout in the Head Section on another page, I get a typemismatch error on the readdata function.
the DBOpen.inc file holds the connection object and the ReadData.inc file hold's the request to return a recordset. Even when I remove the code from the .inc files and place it directly in the page, I get the same error. has anyone else hit a similar problem.