473,399 Members | 2,774 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,399 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 2070
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)
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.