Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 680611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:23:31+00:00 2026-05-14T01:23:31+00:00

I want to use cookie in my project. But now i m using session.

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:23:32+00:00Added an answer on May 14, 2026 at 1:23 am

    I believe that it the correct way to assign a Cookie to a DataSource Parameter, so there must be something wrong with your code to store the cookie in the first place.

    To store the Cookie you should be doing something like this:

    HttpCookie myCookie1 = new HttpCookie("refKlinik_id");
    myCookie1.Value = Convert.ToInt32(valueToBeAdded);
    Response.Cookies.Add(myCookie1);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use jQuery to delete cookies; I have tried this: $.cookie('name', '',
I have a website which creates a cookie and I want to use this
I want to use Powershell to write some utilities, leveraging our own .NET components
I want to use the Web Browser control within an mono application, but when
i'd like to use a class to manage a certain cookie, but not directly
I have a project for school and I have to use Java. Recently I
In my Zend framework project I want to check whether a cookie is set.
I want to use Varnish to cache certain pages even in the presence of
Below is my stored procedure. I want use stored procedure select all row of
I want to use the mouse scrollwheel in my OpenGL GLUT program to zoom

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.