GridView Control Image button: How to connect to a click event

K

keithb

I need help connecting an image button in a GridView control to an event
handler. Using the OnCommand property results in the following error:

Error 3 'UserControls_Rem.ImageButton_Command(object,
System.Web.UI.WebControls.CommandEventArgs)' is inaccessible due to its
protection level C:\local_websites\btm_root\UserControls\Rem.ascx 7

I must be doing something wrong here. Can someone offer a suggestion?

Thanks,

Keith
 
K

keithb

Answering my own question, I needed to set the onRowCommand Event for the
GridView Control. I had not noticed that the information I was using was in
reference to the DataGrid control in ASP.NET Version 1.

Keith
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top