• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ObjectDataSourceEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ObjectDataSourceEventArgs的典型用法代码示例。如果您正苦于以下问题:C# ObjectDataSourceEventArgs类的具体用法?C# ObjectDataSourceEventArgs怎么用?C# ObjectDataSourceEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ObjectDataSourceEventArgs类属于命名空间,在下文中一共展示了ObjectDataSourceEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ObjectDataSource1_ObjectCreating

 protected void ObjectDataSource1_ObjectCreating (object sender, ObjectDataSourceEventArgs e)
 {
     int[] listedPersons = ViewState["persons"] as int[];
     ListPersonDataSource ds = new ListPersonDataSource(listedPersons);
     ds.selectedOrgId = int.Parse(DropOrganizations.SelectedValue);
     e.ObjectInstance = ds;
 }
开发者ID:SwarmCorp,项目名称:Swarmops,代码行数:7,代码来源:HandlePaymentStatus.aspx.cs


示例2: OnDataSourceObjectCreated

    private void OnDataSourceObjectCreated(object sender, ObjectDataSourceEventArgs e)
    {
        RequestObjectHistoryDataSource dataSource = e.ObjectInstance as RequestObjectHistoryDataSource;
        if (dataSource == null)
            return;

        dataSource.ObjectID = ObjectID.Value;
    }
开发者ID:Confirmit,项目名称:Portal,代码行数:8,代码来源:ObjectHistoryGrid.ascx.cs


示例3: TheWikiDataSource_ObjectCreating

 protected void TheWikiDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
 {
     e.ObjectInstance = new WikiResult(TitleTextBox.Text, DescriptionTextBox.Text, string.Empty, AuthorTextBox.Text, string.Empty,
         null, string.Empty, string.Empty,
         !string.IsNullOrEmpty(DateCreatedTextBox.Text) ? DateTime.Parse(DateCreatedTextBox.Text) : DateTime.MinValue,
         !string.IsNullOrEmpty(DateCreatedTextBox.Text) ? DateTime.Parse(DateCreatedTextBox.Text).AddDays(1) : DateTime.MinValue,
         !string.IsNullOrEmpty(DateModifiedTextBox.Text) ? DateTime.Parse(DateModifiedTextBox.Text) : DateTime.MinValue,
         !string.IsNullOrEmpty(DateModifiedTextBox.Text) ? DateTime.Parse(DateModifiedTextBox.Text).AddDays(1) : DateTime.MinValue,
         LastModifiedByTextBox.Text);
 }
开发者ID:kohku,项目名称:codefactory,代码行数:10,代码来源:wikiReport.aspx.cs


示例4: CategoryDataSource_ObjectCreating

    protected void CategoryDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
    {
        ICategory item = null;

        if (CategoryTreeView.SelectedNode != null)
            item = ContentManagementService.GetCategory(CategoryTreeView.SelectedNode.DataPath);

        if (item != null)
            e.ObjectInstance = new CategoriesSource(item.ID);
        else
            e.ObjectInstance = new CategoriesSource(null);
    }
开发者ID:kohku,项目名称:codefactory,代码行数:12,代码来源:manageCategories.aspx.cs


示例5: CreateNotesWhatsModifiedDataSource

 /// <summary>
 /// Creates the notes whats modified data source.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceEventArgs"/> instance containing the event data.</param>
 protected void CreateNotesWhatsModifiedDataSource(object sender, ObjectDataSourceEventArgs e)
 {
     if (_ModifiedNotesLastPageIndex)
     {
         int pageIndex = 0;
         int recordCount = WNRequest.GetRecordCount();
         int pageSize = grdModifiedNotes.PageSize;
         decimal numberOfPages = recordCount / pageSize;
         pageIndex = Convert.ToInt32(Math.Ceiling(numberOfPages));
         grdModifiedNotes.PageIndex = pageIndex;
     }
     e.ObjectInstance = WNRequest;
 }
开发者ID:RyanTest,项目名称:SalesLogix_Eval,代码行数:18,代码来源:NotesWhatsNew.ascx.cs


示例6: TheDataSource_ObjectCreating

    protected void TheDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
    {
        DateTime fechaInicio = DateTime.MinValue;
        DateTime fechaFin = DateTime.MinValue;

        if (!string.IsNullOrEmpty(FechaInicioTextBox.Text))
            fechaInicio = DateTime.Parse(FechaInicioTextBox.Text);

        if (!string.IsNullOrEmpty(FechaFinTextBox.Text))
            fechaFin = DateTime.Parse(FechaFinTextBox.Text).AddDays(1);

        e.ObjectInstance = new StatisticTraceReport(new DateTime(fechaInicio.Year, fechaInicio.Month, fechaInicio.Day),
            new DateTime(fechaFin.Year, fechaFin.Month, fechaFin.Day), string.Empty, string.Empty, null, string.Empty, string.Empty);
    }
开发者ID:kohku,项目名称:codefactory,代码行数:14,代码来源:EstadisticasConsulta.aspx.cs


示例7: SectionDataSource_ObjectCreating

    protected void SectionDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
    {
        Guid? sectionId = Guid.Empty;

        if (SectionTreeView.SelectedNode != null)
        {
            ISection item = ContentManagementService.GetSection(SectionTreeView.SelectedNode.DataPath);

            if (item != null)
                sectionId = item.ID;
        }

        e.ObjectInstance = new SectionsSource(sectionId);
    }
开发者ID:kohku,项目名称:codefactory,代码行数:14,代码来源:manageSections.aspx.cs


示例8: ResultsDataSource_ObjectCreating

 protected void ResultsDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
 {
     e.ObjectInstance = new WikiSearchResult(
         HttpUtility.UrlDecode(!string.IsNullOrEmpty(Request.QueryString["q"]) ?
         Request.QueryString["q"] :
         (!string.IsNullOrEmpty(Request.QueryString["key"]) ?
         Request.QueryString["key"] : string.Empty)),
         HttpUtility.UrlDecode(!string.IsNullOrEmpty(Request.QueryString["cat"]) ?
         Request.QueryString["cat"] :
         (!string.IsNullOrEmpty(Request.QueryString["key"]) ?
         Request.QueryString["key"] : string.Empty)),
         HttpUtility.UrlDecode(!string.IsNullOrEmpty(Request.QueryString["key"]) ?
         Request.QueryString["key"] :
         (!string.IsNullOrEmpty(Request.QueryString["q"]) ?
         Request.QueryString["q"] : string.Empty)));
 }
开发者ID:kohku,项目名称:codefactory,代码行数:16,代码来源:WikiSearch.aspx.cs


示例9: TheUploadedFilesDataSource_ObjectCreating

    protected void TheUploadedFilesDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
    {
        Guid? sectionId = null;

        if (SectionTreeView.SelectedNode != null)
        {
            Section item = null;
                //ContentManagementService.GetSection(SectionTreeView.SelectedNode.DataPath);

            if (item != null)
                sectionId = item.ID;
        }

        e.ObjectInstance = new UploadedFilesCatalogSource(null,
            // Avoid to search all files
            sectionId.HasValue ? sectionId.Value : Guid.Empty,
            null, null, null, null, null, null);
    }
开发者ID:kohku,项目名称:codefactory,代码行数:18,代码来源:UploadedFilesCatalog.aspx.cs


示例10: CreateTargetsViewDataSource

 /// <summary>
 /// Creates the targets view data source.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceEventArgs"/> instance containing the event data.</param>
 protected void CreateTargetsViewDataSource(object sender, ObjectDataSourceEventArgs e)
 {
     TargetsViewDataSource dataSource = new TargetsViewDataSource();
     dataSource.SelectedFilterState = _filterState;
     if (!String.IsNullOrEmpty(grdTargets.SortExpression))
         dataSource.SortExpression = grdTargets.SortExpression;
     dataSource.IsAscending = grdTargets.SortDirection.Equals(SortDirection.Ascending);
     if (_setLastPageIndex)
     {
         int pageIndex = 0;
         int recordCount = dataSource.GetDataCount();
         int pageSize = grdTargets.PageSize;
         decimal numberOfPages = recordCount / pageSize;
         pageIndex = Convert.ToInt32(Math.Ceiling(numberOfPages));
         grdTargets.PageIndex = pageIndex;
     }
     e.ObjectInstance = dataSource;
 }
开发者ID:vishalrajpure,项目名称:SLX_v80_TUV_VFS,代码行数:23,代码来源:UpdateTargets.ascx.cs


示例11: ObjDs1_ObjectCreating

 protected void ObjDs1_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
 {
     var typename = new ItemsManager<Item, ItemsFilter>(true, true);
     e.ObjectInstance = typename;
 }
开发者ID:liqueflies,项目名称:pigeoncms,代码行数:5,代码来源:Default.ascx.cs


示例12: odsSKUDetails_ObjectCreated

 protected void odsSKUDetails_ObjectCreated(object sender, ObjectDataSourceEventArgs e)
 {
     SalesReimburseBLL bll = (SalesReimburseBLL)e.ObjectInstance;
     bll.FormDataSet = this.InnerDS;
 }
开发者ID:hijoy,项目名称:VSL_ERS,代码行数:5,代码来源:ReimburseGoodsApply.aspx.cs


示例13: ObjDs1_ObjectCreating

 protected void ObjDs1_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
 {
     var typename = new CouponsManager();
     e.ObjectInstance = typename;
 }
开发者ID:liqueflies,项目名称:pigeoncms,代码行数:5,代码来源:Default.ascx.cs


示例14: odsFormTravelApplyDetails_ObjectCreated

 protected void odsFormTravelApplyDetails_ObjectCreated(object sender, ObjectDataSourceEventArgs e)
 {
     PersonalReimburseBLL bll = (PersonalReimburseBLL)e.ObjectInstance;
     bll.FormDataSet = this.InnerDS;
 }
开发者ID:hijoy,项目名称:VSL_ERS,代码行数:5,代码来源:TravelApproval.aspx.cs


示例15: CreateActivitiesWhatsNewDataSource

 /// <summary>
 /// Creates the activities whats new data source.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceEventArgs"/> instance containing the event data.</param>
 protected void CreateActivitiesWhatsNewDataSource(object sender, ObjectDataSourceEventArgs e)
 {
     ActivitiesWhatsNewDataSource dataSource = new ActivitiesWhatsNewDataSource();
     dataSource.ActivitySearchOptions = SearchOptions;
     SearchOptions.ModifiedActivitiesOnly = false;
     if (_NewActivitiesLastPageIndex)
     {
         int pageIndex = 0;
         int recordCount = dataSource.GetRecordCount();
         int pageSize = grdNewActivities.PageSize;
         decimal numberOfPages = recordCount / pageSize;
         pageIndex = Convert.ToInt32(Math.Ceiling(numberOfPages));
         grdNewActivities.PageIndex = pageIndex;
     }
     e.ObjectInstance = dataSource;
 }
开发者ID:RyanTest,项目名称:SalesLogix_Eval,代码行数:21,代码来源:ActivitiesWhatsNew.ascx.cs


示例16: odsInvoice_ObjectCreated

 protected void odsInvoice_ObjectCreated(object sender, ObjectDataSourceEventArgs e)
 {
     FormPurchaseBLL bll = (FormPurchaseBLL)e.ObjectInstance;
     bll.PurchaseDataSet = this.InnerDS;
 }
开发者ID:hijoy,项目名称:CPL_ERS,代码行数:5,代码来源:PVSpecialApply.aspx.cs


示例17: ObjectDataSource1_ObjectCreating

 protected void ObjectDataSource1_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
 {
     //e.ObjectInstance = new PubsService.Authors().UseDefaultCredentials = true;
 }
开发者ID:robbytarigan,项目名称:EtCeteraBoilerPlate,代码行数:4,代码来源:Default.aspx.cs


示例18: CommentsDataSource_ObjectCreating

 protected void CommentsDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
 {
     e.ObjectInstance = new CommentsResult(_gallery);
 }
开发者ID:kohku,项目名称:codefactory,代码行数:4,代码来源:ProjectWizard.aspx.cs


示例19: ObjectDataSource1_ObjectCreating

 protected void ObjectDataSource1_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
 {
     e.ObjectInstance = Interaction.LoggedInUser;
 }
开发者ID:andrewchen5678,项目名称:airline_reservation,代码行数:4,代码来源:searchandbook.aspx.cs


示例20: UsersDataSource_ObjectCreating

 protected void UsersDataSource_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
 {
     e.ObjectInstance = new ProjectUsersResult(_gallery);
 }
开发者ID:kohku,项目名称:codefactory,代码行数:4,代码来源:ProjectWizard.aspx.cs



注:本文中的ObjectDataSourceEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ObjectDataSourceMethodEventArgs类代码示例发布时间:2022-05-24
下一篇:
C# ObjectData类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap