EventHandler problem

Discussion in 'ASP .Net' started by =?Utf-8?B?SiBNY0Q=?=, Feb 22, 2004.

  1. Hi

    I've added a column of ImageButtons to a datagrid and I want to run a method (OnImgBtnClick) when one is clicked. Using the code below, it seems that clicking on an ImageButton gets a postback but does not run the method. Can someone tell me what I'm missing

    Thanks in advance, J

    private void OnImgBtnClick(object sender, EventArgs e

    label1.Text="Button Clicked"


    public void BindDataGrid(string querytype
    =?Utf-8?B?SiBNY0Q=?=, Feb 22, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jacob

    Dynamic eventhandler

    Jacob, Feb 5, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,609
    Eugene Jenihov
    Feb 5, 2004
  2. =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?=

    Add an eventhandler on a button_click

    =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?=, Feb 17, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    459
    Chris Jackson
    Feb 17, 2004
  3. J McD

    eVENThANDLER PROBLEM

    J McD, Feb 23, 2004, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    109
    Thomas Johansen
    Feb 23, 2004
  4. Problem with eventhandler in c#

    , Jan 23, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    161
  5. Intermittent IsPostBack/EventHandler problem

    , Mar 30, 2007, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    153
Loading...

Share This Page