__EVENTTARGET is always empty and I couldn't find such event as RaisePostBackEvent.
I forgot, one more way is to overload the RaisePostBackEvent. the
IPostBackEventHandler got the Control ID.
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
OK right buttons dont use the __Dopostback so the EVENTTARGET field is
empty,
1) If you look at the Form.Keys collection you will found the Button ID
that cause the postback.
2) RaisePostBackEvent is a method that you need to overload it :
override protected void RaisePostBackEvent ( IPostBackEventHandler
sourceControl,
string eventArgument)
{
string s = ((WebControl)sourceControl).ID ;
}
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.