473,221 Members | 2,395 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,221 software developers and data experts.

possible to pass cookie value from VB to ASP?

Hi,

I want to pass the value of the cookie created in VB to ASP. This doesn't
work. Any idea?
Thanks
Carl
....
<script language=vbscript>
document.cookie="mycookie" ' also tried with
document.cookie="name=mycookie"
</script>

<%
z=request.cookies("mycookie")
response.write(z)
%>
....
Jul 19 '05 #1
5 2063
See :
http://home.att.net/~codeLibrary/HTML/form2.htm and the "Night of the Living
Cookie" script.

The cookie property contains actuzally all the cookies. It's probably best
to have some functions (such as those exposed by the above script) to hanlde
cookies client side (FYI clients-side unless in a controlled environment,
JvaScript is generally preferred over VBScript)...

Patrice

"Carl" <ca**@mm.no> a écrit dans le message de
news:Os**************@TK2MSFTNGP11.phx.gbl...
Hi,

I want to pass the value of the cookie created in VB to ASP. This doesn't
work. Any idea?
Thanks
Carl
...
<script language=vbscript>
document.cookie="mycookie" ' also tried with
document.cookie="name=mycookie"
</script>

<%
z=request.cookies("mycookie")
response.write(z)
%>
...

Jul 19 '05 #2
This one looks like a good starting point to get an understanding of the
cookie mechanism :
http://www.sislands.com/javascript/week7/cookiedef.htm

Of course instead of "name" you have to use the actual name of your cookie.
Also a cookie has a value.

Patrice

"Patrice" <no****@nowhere.com> a écrit dans le message de
news:ev**************@TK2MSFTNGP09.phx.gbl...
See :
http://home.att.net/~codeLibrary/HTML/form2.htm and the "Night of the Living Cookie" script.

The cookie property contains actuzally all the cookies. It's probably best
to have some functions (such as those exposed by the above script) to hanlde cookies client side (FYI clients-side unless in a controlled environment,
JvaScript is generally preferred over VBScript)...

Patrice

"Carl" <ca**@mm.no> a écrit dans le message de
news:Os**************@TK2MSFTNGP11.phx.gbl...
Hi,

I want to pass the value of the cookie created in VB to ASP. This doesn't work. Any idea?
Thanks
Carl
...
<script language=vbscript>
document.cookie="mycookie" ' also tried with
document.cookie="name=mycookie"
</script>

<%
z=request.cookies("mycookie")
response.write(z)
%>
...


Jul 19 '05 #3
Thanks, but my problem is not to pass cookies between html pages, but
between VB (or Javascript) and ASP in the same page.
That's what doesn'y work in my example ...


"Patrice" <no****@nowhere.com> wrote in message
news:uQ**************@TK2MSFTNGP09.phx.gbl...
This one looks like a good starting point to get an understanding of the
cookie mechanism :
http://www.sislands.com/javascript/week7/cookiedef.htm

Of course instead of "name" you have to use the actual name of your cookie. Also a cookie has a value.

Patrice

"Patrice" <no****@nowhere.com> a écrit dans le message de
news:ev**************@TK2MSFTNGP09.phx.gbl...
See :
http://home.att.net/~codeLibrary/HTML/form2.htm and the "Night of the

Living
Cookie" script.

The cookie property contains actuzally all the cookies. It's probably best
to have some functions (such as those exposed by the above script) to

hanlde
cookies client side (FYI clients-side unless in a controlled environment, JvaScript is generally preferred over VBScript)...

Patrice

"Carl" <ca**@mm.no> a écrit dans le message de
news:Os**************@TK2MSFTNGP11.phx.gbl...
Hi,

I want to pass the value of the cookie created in VB to ASP. This

doesn't work. Any idea?
Thanks
Carl
...
<script language=vbscript>
document.cookie="mycookie" ' also tried with
document.cookie="name=mycookie"
</script>

<%
z=request.cookies("mycookie")
response.write(z)
%>
...



Jul 19 '05 #4
Below in this page, you can download a script that provides ready to use
cookie handling functions (setCookie, getCookie, deleteCookie and so on)
know as "Night of the Living Cookie" (you should also find this on Google).
I posted also another message that points to an article that better explains
the details regarding cookies.

Bascially the syntax would be rather "mycookie=10" to create a cookie named
"mycookie" whose value is 10.

Patrice

"Carl" <ca**@mm.no> a écrit dans le message de
news:ep**************@TK2MSFTNGP10.phx.gbl...
Thanks, but my problem is not to pass cookies between html pages, but
between VB (or Javascript) and ASP in the same page.
That's what doesn'y work in my example ...


"Patrice" <no****@nowhere.com> wrote in message
news:uQ**************@TK2MSFTNGP09.phx.gbl...
This one looks like a good starting point to get an understanding of the
cookie mechanism :
http://www.sislands.com/javascript/week7/cookiedef.htm

Of course instead of "name" you have to use the actual name of your

cookie.
Also a cookie has a value.

Patrice

"Patrice" <no****@nowhere.com> a écrit dans le message de
news:ev**************@TK2MSFTNGP09.phx.gbl...
See :
http://home.att.net/~codeLibrary/HTML/form2.htm and the "Night of the

Living
Cookie" script.

The cookie property contains actuzally all the cookies. It's probably best to have some functions (such as those exposed by the above script) to

hanlde
cookies client side (FYI clients-side unless in a controlled environment, JvaScript is generally preferred over VBScript)...

Patrice

"Carl" <ca**@mm.no> a écrit dans le message de
news:Os**************@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I want to pass the value of the cookie created in VB to ASP. This

doesn't
> work. Any idea?
> Thanks
> Carl
> ...
> <script language=vbscript>
> document.cookie="mycookie" ' also tried with
> document.cookie="name=mycookie"
> </script>
>
> <%
> z=request.cookies("mycookie")
> response.write(z)
> %>
> ...
>
>



Jul 19 '05 #5
Looks like a previous message didn't make it. The quick overview I was
talking about is :
http://www.sislands.com/javascript/week7/cookiedef.htm
"Patrice" <no****@nowhere.com> a écrit dans le message de
news:%2****************@TK2MSFTNGP11.phx.gbl...
Below in this page, you can download a script that provides ready to use
cookie handling functions (setCookie, getCookie, deleteCookie and so on)
know as "Night of the Living Cookie" (you should also find this on Google). I posted also another message that points to an article that better explains the details regarding cookies.

Bascially the syntax would be rather "mycookie=10" to create a cookie named "mycookie" whose value is 10.

Patrice

"Carl" <ca**@mm.no> a écrit dans le message de
news:ep**************@TK2MSFTNGP10.phx.gbl...
Thanks, but my problem is not to pass cookies between html pages, but
between VB (or Javascript) and ASP in the same page.
That's what doesn'y work in my example ...


"Patrice" <no****@nowhere.com> wrote in message
news:uQ**************@TK2MSFTNGP09.phx.gbl...
This one looks like a good starting point to get an understanding of the cookie mechanism :
http://www.sislands.com/javascript/week7/cookiedef.htm

Of course instead of "name" you have to use the actual name of your

cookie.
Also a cookie has a value.

Patrice

"Patrice" <no****@nowhere.com> a écrit dans le message de
news:ev**************@TK2MSFTNGP09.phx.gbl...
> See :
> http://home.att.net/~codeLibrary/HTML/form2.htm and the "Night of the Living
> Cookie" script.
>
> The cookie property contains actuzally all the cookies. It's probably
best
> to have some functions (such as those exposed by the above script)

to hanlde
> cookies client side (FYI clients-side unless in a controlled

environment,
> JvaScript is generally preferred over VBScript)...
>
> Patrice
>
> "Carl" <ca**@mm.no> a écrit dans le message de
> news:Os**************@TK2MSFTNGP11.phx.gbl...
> > Hi,
> >
> > I want to pass the value of the cookie created in VB to ASP. This
doesn't
> > work. Any idea?
> > Thanks
> > Carl
> > ...
> > <script language=vbscript>
> > document.cookie="mycookie" ' also tried with > > document.cookie="name=mycookie"
> > </script>
> >
> > <%
> > z=request.cookies("mycookie")
> > response.write(z)
> > %>
> > ...
> >
> >
>
>



Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: | last post by:
Is it possible for a user to enable permanent cookies but disable session cookies.....this seems like a contradition yet this is what I appear to be reading in online articles?
15
by: joun | last post by:
Hi all, i want to create in my asp.net application a custom server variable, so i can retrieve later in other pages (even asp or perl) with request.servervariables("HTTP_mycustomvariable") ...
3
by: Naseem | last post by:
I am using CR in ASP.NET , I am able to show drill down graphs where grouping is done on single column from result set of sql query, is it possible to achieve drill down by grouping on multiple...
1
by: Martin | last post by:
I have a web page that displays records from a database. I want to allow the user to specify his own "page size" - that is, the number of records to be displayed on a given page. I have a place set...
3
by: JDS | last post by:
So, I'd like to create the following scenario: 1) Use cURL library within PHP (cURL + "Cookie Jar", et.al) to create a virtual browser session that "logs in" to a remote site. (For example: ...
0
by: coachdave | last post by:
Hi all, I have been learning asp and html and javascript by bits and pieces. Specifically I want to send a short string from my asp page to be stored on a cookie on the client's computer. I have...
5
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, Is there an easier way to handle that? I used Javascript to handle this when our two domains are hosted on two different servers(on different networks) and our search engine marketing...
5
by: Mike Copeland | last post by:
In a Web site I'm building, I want to provide an ability to set a "flag" message that users can see when they log on. Specifically, I want the "flag" to show when the (snail) mail for our building...
2
by: =?Utf-8?B?U3RldmVuIFRhbmc=?= | last post by:
I'm creating a XBAP application and want it take some input from webpage dynamically? what is the best way? how to do it? Best Regards Steven -- ======================= Steven Tang SYWWUYU)
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.