本文整理汇总了C#中System.Web.UI.WebControls.GridViewUpdatedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# GridViewUpdatedEventArgs类的具体用法?C# GridViewUpdatedEventArgs怎么用?C# GridViewUpdatedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GridViewUpdatedEventArgs类属于System.Web.UI.WebControls命名空间,在下文中一共展示了GridViewUpdatedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: GridView_Rooms_RowUpdated
protected void GridView_Rooms_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
if (e.Exception != null)
{
Label_StatusMsg.Text = e.Exception.Message;
}
}
开发者ID:TheProjecter,项目名称:wsu-treasureland-hotel,代码行数:7,代码来源:RoomManagement.ascx.cs
示例2: GridView1_RowUpdated
protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
sclist2 = (List<ShoppingItem>)Session["sclist"];
GridView1.DataSource = sclist2;
GridView1.DataBind();
GridView1.EditIndex = -1;
}
开发者ID:tianhang,项目名称:Team7AD,代码行数:7,代码来源:ShoppingCart.aspx.cs
示例3: GridView2_RowUpdated
protected void GridView2_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
this.ClientDocuments.DataBind();
this.EngineerDocs.DataBind();
this.SolicitorDocs.DataBind();
this.CarhireDocs.DataBind();
}
开发者ID:farooqrazagenisys,项目名称:UC-LIVE,代码行数:7,代码来源:ViewDocuments.ascx.cs
示例4: GridView5_RowUpdated
protected void GridView5_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
this.GridView1.DataBind();
this.GridView2.DataBind();
this.GridView3.DataBind();
this.GridView4.DataBind();
}
开发者ID:farooqrazagenisys,项目名称:UC-LIVE,代码行数:7,代码来源:ViewClaims.ascx.cs
示例5: LocationGridView_RowUpdated
protected void LocationGridView_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
ApplyFilter();
if (e.Exception == null)
{
ShowMessageBox("Location successfully updated");
}
}
开发者ID:kaiss78,项目名称:olems,代码行数:8,代码来源:LocationManagement.aspx.cs
示例6: StudentSectionRowUpdated
protected void StudentSectionRowUpdated(object sender, GridViewUpdatedEventArgs e)
{
// ApplyFilter();
// if (e.Exception == null)
{
ShowMessageBox("Section successfully updated");
}
}
开发者ID:kaiss78,项目名称:olems,代码行数:8,代码来源:StudentSectionManagement.aspx.cs
示例7: SectionInstructorGridView_RowUpdated
protected void SectionInstructorGridView_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
ApplyFilter();
if (e.Exception == null)
{
ShowMessageBox("Section Instructor successfully updated");
}
}
开发者ID:kaiss78,项目名称:olems,代码行数:8,代码来源:SectionInstructorManagement.aspx.cs
示例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;
}
}
}
开发者ID:erdonet,项目名称:EnterpriseDesignPatterns,代码行数:13,代码来源:CustomerList.aspx.cs
示例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;
}
}
开发者ID:EdmilsonFernandes,项目名称:edm-azuli-condominio,代码行数:15,代码来源:PerfilMorador.aspx.cs
示例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";
}
}
开发者ID:m-windle,项目名称:Customer-Product-Management,代码行数:16,代码来源:ProductsAdmin.aspx.cs
示例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.";
}
开发者ID:cweber-wou,项目名称:capstone,代码行数:17,代码来源:insSelectCourseAddAssignment.aspx.cs
示例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());
}
}
}
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:21,代码来源:MacActionEditors.ascx.cs
示例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();
}
}
}
开发者ID:CarverLab,项目名称:tubeCoreWebService.root,代码行数:23,代码来源:ManageLicenses.aspx.cs
示例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));
}
}
}
开发者ID:nksherani,项目名称:EJASCMS,代码行数:37,代码来源:AllPlugins.aspx.cs
示例15: Unnamed1_RowUpdated
protected void Unnamed1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
}
开发者ID:Bernardomrf,项目名称:EDC2015-Trabalho3,代码行数:3,代码来源:Property.aspx.cs
示例16: OnGridViewRowUpdated
protected void OnGridViewRowUpdated(object sender, GridViewUpdatedEventArgs e)
{
DetailsView1.DataBind();
}
开发者ID:dmziryanov,项目名称:ApecAuto,代码行数:4,代码来源:ListDetails.aspx.cs
示例17: permisosGridView_RowUpdated
protected void permisosGridView_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
if (e.Exception != null)
{
ScriptManager.RegisterStartupScript(this.Parent.Page, GetType(), "Message", Funciones.TextoScript(e.Exception.Message), false);
e.ExceptionHandled = true;
}
}
开发者ID:pjeconde,项目名称:CedServicios,代码行数:8,代码来源:Permisos.ascx.cs
示例18: gvMenuItems_RowUpdated
/// <summary>
/// Enables the buttons when the gridview edit is updated
/// </summary>
protected void gvMenuItems_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
btnAddMenuItem.Enabled = true;
ddlChooseItem.Enabled = true;
ddlAddGetCategory.Enabled = true;
btnEnterPurchase.Enabled = true;
btnManageCategories.Enabled = true;
btnManageMenuItems.Enabled = true;
btnIngredients.Enabled = true;
}
开发者ID:TheProjecter,项目名称:wsu-treasureland-hotel,代码行数:13,代码来源:ManageRestaurant.aspx.cs
示例19: GridView1_RowUpdated
protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
FormView1.DataBind();
}
开发者ID:xandelima,项目名称:MVCNorthwind,代码行数:4,代码来源:ListDetails.aspx.cs
示例20: OnRowUpdated
protected virtual void OnRowUpdated (GridViewUpdatedEventArgs e)
{
if (Events != null) {
GridViewUpdatedEventHandler eh = (GridViewUpdatedEventHandler) Events [RowUpdatedEvent];
if (eh != null) eh (this, e);
}
}
开发者ID:calumjiao,项目名称:Mono-Class-Libraries,代码行数:7,代码来源:GridView.cs
注:本文中的System.Web.UI.WebControls.GridViewUpdatedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论