I want to keep it in cookie instead of session

How do I keep the value in a cookie or a header instead of session; I do not know how to keep socket data in session. I tried Application[“socket”]=”127.0.0.1:3306″; did not work Session.Add(“socket”, sender); Socket s = (Socket)Session[“socket”]; try { if (Request.HttpMethod == "POST") { String status = Request.QueryString.Get("status").ToUpper(); if (status == "welcome") { try … Read more

ASP.NET GridView: How to edit and delete data records

Hi I have used gridview to create a table.
Is there a way to implement edit and delete.
I have done it in PHP before. The method I would like to use is create two more columns in the table with edit and delete buttons on each row. Then when the buttons are click it passes the ‘id’ through the URL and able to edit or delete. Not really sure how to do this in asp.net webforms. Below is my code for the table. Thank you.