I am watching your webinar on grid optimization, and one of the recommended techniques is to disable viewstate on all read only grids.
I have several grids that are read only, but that use:
and an OnItemCommand, which is causing an invalid postback problem.
I realize this is a limitation in .Net, but is there some other way to create a grid navigation activity that sets a session variable and redirects to a different page that would allow me to keep the viewstate off?
I am just trying to find some other way to achieve this result while still being able to leave the viewstate off.
The onItemCommand is this:
Or maybe I don't need a session variable, how else could i send the user to another page with an id without using the query string???
I have several grids that are read only, but that use:
<telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/images/icon_page_magnify.gif" HeaderText="Select" UniqueName="Select" CommandName="Select" /> |
I realize this is a limitation in .Net, but is there some other way to create a grid navigation activity that sets a session variable and redirects to a different page that would allow me to keep the viewstate off?
I am just trying to find some other way to achieve this result while still being able to leave the viewstate off.
The onItemCommand is this:
if (e.CommandName.ToUpper() == "SELECT") |
{ |
Session["A"] = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["A"]; |
Response.Redirect("~/Item/"); |
} |
Or maybe I don't need a session variable, how else could i send the user to another page with an id without using the query string???