I have one gridview which checkbox,
<asp:GridView ID="GriduwgDocuments" AutoGenerateColumns="False" runat="server"
EnablePersistedSelection="true" AllowPaging="True" AllowSorting="True" GridLines="None"
Width="960px" PageSize="25">
<PagerSettings Position="Top"></PagerSettings>
<RowStyle CssClass="result-grid-row" />
<AlternatingRowStyle CssClass="result-grid-row-alternate" />
<SelectedRowStyle CssClass="result-grid-row-selected" />
<HeaderStyle Height="20px" CssClass="result-grid-header" />
<Columns>
<asp:TemplateField >
<ItemTemplate>
<asp:CheckBox ID="chkBxSelect" runat="server" OnCheckedChanged="cbRowChanged_CheckedChanged" />
</ItemTemplate>
</asp:TemplateField>
and button,
<asp:Button ID="btnGetDocs" runat="server" Text="Download Selected Docs"
CssClass="Button"
Width="140px" Enabled="False" />
What I am trying to do is , when page load first time my button is Enabled="False"
and as soon as client checked any checkbox of grid, my button should be Enabled="true"
. I mean clickable.
on OnCheckedChanged
of checkbox ,its goes to behind the code cbRowChanged_CheckedChanged
.
please advice !!
Aucun commentaire:
Enregistrer un commentaire