Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / August 2006

Tip: Looking for answers? Try searching our database.

capture Multiple events in server controls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
@rturo - 29 Aug 2006 15:22 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.