470,624 Members | 2,316 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,624 developers. It's quick & easy.

Image Button Click Event

ron
hi,
I have two image buttons for a custom paging solution in a DataGrid, I would like both button's to use the same Click Event.
I have seen this done before but can not remember were, would some please give brief explanation of how?

Thanks Ron
Nov 15 '05 #1
2 3259
If you know they are Button's then case the sender parameter to Button, then
switch on the name.

switch(((Button) sender).Name) {
}
--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers

"ron" <an*******@discussions.microsoft.com> wrote in message
news:6A**********************************@microsof t.com...
hi,
I have two image buttons for a custom paging solution in a DataGrid, I would like both button's to use the same Click Event. I have seen this done before but can not remember were, would some please give brief explanation of how?
Thanks Ron

Nov 15 '05 #2
ron
Justin,
That would work fine if i enable pageing for the DataGrid but i need to provide a custom paging solution.
The Grid has 83 fields and can contain from 0 to several 100k rows of data.
This would be very slow.

Ron
Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by WJ | last post: by
6 posts views Thread by ruca | last post: by
1 post views Thread by Andy Rose | last post: by
3 posts views Thread by jackiepatti | last post: by
10 posts views Thread by Edwin Knoppert | last post: by
3 posts views Thread by Andreas WŲckl | last post: by
4 posts views Thread by skanemupp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.