Im try to build a control with multiple events rised by different elements
but can't find any advanced example that can help me with this.
In the case of GridView, it fires many events, one of those is
SelectedIndexChaged and other is RowDeleted. when you look at the client
script they produce "__doPostBack('GridView1','Select$[index]')" and
"__doPostBack('GridView','Delete$[index]')"
Is this something i need to create through RaisePostBackEvent to recognize
the second argument? or is something already implemented in webcontrol class.
All Microsoft examples only show the RaisePostBackEvent(string
eventArgument) just with one event like OnClick and the stringArgument is not
used, but what if a i want to work with many events in my control and what if
they affect just one item of a collection.
Please refer me to a good source where i can get advanced help on this matter.
Thanks
Teemu Keiski - 30 Aug 2006 11:45 GMT
Hi,
yes you do check this via RaisePostBackEvent and there raise different
events based on the string argument.
Here is one article covering the aspects:
http://www.code-magazine.com/articleprint.aspx?quickid=0511051&printmode=true

Signature
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
> Im try to build a control with multiple events rised by different elements
> but can't find any advanced example that can help me with this.
[quoted text clipped - 19 lines]
>
> Thanks