.aspx页面的Gridview:
DataValueField="CAMPAIGN_NAME" DataTextField="CAMPAIGN_NAME" SelectedValue=''>
.CS:
protected void GVobject_RowEditing(object sender, GridViewEditEventArgs e)
{
this.GVobject.EditIndex = e.NewEditIndex;
if (Session["IsoClick"] != null && Convert.ToBoolean(Session["IsoClick"].ToString()))//判斷查詢按鈕是否被點擊
{
get_objectdata();
}
else
{
ObjectShow();//重新绑定一次数据
}
{
this.GVobject.EditIndex = e.NewEditIndex;
if (Session["IsoClick"] != null && Convert.ToBoolean(Session["IsoClick"].ToString()))//判斷查詢按鈕是否被點擊
{
get_objectdata();
}
else
{
ObjectShow();//重新绑定一次数据
}
}
public DataSet ddlcampaign()
{
EDM_eMail edm = new EDM_eMail();
DataSet ds = edm.Show_Campaign_id();
return ds;
}
{
EDM_eMail edm = new EDM_eMail();
DataSet ds = edm.Show_Campaign_id();
return ds;
}
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22392018/viewspace-709237/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22392018/viewspace-709237/