Connecting Tech Pros Worldwide Forums | Help | Site Map

Urgent help needed in page caching

Raghu Raman
Guest
 
Posts: n/a
#1: Nov 19 '05
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!

jwkjng
Guest
 
Posts: n/a
#2: Nov 19 '05

re: Urgent help needed in page caching


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]
Raghu Raman
Guest
 
Posts: n/a
#3: Nov 19 '05

re: Urgent help needed in page caching




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




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Closed Thread


Similar ASP.NET bytes