Which control are you using to redirect to the other page?
If you are using a button, you can simply use Datagrid's buttoncolumn.
Or
You can probably add "OnItemCommand" events in the datagrid that will be
fired for button cliks and so on.
Then, in your code-behind page, do something like this
protected void command(object sender, DataGridCommandEventArgs e)
{
if (e.CommandName == "buttonclick")
{
// do the cache stuff here
Response.Redirect("xxxx.aspx");
}
}
Or your option woul
"Raghu Raman" wrote:
[color=blue]
> Hi,
>
> In my asp .net page am using many controls and a grid.i populate many
> html controls innside the grid dynamically .if i click the grid ,it wll
> go to other page using onclick client side javascript function.
>
> I,want my grid data to be maintained in cache when i click the html
> button.
>
> before going to that page i want to cache my page data,so that i can
> retain my page state ,if the user comes to the first page again.
>
> Or,** if i am able to write the server_click() for the html controls
> created dynamically,is also quite good.if so, i can cache the data in
> serverside code.
>
> * pls tell me how can i crate a dynamic server_click()event for the
> dynamic html control
>
>
> With thanks & regards
> Raghu
>
> *** Sent via Developersdex
http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
>[/color]