本文整理汇总了C#中ObjectDataSourceStatusEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ObjectDataSourceStatusEventArgs类的具体用法?C# ObjectDataSourceStatusEventArgs怎么用?C# ObjectDataSourceStatusEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ObjectDataSourceStatusEventArgs类属于命名空间,在下文中一共展示了ObjectDataSourceStatusEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ObjectDataSource1_Selected
protected void ObjectDataSource1_Selected(object sender, ObjectDataSourceStatusEventArgs e)
{
if (e.AffectedRows == 0)
{
}
}
示例2: odsPeriodReimburse_Inserted
protected void odsPeriodReimburse_Inserted(object sender, ObjectDataSourceStatusEventArgs e)
{
if (e.Exception != null) {
PageUtility.DealWithException(this, e.Exception);
e.ExceptionHandled = true;
}
}
示例3: OdsMap_Deleted
protected void OdsMap_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
{
if (this.MapChanged != null)
{
MapChanged(this, new EventArgs());
}
}
示例4: sourceEmployees_Inserted
protected void sourceEmployees_Inserted(object sender, ObjectDataSourceStatusEventArgs e)
{
if (e.Exception == null)
{
lblConfirmation.Text = "Inserted record " + e.ReturnValue.ToString();
}
}
示例5: odsCity_Updated
protected void odsCity_Updated(object sender, ObjectDataSourceStatusEventArgs e)
{
if (e.Exception != null) {
PageUtility.DealWithException(this, e.Exception);
e.ExceptionHandled = true;
}
}
示例6: BookingCancelledObjectDataSource_Updated
protected void BookingCancelledObjectDataSource_Updated(object sender, ObjectDataSourceStatusEventArgs e)
{
if (e.AffectedRows == -1)
{
}
}
示例7: ProcessException
protected void ProcessException(object sender, ObjectDataSourceStatusEventArgs e)
{
if (e.Exception != null)
{
//We can dispaly a message
}
}
示例8: ODS_ItemReference_Inserted
protected void ODS_ItemReference_Inserted(object sender, ObjectDataSourceStatusEventArgs e)
{
if (CreateEvent != null)
{
CreateEvent(this, null);
}
}
示例9: ObjectDataSource1_Deleted
// The following two event handlers illustrate two different techniques you can use to
// correctly handle deleting when using custom paging with an ObjectDataSource. Currently,
// these event handlers aren't wired up to any event, so they have no effect. But if you
// configure the GridView to support deleing, you'll want to use either one of these two
// approaches so that when a user deletes the last record from a page, the GridView's PageIndex
// is updated accordingly.
protected void ObjectDataSource1_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
{
// If we get back a Boolean value from the DeleteProduct method and it's true, then
// we successfully deleted the product. Set AffectedRows to 1
if (e.ReturnValue is bool && ((bool)e.ReturnValue) == true)
e.AffectedRows = 1;
}
示例10: TourDetailDataset_Inserted
protected void TourDetailDataset_Inserted(object sender, ObjectDataSourceStatusEventArgs e)
{
if (e.ReturnValue != null && e.ReturnValue is int)
{
Response.Redirect("TourDetail.aspx?id=" + e.ReturnValue.ToString());
}
}
示例11: BusinessManagerDataSource1_Selected
protected void BusinessManagerDataSource1_Selected(object sender, ObjectDataSourceStatusEventArgs e)
{
if (this.grdSystemParameters.Rows.Count <= 0)
{
this.frmSystemParameter.Visible = true;
this.grdSystemParameters.Visible = false;
}
}
示例12: ODS_Routing_Inserted
protected void ODS_Routing_Inserted(object sender, ObjectDataSourceStatusEventArgs e)
{
if (CreateEvent != null)
{
CreateEvent(routing.Code, e);
ShowSuccessMessage("MasterData.Routing.Insert.Successfully", routing.Code);
}
}
示例13: PendingAds_Selected
protected void PendingAds_Selected(object sender, ObjectDataSourceStatusEventArgs e)
{
AdsDataComponent.AdsDataTable inactiveAds = e.ReturnValue as AdsDataComponent.AdsDataTable;
if (inactiveAds != null && inactiveAds.Rows.Count > 0)
ActivationAdsPanel.Visible = true;
else
ActivationAdsPanel.Visible = false;
}
示例14: ODS_Role_Inserted
protected void ODS_Role_Inserted(object sender, ObjectDataSourceStatusEventArgs e)
{
if (CreateEvent != null)
{
CreateEvent(role.Code, e);
ShowSuccessMessage("Security.Role.AddRole.Successfully", role.Code);
}
}
示例15: ODS_Client_Inserted
protected void ODS_Client_Inserted(object sender, ObjectDataSourceStatusEventArgs e)
{
if (CreateEvent != null)
{
CreateEvent(client.ClientId, e);
ShowSuccessMessage("MasterData.Client.AddClient.Successfully", client.ClientId);
}
}