Click here to Skip to main content
15,610,088 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have placed a button,textbox and gridview.Girdview will show data after click on the button.But button click does not fire
please help ...
Sampath Lokuge 16-Feb-14 9:29am    
Can you put your code snippet ?

first try to debug the code if on click of button control is not coming to button event then

Do one thing if possible, create new button and write your code inside it's event.
Share this answer
If you have written some code in if(!IsPostBack), then that would cause problem here.
So try to remove it and see what happens.
Or else put the breakpoint and see.

Share this answer
Sandip Paul 491984 16-Feb-14 10:59am    
yah it work if removing if(!ispostbak) can u tell me why this happen
Krunal Rohit 16-Feb-14 11:21am    
When the button is clicked, the is post back to the server again loaded. So IsPostBack is checking for load the data after the page is post back or not. :)
If you have your answer, accept the solution.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900