OnRowCommand="gridInfoData_RowCommand"
<Columns>
<asp:ButtonField HeaderText="总额" ButtonType="Link" DataTextField="MoneySum" CommandName="PorTrue" ItemStyle-HorizontalAlign="Right"/>
</Columns>
protected void gridInfoData_RowCommand(object sender, GridViewCommandEventArgs e)
{
string Name = Convert.ToString(MarketInfoData.Rows[Convert.ToInt32(e.CommandArgument)].ItemArray[MarketInfoData.Columns.IndexOf("Name")]);
switch (e.CommandName)
{
case "PorTrue":
if (Convert.ToString(tbxinfos.Value) != "")
{
Response.Redirect(EditUrl("Name", Name, "MK"));
}
break;
default:
break;
}
}