In my .aspx file I have a button
<asp:Button ID="BtnSearch" runat="server" Text="Search" ValidationGroup="SearchRoles" CausesValidation="true" OnClick="BtnSearch_Click" />
Normally in the .cs file if I needed to call any methods for the button I would call BtnSearch.method() but I have a function in the JavaScript for EditClick() and I would like to call BtnSearch.Enable = false but I get an exception. How would I disable this button in the JavaScript function?
