sqldatasource and cookies

C

cybergoth_0

Hi

I am having trouble working out how to get data from a cookie to
sqldatasource.

my cookie is like this

Response.Cookies("A")("ID") = "1"
Response.Cookies("A")("LoginName") = "Name"

I am assuming that 'A' goes in CookieName? But how do I specify
getting 'ID' value and 'LoginName' Value? I was thinking that I would
use the Name property, is that right?

<asp:CookieParameter CookieName="A" DefaultValue="" Name="ID" />
<asp:CookieParameter CookieName="A" DefaultValue="" Name="LoginName"
/>

Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Change SqlDataSource Parameter 3
Cookies C# 3
SqlDataSource, Eval, and Label Text 2
Cookies Count 2
Problem with Sessions / Cookies 8
Cookie problem 8
Cookies 0
SQLDataSource FilterExpression question 0

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top