110,565
社区成员
发帖
与我相关
我的任务
分享
CommandArgument=<%# Eval("N_title")%>
LinkButton lb = (LinkButton)sender; string tetle = lb.CommandArgument;
protected void LinkButton1_Click(object sender, EventArgs e)
{
LinkButton myL = (LinkButton)sender;
int Index = ((GridViewRow)(myL.NamingContainer)).RowIndex;//获得行号
string f1=((Label)GridView1.Rows[Index].Cells[列号1].FindControl("字段1id")).Text;//找字段1
string f2=((Label)GridView1.Rows[Index].Cells[列号2].FindControl("字段2id")).Text;//找字段2
}