Button OnClick event not firing in asp.net Project:

You must be copied this method from other application. don't you? So you need to delete the event and event name assigned to the button from both of the files .cs and .aspx, 

Step 1:  First Change the Button name property to what you want to keep the name of click event function, 

Step 2: Go to design and go to button hit F4 to open properties window. 

Step 3: In event tab go to onClick event double click next to it, it will generate event and it automatically assigns event name to the button according to the name what you name it in name property. 

It will work now... Thanks, 


No comments:

Post a Comment