![]() |
|
|
|||||||
![]() |
ASP Net - Know the object does the postback |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hi,
Is there any way that I can know the object that does fires or does postback to the page on the Page_Load event. I tried to use the sender object that is defined as parameter into this event. Thanks for any help provied. Cheers... Erick |
|
|
|
|
#2 |
|
Posts: n/a
|
There's not a great way.
Generally the best solution is to simply move your Page_Load code to the PreRender event , which happens after all the control events. So by then the control that caused the postback should have its event handled and you can set a flag or something to let you know which one caused it. -- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net Hire top-notch developers at http://www.able-consulting.com "Erick" <> wrote in message news:063001c3d94f$608ccd70$... > Hi, > > Is there any way that I can know the object that does > fires or does postback to the page on the Page_Load event. > > I tried to use the sender object that is defined as > parameter into this event. > > Thanks for any help provied. > > Cheers... Steve C. Orr [MVP, MCSD] |
|
|
|
#3 |
|
Posts: n/a
|
Thanks Steve, I really apreciate you answer
Will try with this event.. Regards... >-----Original Message----- >There's not a great way. >Generally the best solution is to simply move your Page_Load code to the >PreRender event , which happens after >all the control events. So by then the control that caused the postback >should have its event handled and you can set a flag or something to let you >know which one caused it. > >-- >I hope this helps, >Steve C. Orr, MCSD, MVP >http://Steve.Orr.net >Hire top-notch developers at http://www.able- consulting.com > > >"Erick" <> wrote in message >news:063001c3d94f$608ccd70$... >> Hi, >> >> Is there any way that I can know the object that does >> fires or does postback to the page on the Page_Load event. >> >> I tried to use the sender object that is defined as >> parameter into this event. >> >> Thanks for any help provied. >> >> Cheers... > > >. > Erick |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| code to perform cascading of dropdownlists without postback using c# in asp.net | harriet | Software | 0 | 09-09-2008 06:25 AM |
| COM object in asp.net | fluoronator | Software | 1 | 03-04-2008 07:48 PM |
| Active X cannot create this object | gellison | General Help Related Topics | 0 | 08-09-2007 06:42 PM |