<asp:templatefield HeaderText="处理人">
<headerstyle horizontalalign="Left" />
<itemstyle width="38%" HorizontalAlign="left" />
<ItemTemplate>
<asp:TextBox ID="DealMan" runat="server" CssClass="InputCss0" Text='<%#Eval("vPosno") %>'></asp:TextBox> </ItemTemplate>
</asp:templatefield>
如何取行索引??
<headerstyle horizontalalign="Left" />
<itemstyle width="38%" HorizontalAlign="left" />
<ItemTemplate>
<asp:TextBox ID="DealMan" runat="server" CssClass="InputCss0" Text='<%#Eval("vPosno") %>'></asp:TextBox> </ItemTemplate>
</asp:templatefield>
如何取行索引??
解决方案 »
- 菜鸟求指教
- ExtJs的ComboBox绑定后台JSON数据问题
- 实现网站内 热点搜索 功能
- 发愁了,这个怎么做?
- 关于JS代码调用后台方法问题
- C#中求EXCEL导入数据库的代码!
- ExecuteNonQuery的问题,急急急急急急急急急急!
- 两次使用Page.RegisterArrayDeclaration 方法(数组名相同),第二次的数组元素会附加在第一次后面,如何使第二次覆盖第一次定义的数组?
- 以前会asp,现在想学asp.net
- 请问:BC30002: 未定义类型“ADOConnection”是什么原因?
- 请高手帮我看看为什么我的邮件不能发送?
- 如何在ASP.NET中处理COM组件触发的事件
CommandArgs='<%#((GridViewRow)Container).RowIndex%>'protected void GridView1_RowCommand(object sender,
GridViewCommandEventArgs e)
{
if (e.CommandName == "AddToCart")
{
int index = Convert.ToInt32(e.CommandArgument);
}
}
<ItemTemplate>
<asp:Button ID="AddButton" runat="server"
CommandName="AddToCart"
CommandArgument="<%#((GridViewRow) Container).RowIndex%>"
Text="Add to Cart" />
</ItemTemplate>
</asp:TemplateField>