473,782 Members | 2,498 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Urgent help needed in page caching

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()e vent 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!
Nov 19 '05 #1
2 1145
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 "OnItemComm and" 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, DataGridCommand EventArgs e)
{
if (e.CommandName == "buttonclic k")
{
// do the cache stuff here
Response.Redire ct("xxxx.aspx") ;

}
}
Or your option woul

"Raghu Raman" wrote:
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()e vent 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!

Nov 19 '05 #2


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!
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2230
by: Sims | last post by:
Hi I have a table with something like ID PARENT 0 | -1 1 | -1 2 | 1 3 | 1
2
1099
by: Raghu Raman | last post by:
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
0
1741
by: Troy Simpson | last post by:
Hi, I have a website which is made up of dynamic pages. Each page that's loaded has some code which looks at which template to load amongst other things, which causes the page to take a little while to be processed. At the moment I have programmatic page caching in the "loader" using paramater caching to send a cached version of every requested page back to the user. How can I get particular elements inside each page to cache without...
2
1402
by: Khor | last post by:
Does anyone know to . Prevent current user to access page previous page by pressing back button after the user had logging off his/her account If the user press the back button, the web should show the login page as to request the user to log in again and gain the private access. Your help will be appreciated and thanx in advance Khor.
3
1642
by: Janaka | last post by:
Hi All, I'm having a problem with Page Output caching on a page that contains a DataGrid. Basically the page pulls up some data for sales information from the DB. Some of this has to be calculated on the fly when the request is made, and so I thought it would be ideal to cache the page for a set amount of time. I've placed the following at the top of my page: <%@ OutputCache Duration="160" VaryByParam="None" %> Now the problem is...
3
1449
by: Adrian Parker | last post by:
IE.. Tools -> Internet Options -> Settings Button -> Check for newer versions of stored pages = Never If a user changes thier settings to this, then pages are cached in IE. From what we've found, you have to use the following Meta tags in the HEAD section to stop it doing it. meta http-equiv="Pragma" content="no-cache" meta http-equiv="Expires" content="0"
3
2489
by: DC | last post by:
Hi, (ASP.Net 1.1) is it possible to (programmatically and globally) deactivate page fragment caching? We have only two scenarios, development stage where we want caching off and testing where we want caching on. Is this doable? I think there is a config switch in 2.0, anything in 1.1? TIA for any hint,
2
2010
by: Toni | last post by:
Hello! I'm trying to use ASP.NET caching with my web site and SQL Server, but I have a problem. I try to do everything according to the instructions like this page here: http://www.eggheadcafe.com/articles/20060407.asp First I run the aspnet_regsql tool on the command line succesfully to enable the database for cache notification: aspnet_regsql -S -E -d -ed
0
1264
by: Toni | last post by:
Hello! I'm trying to get caching work with ASP.NET 2.0 and SQL Server Express Edition 2005, but I have a problem and I can't figure out what I'm still doing wrong. I have enabled the database for cache notification by running the aspnet_regsql tool on the command line: aspnet_regsql -S server -E -d database -et Then I have run the aspnet_regsql tool to enable each table in the database for cache notification:
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.