Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1910
Global Variable of the DataKey on the ActiveRow
posted

I have an UltraWebGrid with a list of members along with their information. I have the following code in the click event of the grid:

Response.Redirect("Mbrs.aspx?Mbr_ID=" & e.Row.Cells.FromKey("Mbr_ID").Value)

So, when the user clicks on a specific row, the page redirects to itself and passes the Mbr_ID as a QueryString. I know this is not the best way to do this, but I don't know how to do it any other way. The problem is that the table itself has a lot of rows in it, but I only bring in 50 at a time...but when the user selects a row and the page redirects, it seems to be taking a long time to load again. I use the Mbr_ID that the user selected throughout the rest of the application as they are entering other data for the specific Mbr. How can I go about allowing the user to select a row and keep a global variable that keeps up with the mbr that the user has selected until they select a different mbr?

Also, don't know if it makes a difference...but I am using a Master Page.