本文整理汇总了C#中System.Web.UI.WebControls.FormViewDeletedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# FormViewDeletedEventArgs类的具体用法?C# FormViewDeletedEventArgs怎么用?C# FormViewDeletedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FormViewDeletedEventArgs类属于System.Web.UI.WebControls命名空间,在下文中一共展示了FormViewDeletedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: FormView1_ItemDeleted
protected void FormView1_ItemDeleted(object sender, FormViewDeletedEventArgs e)
{
if (e.Exception == null || e.ExceptionHandled)
{
this.Response.Redirect(this.Table.ListActionPath);
}
}
开发者ID:Jarolim,项目名称:AllMyHomeworkForTelerikAcademy,代码行数:7,代码来源:Details.aspx.cs
示例2: FormView1_ItemDeleted
//-------------------------------------------------------------------------------------------
protected void FormView1_ItemDeleted(object sender, FormViewDeletedEventArgs e)
{
//if (e.Exception == null || e.ExceptionHandled)
//{
// Response.Redirect(table.ListActionPath);
//}
}
开发者ID:weavver,项目名称:weavver,代码行数:8,代码来源:Page.aspx.cs
示例3: FormView1_ItemDeleted
protected void FormView1_ItemDeleted(object sender, FormViewDeletedEventArgs e)
{
GridView1.DataBind();
btneditar.Visible = false;
btneliminar.Visible = false;
}
开发者ID:Phate339,项目名称:eng.soft.2,代码行数:7,代码来源:Gerir.aspx.cs
示例4: fvPersonDetails_ItemDeleted
/// <summary>
/// 删除成功后 , 重新绑定数据.
/// </summary>
protected void fvPersonDetails_ItemDeleted(object sender, FormViewDeletedEventArgs e)
{
gvPersonOverView.DataBind();
// 如果还有记录
if (gvPersonOverView.Rows.Count > 0)
{
// 取出被删除记录的行索引
int delindex = (int)ViewState["delindex"];
// 如果第一条记录被删除,移动到下一条记录.
if (delindex == 0)
{
gvPersonOverView.SelectedIndex = 0;
}
// 如果是最后一条记录被删除, 移动到前一条记录.
else if (delindex == gvPersonOverView.Rows.Count)
{
gvPersonOverView.SelectedIndex = gvPersonOverView.Rows.Count - 1;
}
// 否则, 删除后移动到下一条记录.
else
{
gvPersonOverView.SelectedIndex = delindex;
}
}
// 如果没有记录, 变更为插入模式以插入数据.
else
{
fvPersonDetails.ChangeMode(FormViewMode.Insert);
fvPersonDetails.DefaultMode = FormViewMode.Insert;
}
}
开发者ID:zealoussnow,项目名称:OneCode,代码行数:40,代码来源:Default.aspx.cs
示例5: HandleDeleteCallback
private bool HandleDeleteCallback(int affectedRows, Exception ex) {
int pageIndex = PageIndex;
FormViewDeletedEventArgs fea = new FormViewDeletedEventArgs(affectedRows, ex);
fea.SetKeys(_deleteKeys);
fea.SetValues(_deleteValues);
OnItemDeleted(fea);
_deleteKeys = null;
_deleteValues = null;
if (ex != null && !fea.ExceptionHandled) {
// If there is no validator in the validation group that could make sense
// of the error, return false to proceed with standard exception handling.
// But if there is one, we want to let it display its error instead of throwing.
if (PageIsValidAfterModelException()) {
return false;
}
}
if (pageIndex == _pageCount - 1) {
HandlePage(pageIndex - 1);
}
RequiresDataBinding = true;
return true;
}
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:27,代码来源:FormView.cs
示例6: d_ItemDeleted
static void d_ItemDeleted (object sender, FormViewDeletedEventArgs e)
{
if (WebTest.CurrentTest.UserData == null) {
ArrayList list = new ArrayList ();
list.Add ("ItemDeleted");
WebTest.CurrentTest.UserData = list;
}
else {
ArrayList list = WebTest.CurrentTest.UserData as ArrayList;
if (list == null)
throw new NullReferenceException ();
list.Add ("ItemDeleted");
WebTest.CurrentTest.UserData = list;
}
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:15,代码来源:FormViewTest.cs
示例7: attractionsForm_ItemDeleted
protected void attractionsForm_ItemDeleted(object sender, FormViewDeletedEventArgs e)
{
Response.RedirectToRoute("TouristAttraction");
}
开发者ID:rustd,项目名称:ASP.NET-MVC-and-DbGeography,代码行数:5,代码来源:Delete.aspx.cs
示例8: FormViewArticolo_ItemDeleted
protected void FormViewArticolo_ItemDeleted(object sender, FormViewDeletedEventArgs e)
{
Response.Redirect(ViewState["PreviousPage"].ToString());//Redirect to
}
开发者ID:PaoloMisson,项目名称:GATEvolution,代码行数:4,代码来源:ArticoliModifica.aspx.cs
示例9: FormView1_ItemDeleted
//-------------------------------------------------------------------------------------------
protected void FormView1_ItemDeleted(object sender, FormViewDeletedEventArgs e)
{
if (Page.MasterPageFile.Contains("Blank.master"))
{
ScriptManager.RegisterStartupScript(Page, this.GetType(), "closeIFrame", "<script type='text/javascript'>parent.closeIFrame('" + Request["WindowId"] + "', '" + Request["ParentId"] + "');</script>", false);
}
else
{
if (e.Exception == null || e.ExceptionHandled)
{
Response.Redirect(RedirectURL);
}
}
}
开发者ID:weavver,项目名称:weavver,代码行数:15,代码来源:Details.aspx.cs
示例10: fvProcMaterialBalanceAdd_ItemDeleted
protected void fvProcMaterialBalanceAdd_ItemDeleted(object sender, FormViewDeletedEventArgs e)
{
//当前删除的id号
var id = Int64.Parse(e.Keys[0].ToString());
//执行跳转
JumpToUrlById(id);
}
开发者ID:yangdan8,项目名称:ydERPGJ,代码行数:7,代码来源:ProcMaterialBalanceAdd.aspx.cs
示例11: OnItemDeleted
protected override void OnItemDeleted(FormViewDeletedEventArgs e)
{
base.OnItemDeleted(e);
WebNavigator nav = this.GetBindingNavigator();
if (nav != null)
{
WebDataSource ds = (WebDataSource)this.GetObjByID(this.DataSourceID);
if (ds.AutoApply)
{
nav.SetState(WebNavigator.NavigatorState.ApplySucess);
nav.SetNavState("Browsed");
}
else
{
nav.SetState(WebNavigator.NavigatorState.Changed);
nav.SetNavState("Changing");
}
}
}
开发者ID:san90279,项目名称:UK_OAS,代码行数:19,代码来源:WebFormView.cs
示例12: OnItemDeleted
protected virtual new void OnItemDeleted(FormViewDeletedEventArgs e)
{
}
开发者ID:asvishnyakov,项目名称:CodeContracts,代码行数:3,代码来源:System.Web.UI.WebControls.FormView.cs
示例13: OnItemDeleted
/// <devdoc>
/// <para>Raises the <see langword='ItemDeleted '/>event.</para>
/// </devdoc>
protected virtual void OnItemDeleted(FormViewDeletedEventArgs e) {
FormViewDeletedEventHandler handler = (FormViewDeletedEventHandler)Events[EventItemDeleted];
if (handler != null) handler(this, e);
}
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:7,代码来源:FormView.cs
示例14: FormView1_ItemDeleted
protected void FormView1_ItemDeleted(object sender, FormViewDeletedEventArgs e)
{
Response.Redirect("~/Qualita/NonConformitaList.aspx");
}
开发者ID:PaoloMisson,项目名称:GATEvolution,代码行数:4,代码来源:NCModifica.ascx.cs
示例15: DeleteItem
public virtual void DeleteItem ()
{
currentEditRowKeys = DataKey.Values;
currentEditNewValues = GetRowValues (true);
FormViewDeleteEventArgs args = new FormViewDeleteEventArgs (PageIndex, currentEditRowKeys, currentEditNewValues);
OnItemDeleting (args);
if (args.Cancel || !IsBoundUsingDataSourceID)
return;
if (PageIndex > 0 && PageIndex == PageCount - 1)
PageIndex--;
RequireBinding ();
DataSourceView view = GetData ();
if (view != null)
view.Delete (currentEditRowKeys, currentEditNewValues, new DataSourceViewOperationCallback (DeleteCallback));
else {
FormViewDeletedEventArgs dargs = new FormViewDeletedEventArgs (0, null, currentEditRowKeys, currentEditNewValues);
OnItemDeleted (dargs);
}
}
开发者ID:Profit0004,项目名称:mono,代码行数:24,代码来源:FormView.cs
示例16: FormViewStrumento_ItemDeleted
protected void FormViewStrumento_ItemDeleted(object sender, FormViewDeletedEventArgs e)
{
}
开发者ID:PaoloMisson,项目名称:GATEvolution,代码行数:4,代码来源:GestioneStrumenti.aspx.cs
示例17: DeleteCallback
bool DeleteCallback (int recordsAffected, Exception exception)
{
FormViewDeletedEventArgs dargs = new FormViewDeletedEventArgs (recordsAffected, exception, currentEditRowKeys, currentEditNewValues);
OnItemDeleted (dargs);
return dargs.ExceptionHandled;
}
开发者ID:Profit0004,项目名称:mono,代码行数:6,代码来源:FormView.cs
示例18: fvEngLotCardAdd_ItemDeleted
protected void fvEngLotCardAdd_ItemDeleted(object sender, FormViewDeletedEventArgs e)
{
//当前id号
Int64 id = Convert.ToInt64(e.Keys[0]);
//调用过程执行跳转
JumpToUrlById(id);
}
开发者ID:yangdan8,项目名称:ydERPTY,代码行数:7,代码来源:LotCardAdd.aspx.cs
示例19: OnItemDeleted
protected virtual void OnItemDeleted (FormViewDeletedEventArgs e)
{
if (Events != null) {
FormViewDeletedEventHandler eh = (FormViewDeletedEventHandler) Events [ItemDeletedEvent];
if (eh != null) eh (this, e);
}
}
开发者ID:Profit0004,项目名称:mono,代码行数:7,代码来源:FormView.cs
示例20: FormViewRapportino_ItemDeleted
protected void FormViewRapportino_ItemDeleted(object sender, FormViewDeletedEventArgs e)
{
this.Response.Redirect("~/Rapporti/RapportiLista.aspx");
}
开发者ID:PaoloMisson,项目名称:GATEvolution,代码行数:4,代码来源:Rapporto.aspx.cs
注:本文中的System.Web.UI.WebControls.FormViewDeletedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论