Click here to Skip to main content
15,894,343 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralUpdatePanel issue Pin
cisco21035-Dec-07 4:38
cisco21035-Dec-07 4:38 
GeneralRe: UpdatePanel issue Pin
cisco21035-Dec-07 6:13
cisco21035-Dec-07 6:13 
GeneralAccessing other site from portal Pin
rp_suman5-Dec-07 4:34
rp_suman5-Dec-07 4:34 
GeneralCreate ASPX pages on the fly Pin
coolestCoder5-Dec-07 4:22
coolestCoder5-Dec-07 4:22 
GeneralRe: Create ASPX pages on the fly Pin
Ken Mazaika5-Dec-07 13:23
Ken Mazaika5-Dec-07 13:23 
GeneralIntegrating with Active Directory Pin
edukulla5-Dec-07 4:19
edukulla5-Dec-07 4:19 
Generalhi Crystal report Error Pin
wasimsharp5-Dec-07 4:19
wasimsharp5-Dec-07 4:19 
GeneralAccess EventArgs from PageLoad Pin
Mircea Grelus5-Dec-07 3:16
Mircea Grelus5-Dec-07 3:16 
Is there any way to access the System.EventArgs of a Click event from the Page_Load event?

My problem is as follows: I have a page which is constructed of usercontrols (ascx), so I have a menu usercontrol, another navigation control and a main content control.
The problem is when I click on a menu item (in order to navigate to another page), the Page_Load event is fired for every usercontrol in the page before the ItemClick event is fired for the menu control, and as a result the main content page loads again, and only after that when the click event fires, the user is redirected to a new page. This basically introduces an unnecessary processing of the page I'm navigation away from.

I have hacked my way by interpreting who has postbacked the page in the Page_Load of the menu control, but I need access to the EventArgs of that method.

I've managed to get the ID of the element sent as event argument using Page.Request.Params["__EVENTARGUMENT"] but I need the whole object.

Any ideas?

Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy

GeneralRe: Access EventArgs from PageLoad Pin
Sathesh Sakthivel5-Dec-07 3:23
Sathesh Sakthivel5-Dec-07 3:23 
GeneralRe: Access EventArgs from PageLoad Pin
Mircea Grelus5-Dec-07 3:31
Mircea Grelus5-Dec-07 3:31 
GeneralRe: Access EventArgs from PageLoad Pin
Sathesh Sakthivel5-Dec-07 3:34
Sathesh Sakthivel5-Dec-07 3:34 
GeneralRe: Access EventArgs from PageLoad Pin
Guffa5-Dec-07 8:16
Guffa5-Dec-07 8:16 
GeneralRe: Access EventArgs from PageLoad Pin
Mircea Grelus5-Dec-07 11:46
Mircea Grelus5-Dec-07 11:46 
Questionhow to fill cells ( one by one ) in GridView through dataset wich is in loop ( one dataset for one cell) Pin
manish.singhal5-Dec-07 2:47
manish.singhal5-Dec-07 2:47 
AnswerRe: how to fill cells ( one by one ) in GridView through dataset wich is in loop ( one dataset for one cell) Pin
Sathesh Sakthivel5-Dec-07 2:54
Sathesh Sakthivel5-Dec-07 2:54 
GeneralButton apperance.. Pin
A AntonySP5-Dec-07 1:17
A AntonySP5-Dec-07 1:17 
GeneralRe: Button apperance.. Pin
Sathesh Sakthivel5-Dec-07 2:05
Sathesh Sakthivel5-Dec-07 2:05 
GeneralRe: Button apperance.. Pin
martin_hughes5-Dec-07 4:59
martin_hughes5-Dec-07 4:59 
Generalproblem in uploading sqlserver db(plzzzzzz help) Pin
M.V5-Dec-07 0:55
M.V5-Dec-07 0:55 
GeneralRe: problem in uploading sqlserver db(plzzzzzz help) Pin
Paddy Boyd5-Dec-07 2:10
Paddy Boyd5-Dec-07 2:10 
GeneralRe: problem in uploading sqlserver db(plzzzzzz help) Pin
M.V5-Dec-07 3:50
M.V5-Dec-07 3:50 
Generalcrystal report refresh manually (urgent) Pin
mharoonkhan5-Dec-07 0:53
mharoonkhan5-Dec-07 0:53 
GeneralRe: crystal report refresh manually (urgent) Pin
Sathesh Sakthivel5-Dec-07 2:32
Sathesh Sakthivel5-Dec-07 2:32 
Generaluploading database(plzzzzzzz help) Pin
M.V5-Dec-07 0:46
M.V5-Dec-07 0:46 
GeneralRe: uploading database(plzzzzzzz help) Pin
Sathesh Sakthivel5-Dec-07 2:19
Sathesh Sakthivel5-Dec-07 2:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.