473,549 Members | 2,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Retrieving Subkey from a cookie via asp:CookieParam eter

I have a cookie that contains two subkeys. I am trying to read one of
the subkeys via the <asp:CookiePara meter>, but I can't seem to specify
which subkey to get. ASP.NET seems to only want to retrieve the first
subkey. Does anyone know a workaround?

<SelectParamete rs>
<asp:CookiePara meter CookieName="hos pital" Name="hospid"
Type="Int32" />
</SelectParameter s>

Code that sets cookie:
-------------------------------------------------
HttpCookie strCookie = new HttpCookie("hos pital");
strCookie.Value s.Add("name", strHospital);
strCookie.Value s.Add("id", id.ToString());
Response.Append Cookie(strCooki e);

Thank you!
Jul 22 '05 #1
0 2507

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

Similar topics

0
1093
by: cybergoth_0 | last post by:
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"
0
369
by: John Smith | last post by:
I have a cookie that contains two subkeys. I am trying to read one of the subkeys via the <asp:CookieParameter>, but I can't seem to specify which subkey to get. ASP.NET seems to only want to retrieve the first subkey. Does anyone know a workaround? <SelectParameters> <asp:CookieParameter CookieName="hospital" Name="hospid" Type="Int32" />...
0
2035
by: Nico VanHaaster | last post by:
Hey Guys, I have been looking through alot of documentation on the Microsoft Website as well any other resource out there that i can think of and i can't seem to get this to work. On log in a cookie is created with some important user data that carries out alot of filtering through the website. I have been able to use the subkeys of the...
0
1205
by: MRW | last post by:
Does anybody know how to retrieve a Subkey from a cookie via asp:CookieParameter? Also, I'm using an ObjectDataSource, and want to take the value from the above cookie, send it to the function, manipulate it, and send it back into that cookie. Any ideas? Thanks for any help!
0
948
by: KUVU | last post by:
I am using FormsAuthentication.SetAuthCookie(txtbox1.text,false) in my login page. In my search.aspx i need to pass this login name to sqldatasource,delete commamd i am using <asp:CookiParameter> to pass the login name but don't know that to give in cookiename... Can any one help me with this
0
7524
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7451
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7720
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7812
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5372
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3483
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1061
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
766
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.