Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > EventHandler problem

Reply
Thread Tools

EventHandler problem

 
 
=?Utf-8?B?SiBNY0Q=?=
Guest
Posts: n/a
 
      02-22-2004
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Intermittent IsPostBack/EventHandler problem ourwebstop@gmail.com ASP .Net Web Controls 0 03-30-2007 06:25 PM
Problem with eventhandler in c# lk@ace-data.dk ASP .Net Web Controls 0 01-23-2006 09:44 PM
eVENThANDLER PROBLEM J McD ASP .Net Building Controls 1 02-23-2004 10:13 AM
Add an eventhandler on a button_click =?Utf-8?B?QWxlc3NhbmRybyBSb3NzaQ==?= ASP .Net 1 02-17-2004 07:53 PM
Dynamic eventhandler Jacob ASP .Net 1 02-05-2004 01:45 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57