473,387 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Event Execution Order

Dan
Hi
I have two web server controls on one web form, one is an OLAP pivot table
and the other is Chart control. I am passing the OLAP data to the chart
control but the chart is always one page behind. I create the chart in the
Page_Load event but I believe that the OLAP grid is updating itself after the
Page_Load has been called. Whenever I alter the OLAP pivot table the chart
control reflects the previous state of OLAP pivot table data.

Can anyone suggest a general solution, am new to asp.net (if you hadn't
already guessed).

Cheers, Dan, Manchester Uni, UK
Nov 19 '05 #1
2 1199
Hi Dan,

Your confusion is understandable. Microsoft and others have done such a
great job of talking about the Page_Load method that many people don't even
realize how many event handlers a Page class has. The following MSDN article
should provide you with all the information you need:

http://msdn.microsoft.com/library/de...nLifecycle.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Dan@Hope_Hospital_Salford_UK"
<Da**********************@discussions.microsoft.co m> wrote in message
news:45**********************************@microsof t.com...
Hi
I have two web server controls on one web form, one is an OLAP pivot table
and the other is Chart control. I am passing the OLAP data to the chart
control but the chart is always one page behind. I create the chart in the
Page_Load event but I believe that the OLAP grid is updating itself after
the
Page_Load has been called. Whenever I alter the OLAP pivot table the chart
control reflects the previous state of OLAP pivot table data.

Can anyone suggest a general solution, am new to asp.net (if you hadn't
already guessed).

Cheers, Dan, Manchester Uni, UK

Nov 19 '05 #2
Use !IsPostBack i the page_load to ensure you dont reload the control on
every postback
Nov 19 '05 #3

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

Similar topics

4
by: Dave H | last post by:
I originally posted a message "Getting the current cursor position using clientX,clientY" in which I hypothesised that the problem I was having was related to event handler execution order. I am...
1
by: Rohit Raghuwanshi | last post by:
Hello all, we are running a delphi application with DB2 V8.01 which is causing deadlocks when rows are being inserted into a table. Attaching the Event Monitor Log (DEADLOCKS WITH DETAILS) here....
1
by: seash | last post by:
Is there any way to suppress an event method? i got Enter & leave Events on two groupBoxs, they r " private void groupBox1_Enter(object sender, System.EventArgs e)" and private void...
3
by: John S | last post by:
Can one event (keyup for instance), have more than one event handler assigned / handle it?
18
by: bhavin | last post by:
Hi, Can someone point me to some good best practices kind of documentation on use of events compared to method overriding. Ex. In Windows Forms when should i have an event handler for Paint, and...
2
by: James | last post by:
Hi all, I am seeing some unexpected behaviour in a single threaded winforms app and was hoping someone could explain what is going on. I have two events attached to a chart control on my form,...
2
by: yoramo | last post by:
Hello I have a page and on this page I have implemented 2 events 1. Page_Load 2. ButtonClick I expect that when I press on the button the buttonClick event will be fired and only afterwords...
23
by: roman | last post by:
Hi, I would like to have two actions for one event. But I want the second action to trigger when the first one action completes. Is it possible to do this in javascript? I'm using the onclick...
15
by: Oleg Subachev | last post by:
I need to programmatically invoke from other class Click event of the Button on my Form. Button.OnClick method is protected, not public. How to perform this ? Oleg Subachev
5
by: Carlo \(mcp\) | last post by:
Good morning I have this lines: AddHandler MyControl1.Parent.Paint, AddressOf PaintParentHandler AddHandler MyControl2.Parent.Paint, AddressOf PaintParentHandler AddHandler...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.