LinkButton works but PushButton does not

E

EricT

I have a datagrid with a LinkButton. When user clicks the hyperlink, the
ItemCommand event handler gets callled. I used Property Builder to change
the Button Type to ButtonCommand, and refreshed the we page. Clicking the
button does not fire the ItemCommand handler.

Any suggestions?

EricT
 
A

Alvin Bruney [MVP]

In your initializeComponent function, what is the buttoncommand hooked to?
 
E

EricT

Alvin,
Thanks for the reply.
this.DataGrid1.ItemCommand += new
System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_ItemCom
mand);

I figured out how to make my app work: I stopped reloading the DataGrid's
data on postback. Now the ItemCommand even fires when the pushButton is
clicked. What still puzzles me is why the event fired for linkButton and
didn't fire for pushButton.

et

Alvin Bruney said:
In your initializeComponent function, what is the buttoncommand hooked to?

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
EricT said:
Can someone help with this please?
 

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,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top