本文整理匯總了C#中System.Web.UI.WebControls.FormViewDeletedEventArgs.SetValues方法的典型用法代碼示例。如果您正苦於以下問題:C# FormViewDeletedEventArgs.SetValues方法的具體用法?C# FormViewDeletedEventArgs.SetValues怎麽用?C# FormViewDeletedEventArgs.SetValues使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Web.UI.WebControls.FormViewDeletedEventArgs
的用法示例。
在下文中一共展示了FormViewDeletedEventArgs.SetValues方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: 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;
}