本文整理汇总了C#中System.Web.UI.WebControls.GridViewUpdatedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# GridViewUpdatedEventArgs类的具体用法?C# GridViewUpdatedEventArgs怎么用?C# GridViewUpdatedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GridViewUpdatedEventArgs类属于System.Web.UI.WebControls命名空间,在下文中一共展示了GridViewUpdatedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GridView_Rooms_RowUpdated
protected void GridView_Rooms_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
if (e.Exception != null)
{
Label_StatusMsg.Text = e.Exception.Message;
}
}
示例2: GridView1_RowUpdated
protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
sclist2 = (List<ShoppingItem>)Session["sclist"];
GridView1.DataSource = sclist2;
GridView1.DataBind();
GridView1.EditIndex = -1;
}
示例3: GridView2_RowUpdated
protected void GridView2_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
this.ClientDocuments.DataBind();
this.EngineerDocs.DataBind();
this.SolicitorDocs.DataBind();
this.CarhireDocs.DataBind();
}
示例4: GridView5_RowUpdated
protected void GridView5_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
this.GridView1.DataBind();
this.GridView2.DataBind();
this.GridView3.DataBind();
this.GridView4.DataBind();
}
示例5: LocationGridView_RowUpdated
protected void LocationGridView_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
ApplyFilter();
if (e.Exception == null)
{
ShowMessageBox("Location successfully updated");
}
}
示例6: StudentSectionRowUpdated
protected void StudentSectionRowUpdated(object sender, GridViewUpdatedEventArgs e)
{
// ApplyFilter();
// if (e.Exception == null)
{
ShowMessageBox("Section successfully updated");
}
}
示例7: SectionInstructorGridView_RowUpdated
protected void SectionInstructorGridView_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
ApplyFilter();
if (e.Exception == null)
{
ShowMessageBox("Section Instructor successfully updated");
}
}
示例8: GridView1_RowUpdated
protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
if (e.Exception != null && e.Exception.InnerException != null)
{
if (e.Exception.InnerException is System.Data.DBConcurrencyException)
{
//hata burada yakalanıp handle edilir eğer DBConcurrencyException hatası aldıysak
//o zaman conflict olmuş demektir. Hata mesajını gösteren label'ın visible'ını açalım.
UpdateConflictMessage.Visible = true;
e.ExceptionHandled = true;
}
}
}
示例9: GridView1_RowUpdated
protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
apto = Session["Ap"].ToString();
bloco = Session["Bloco"].ToString();
oAPmodel.apartamento = Convert.ToInt32(apto);
oAPmodel.bloco = Convert.ToInt32(bloco);
foreach (var item in oProprietario.BuscaMoradorAdmin(oAPmodel))
{
lblApto.Text = item.ap.apartamento.ToString();
lblBloco.Text = "0" + item.ap.bloco.ToString();
lblNome.Text = item.proprietario1;
lblEmail.Text = item.email;
}
}
示例10: grdProducts_RowUpdated
protected void grdProducts_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
if (e.Exception != null)
{
lblServerError.Visible = true;
lblServerError.Text = "A database error occured. Message: " + e.Exception.Message;
e.ExceptionHandled = true;
e.KeepInEditMode = true;
}
else if (e.AffectedRows == 0)
{
lblServerError.Visible = true;
lblServerError.Text = "Another user may have updated this entry already";
}
}
示例11: GridView1_RowUpdated
protected void GridView1_RowUpdated(
Object sender, GridViewUpdatedEventArgs e)
{
if (e.Exception != null)
{
lblError.Text = "A database error has occurred.<br /><br />" +
e.Exception.Message;
if (e.Exception.InnerException != null)
lblError.Text += "<br />Message: "
+ e.Exception.InnerException.Message;
e.ExceptionHandled = true;
e.KeepInEditMode = true;
}
else if (e.AffectedRows == 0)
lblError.Text = "Another user may have updated that category."
+ "<br />Please try again.";
}
示例12: GridViewItemsList_RowUpdated
protected void GridViewItemsList_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
if (e.Exception == null )
{
string keyName = "ID";
int id = (int)e.Keys[keyName];
int statusid = int.Parse(e.NewValues["Status"].ToString());
string email = e.NewValues["Email"].ToString();
string Serial = e.NewValues["Serial"].ToString();
Debug.WriteLine(string.Format("ID={0}, statusid={1}, email:{2}, Serial:{3}", id, statusid, email, Serial));
try
{
SendEmail(id, statusid, email, Serial);
}
catch (Exception ex)
{
Debug.WriteLine("SendEmail:" + ex.ToString());
}
}
}
示例13: GridView1_RowUpdated
protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
var gridView = (GridView)sender;
if (e.AffectedRows > 0)
{
var name = (string)e.NewValues["LicenseName"];
var email = (string)e.NewValues["LicenseEmail"];
var productName = (string)e.OldValues["ProductName"];
string licenseKey;
Helper.GetProductAndLicenseKey(name, email, productName, out licenseKey);
var license = tubeCentric.Payments.License.GetByKey(email, productName);
if (license != null)
{
license.GeneratedLicenseKey = licenseKey;
using (var model = PaymentsDataModel.NewContext())
{
model.Attach(license);
model.SaveDataModel(model.Licenses);
}
gridView.DataBind();
}
}
}
示例14: GridView1_RowUpdated
protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
if (((DropDownList)GridView1.Rows[GridView1.EditIndex].Cells[3].FindControl("DropDownList1")).SelectedIndex == 0)
{
if(!(toggle % 2 == 0))
{
//run default page of plugin
int index = GridView1.EditIndex;
GridViewRow row = GridView1.Rows[index];
TextBox lblfilename = (TextBox)row.Cells[2].FindControl("TextBox1");
string filename = lblfilename.Text;
var path = "../Plugins/" + filename.Replace(".", "_") + "/Default.aspx";
Response.Redirect(path);
}
}
else
{
if (!(toggle % 2 == 0))
{
//deactivate plugin
int index = GridView1.EditIndex;
GridViewRow row = GridView1.Rows[index];
TextBox lblfilename = (TextBox)row.Cells[2].FindControl("TextBox1");
string filename = lblfilename.Text;
string folder = filename.Replace(".", "_");//passed to uninstall page
string pageurl = "../Plugins/" + filename.Replace(".", "_") + "/Pages/home.aspx";
string path = "~/Plugins/" + filename.Replace(".", "_") + "/Deactivate.aspx";//?dir="+folder+"&task=deactivate&pageurl="+pageurl;
HttpCookie cookie = new HttpCookie("plugin");
cookie.Values.Add("folder", folder);
cookie.Values.Add("pageurl", pageurl);
Response.Cookies.Add(cookie);
Response.Redirect(string.Format(path));
}
}
}
示例15: Unnamed1_RowUpdated
protected void Unnamed1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
}