We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Record Double Click, Session, Response Redirect

Thread ID:

Created:

Updated:

Platform:

Replies:

131146 Jun 23,2017 12:24 PM UTC Jun 26,2017 08:43 AM UTC ASP.NET Web Forms 2
loading
Tags: Grid
Tomasz
Asked On June 23, 2017 12:24 PM UTC

Hello
I looking for solution in my problem, I want Double Click Record in ej.Grid (ASP.NET), using C# method  redirect to Edit page, Where will i edit this record.
Info about record i want save in Session. Some like bellow. This code is from asp:grid
Session["PageUrl"] = HttpContext.Current.Request.Url;
Session["RiD"] = GridView1.SelectedDataKey.Value.ToString();
Response.Redirect("~/Reservas/Edit.aspx");

I find many "years ago :)" some like this, with litle modification i want retrive "ID" of the record and send with session to edit page

Dictionary<string, object> data = e.Arguments["data"] as Dictionary<string, object>;
var RIndx = data.Where(d => d.Key == "Rid").Select(d => d.Value).FirstOrDefault();
Session["RiD"] = e.Arguments["Rid"].ToString();

L9.Text = RIndx.ToString();

//Response.Redirect("~/Reservas/Edit.aspx");

Thanks a lot
Tomasz


Tomasz
Replied On June 23, 2017 12:40 PM UTC

Ok finaly i find solution :)

Dictionary<string, object> data = e.Arguments["data"] as Dictionary<string, object>;
var RIndx = data.Where(d => d.Key == "Rid").FirstOrDefault();
int ri = Convert.ToInt32(RIndx.Value.ToString());
Session["PageUrl"] = HttpContext.Current.Request.Url;
Session["RiD"] = ri.ToString();    

Response.Redirect("~/Reservas/Edit.aspx");



Jayaprakash Kamaraj [Syncfusion]
Replied On June 26, 2017 08:43 AM UTC

Hi Tomasz, 
 
We are happy that the problem has been solved. 
 
Please get back to us if you need any further assistance.   
 
Regards, 
 
Jayaprakash K. 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;