nti.Ntid = int.Parse(gvNewsType.DataKeys[e.RowIndex].Values[0].ToString());
nti.Title = ((TextBox)gvNewsType.Rows[e.RowIndex].FindControl("tbTitle")).Text;
nti.Allow = int.Parse(((RadioButtonList)gvNewsType.Rows[e.RowIndex].FindControl("rbtnDisplay")).SelectedValue.ToString());
相关文章: