Cookie parameter value problem

Posted by cagin on Stack Overflow See other posts from Stack Overflow or by cagin
Published on 2010-03-26T07:46:30Z Indexed on 2010/03/26 7:53 UTC
Read the original article Hit count: 264

Filed under:
|
|
|

Hi there

I want to use cookie in my project. But now i m using session. And i have some session parameters in .aspx pages.. for example:

 <SelectParameters>
    <asp:SessionParameter Name="refKlinik_id" SessionField="refKlinik_id" />
 </SelectParameters>

Now i want to use Cookie Paramter like that:

  <SelectParameters>
    <asp:CookieParameter Name="refKlinik_id" CookieName="refKlinik_id"
 </SelectParameters>

but cookie's value is like that: sauidpU655614411262762102024i1600369917542431520431414503529630051999*CoreID683251601618012627621046&c

but i need an integer value like 24.

How can i convert cookie's value to int32

Thanks for your helps

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET