Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have one linkbutton inside the asp tag...

When i clicked once it need to disable and instead display please wait.....

What is the solution...

This is my code..
<table><tr><td>More items</td></tr></table>

When i click more items it need to disable and display "please wait"...
Posted

first link button should be inside the update panel
second on the Link button click Event write this code

VB
Linkbutton1.text="Please wait..."
linkbutton1.enable= false
 
Share this answer
 
v2
Please check out this..

I tried it..working fine..

JavaScript
<script language="javascript" type="text/javascript">
    function disablethis()
    {    
         
        document.getElementById("LinkButton1").disabled = true;
     
     }
    
    </script>


calling the javascript function disablethis() on event onClientClick of linkbutton

C#
<asp:linkbutton id="LinkButton1" runat="server" onclientclick="javascript:return disablethis()" xmlns:asp="#unknown">LinkButton</asp:linkbutton>




Mark it solution if you got your answer.

Thanks
 
Share this answer
 
Comments
vivekx2 30-Jun-12 2:48am    
Thank u.....I got it.
AshishChaudha 30-Jun-12 2:50am    
make it answer if you got your solution from this..so that others may refer..thanks
Dear Friends, TRY THIS

onclick visible="false"
 
Share this answer
 

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