943,778 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 1462
  • C# RSS
May 2nd, 2008
0

saving selected listbox values in Cookies

Expand Post »
I have several listboxes in 1 page and there is a "search" button.Whenever user select any values from the listbox's and click search button the query fires and it is showing the desired results.But I want 2 more button on this page "save Query" and "Load Query".
Requirment is:
After selecting values from listboxes before pressing "search" button user should click "Save Query" button for saving his selected values and then he should press search button.Now when the user log in next time if he clicks "Load Query" Button he can see his selected values that he had selected last time.
Actually my application runs on windows authentication.No login user id password is nesessary.So there is no database fields for that.
I want to store listbox selected item in cookies.
Can any one help me in this regards.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
toton is offline Offline
5 posts
since May 2008
May 2nd, 2008
0

Re: saving selected listbox values in Cookies

c# Syntax (Toggle Plain Text)
  1. Response.Cookies["QueryCookie"].Value = listbox.SelectedIndex.ToString();
Try using ASP.NET forum in ASP.NET questions.
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Without PostBack bind dropdownlist to textbox
Next Thread in C# Forum Timeline: Esmaeel





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC