Image Button Click Event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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 said:
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.
 
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
 
Back
Top