Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Know the object does the postback

 
Thread Tools Search this Thread
Old 01-12-2004, 09:02 PM   #1
Default Know the object does the postback


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
  Reply With Quote
Old 01-12-2004, 09:29 PM   #2
Steve C. Orr [MVP, MCSD]
 
Posts: n/a
Default Re: Know the object does the postback
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]
  Reply With Quote
Old 01-12-2004, 10:28 PM   #3
Erick
 
Posts: n/a
Default Re: Know the object does the postback
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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46