Urgent help needed in page caching

R

Raghu Raman

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
 
G

Guest

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
 
R

Raghu Raman

Dear friend,

thx for that.Am not using datagrid,but it is Infragistics webgrid.

For example,i can add a html button inside a cell by,

grd.rows[1].cells[2].text="<input type='button' id='b1' runat=server/>";

Pls tell me now, how can i do caching,when i click the html buton inside
the grid.
--------------------------------
since the contrls inside the grid are populated during runtime,how can i
write a
*** common server_click() for all the buttons i create.Even it is also a
good one.
-------------------------------
now am able to fire the click() event thru javascript.pls tell me how
caching can be done in javascript.

Regards
Raghu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top