PC Review


Reply
Thread Tools Rate Thread

Click event on an ImageButton Column

 
 
=?Utf-8?B?Sk1jRA==?=
Guest
Posts: n/a
 
      23rd Feb 2004
Hi

I have a DataGrid with an ImageButton column. When I click on an imagebutton I get a postback but it doesn't run the OnImgBtnClick method. I can actually comment out the line where I add this Click event to the ImageButton Column and it makes no difference, I still get a postback. This is driving me crazy...something seems to be causing an OnClick postback and it isn't my Click event
I've included the code below....any help will be much appreciated as I've been looking at this for a long time and I'm havnig a real problem understanding what's going on

Thanks in advance, John

private void OnImgBtnClick(object sender, EventArgs e

label1.Text="Button Clicked"


public void BindDataGrid(string querytype

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
new ImageButton - no click event called mihai Microsoft C# .NET 0 1st Mar 2008 08:30 PM
Imagebutton click event =?Utf-8?B?YWtpcw==?= Microsoft ASP .NET 1 12th Nov 2005 03:16 PM
ImageButton click event TCORDON Microsoft ASP .NET 1 31st Oct 2005 07:52 PM
ImageButton Click Event TCORDON Microsoft ASP .NET 3 26th Apr 2005 06:59 PM
Click event on an ImageButton column =?Utf-8?B?SiBNY0Q=?= Microsoft ASP .NET 5 25th Feb 2004 12:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:29 AM.