Wrox Programmer Forums
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 30th, 2005, 09:25 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default Converting cookies value.

I am storing user name into a cookie, at login time, later on when I tried to store that cookie in to database, where user name is numeric, the error I receive is that "Type Mismatch", I even tried by CInt function of VB script but dosent work.

------------------------------------
i.e. "objRS("EmpID") = request.cookies("empid")"
------------------------------------

Can anyone help me out?

Thanks in advance.

 
Old May 30th, 2005, 11:03 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Hi,

Please check whether u are getting some value in
request.cookies("empid")


Om Prakash
 
Old May 31st, 2005, 03:54 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

Hi,
I have checked value at request.cookies("empid"), and it is shown, but not able to store in database.
Rupen.

 
Old May 31st, 2005, 06:14 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

Updating,
This is working with session varible, but not with cookie.

 
Old May 31st, 2005, 09:02 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Hi,

You are storing user name in the cooking and assigning this to
objRS("EmpID") = request.cookies("empid")
which is numeric. correct me if i am wrong..

What is the value u get in request.cookies("empid") and what is the dataType of objRS("EmpID")


Om Prakash
 
Old May 31st, 2005, 10:14 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

Hi,
objRS("EmpID") is Numeric (You are right at that point!!!)

I hope this will help you to solve.

 
Old June 8th, 2005, 02:34 AM
Registered User
 
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

Can anyone have update on this??






Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookies hastikeyvan Classic ASP Professional 5 May 29th, 2006 07:36 AM
Cookies cjo ASP.NET 1.0 and 1.1 Basics 1 November 8th, 2003 02:38 PM
Help!About Cookies jelsen ASP.NET 1.0 and 1.1 Basics 2 September 9th, 2003 08:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.