任何人都知道编辑模式打开时如何在网格内设置值文本框?1. 我有文本框名称聚合: 2. 当编辑模式通过按钮打开时,我只想为那些文本框设置一些值。所以我有按钮: 3. 我需要在 javascript ex setValue() 中定义这些代码:
function setValue() {
var grid = $('<%=gvVariableConfig.ClientID%>');
........(what i need to do is here, anyone help)
}
-----------------------------------------------------------------------------
<asp:TemplateField HeaderText="Aggregation" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="5%" ItemStyle-Width="5%">
<EditItemTemplate>
<asp:TextBox ID="txtAggregation" runat="server" Text='<%# Bind("AGGREGATION") %>' Width="91%">
</asp:TextBox>
<asp:Label ID="lblAggregation" runat="server" Text='<%# Bind("AGGREGATION") %>' Visible="false">
</asp:Label>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblAggregation" runat="server" Text='<%# Bind("AGGREGATION") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
----------------------------------------------------------------------------
<button type="button" style="width: 100%;" onclick="setValue()"> Assign to Aggregation</button>
有人可以帮忙吗?