Click here to Skip to main content
15,921,276 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 4 buttons on my aspx page,whenever the page is loaded and if i click any of the button once
then it will work but after that none of them is working that means only one time click is working
on the page.Why is this happening?
Posted
Comments
Cenarjun 14-Jan-14 4:05am    
Post the code here...Keep a breakpoint and check whether its going to breakpoint or not after the second click
Sumit Bhargav 14-Jan-14 4:08am    
it's going but when it comes to binding the grid view then then there is no error but the data isn't shown shown updated.
thatraja 15-Jan-14 4:38am    
Update your question with more details like code, screenshot, etc.,
Sibasisjena 14-Jan-14 4:47am    
post your codes
Rahul VB 14-Jan-14 11:22am    
hello,
Do you want to say that the page is not being posted back to the server when you are clicking on any of the buttons after the first one? i just tried out a code: try it:

<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="but1" Text="1" OnClientClick="alert('but1 clicked')" runat="server" />
<asp:Button ID="But2" Text="2" OnClientClick="alert('but2 clicked')" runat="server" />
<asp:Button ID="But3" Text="3" OnClientClick="alert('but3 clicked')" runat="server" />
<asp:Button ID="But4" Text="4" OnClientClick="alert('but4 clicked')" runat="server" />


</div>
</form>
</body>
I have added a little javascript to test the functionality, also check that whether you have
: just try this out, hope it works.

- Rahul

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