Posted on: 9/19/2014 5:44:13 AM | Views : 479

HI,
I am trying to disable a button on its click and call a CS code.. But once the button is disbaled, the server side function is not getting called.
I have used the below code:
//aspx function SetSource(SourceID) { var hidSourceID = document.getElementById("<%=hidSourceID.ClientID%>"); hidSourceID.value = SourceID; document.getElementById('<%= btnSearch.ClientID %>').value = "Please wait..."; document.getElementById('<%= btnSearch.ClientID %>').disabled = true; document.getElementById('<%= btnSearch.ClientID %>').focus(); return true; } <asp:Button ID="btnSearch" OnClientClick="SetSource(this);" runat="server" Text="Search"             & ...

Go to the complete details ...