0

Hi Everyone!

I have the following problem:
I'm trying to create a web shop (now just the sample of it), using Visual Web Developer 2008 (Express). I've added an SQL database, and a ButtonColumn, where the button selects the line and add the datas to another database. My only problem is that the button absolutely refuses to work. When I click on it, nothing happens at all, altought I set the button's CommandName property to Button_Click, but it won't run the "protected void Button_Click(Object sender, DataGridCommandEventArgs e" void.
What could be the problem?

I could use any answers, please help me!
Thank you!

2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by konczuras
0

Sorry, I've mistyped it. Naturally, the quotation marks are closed (Object sender, DataGridCommandEventArgs e).

But it doesn't work. I've included some debugging in it (it should set a label's text, when it's triggered), but nothing happens.

0

hi konczuras,

The problem is that you can not declare DataGridCommandEventArgs EventHandler for GridView.

0

Thank you for your help! Meanwhile, I've solved the problem with a select and the GridView_SelectendIndexChanged eventhandler but it worked with yours also!

So, thanks!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.