当前位置: 首页>>代码示例>>C#>>正文


C# WebControls.SqlDataSourceSelectingEventArgs类代码示例

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


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

示例1: AuditMasterDs_Selecting

 protected void AuditMasterDs_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
 {
     if (AuditTrailType.Text == "")
         e.Cancel = true;
     else
         e.Command.Parameters["@Type"].Value = Convert.ToInt32(AuditTrailType.Text);
 }
开发者ID:safaintegrated,项目名称:asm,代码行数:7,代码来源:AuditTrail_Controller.ascx.cs

示例2: WorkFlowDs_Selecting

 protected void WorkFlowDs_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
 {
     //if (Wf_ProcessId.Text == "")
     //    e.Cancel = true;
     //else
     //    e.Command.Parameters["@PRH_ProcessId_ProcessId"].Value = Wf_ProcessId.Text;
 }
开发者ID:safaintegrated,项目名称:asm,代码行数:7,代码来源:Tab_AliranKerja_Controller.ascx.cs

示例3: ExecuteSelect

		protected internal override IEnumerable ExecuteSelect (
						DataSourceSelectArguments arguments)
		{
			oleCommand = new OleDbCommand (this.SelectCommand, oleConnection);
			SqlDataSourceSelectingEventArgs cmdEventArgs = new SqlDataSourceSelectingEventArgs (oleCommand, arguments);
			OnSelecting (cmdEventArgs);
			IEnumerable enums = null; 
			Exception exception = null;
			OleDbDataReader reader = null;
			try {
				System.IO.File.OpenRead (dataSource.DataFile).Close ();
				oleConnection.Open ();
				reader = (OleDbDataReader)oleCommand.ExecuteReader ();
			
				//enums = reader.GetEnumerator ();
				throw new NotImplementedException("OleDbDataReader doesnt implements GetEnumerator method yet");
			} catch (Exception e) {
				exception = e;
			}
			SqlDataSourceStatusEventArgs statusEventArgs = 
				new SqlDataSourceStatusEventArgs (oleCommand, reader.RecordsAffected, exception);
			OnSelected (statusEventArgs);
			if (exception !=null)
				throw exception;
			return enums;			
		}						
开发者ID:nobled,项目名称:mono,代码行数:26,代码来源:AccessDataSourceView.cs

示例4: AuditHeaderDs_Selecting

 protected void AuditHeaderDs_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
 {
     if (Pid.Text == string.Empty)
         e.Cancel = true;
     else
         e.Command.Parameters["@ProcessId"].Value = Pid.Text;
 }
开发者ID:safaintegrated,项目名称:asm,代码行数:7,代码来源:PegawaiAset_Controller.ascx.cs

示例5: CatDs_Selecting

 protected void CatDs_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
 {
     if (PRI_PurchaseType.SelectedIndex == -1)
         e.Command.Parameters["@PurchaseType"].Value = DBNull.Value;
     else
         e.Command.Parameters["@PurchaseType"].Value = Convert.ToInt32(PRI_PurchaseType.Value);
 }
开发者ID:safaintegrated,项目名称:asm,代码行数:7,代码来源:Tab_ItemDetails_Controller.ascx.cs

示例6: SysGrpDs_Selecting

 protected void SysGrpDs_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
 {
     if (UserGroupId.Text == "")
         e.Command.Parameters["@UserGroupId"].Value = DBNull.Value;
     else
         e.Command.Parameters["@UserGroupId"].Value = Convert.ToInt32(UserGroupId.Text);
 }
开发者ID:safaintegrated,项目名称:asm,代码行数:7,代码来源:KumpulanPengguna_Controller.ascx.cs

示例7: WorkFlowDs_Selecting

 protected void WorkFlowDs_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
 {
     if (AliranKerja_ProcessId.Text == "")
         e.Cancel = true;
     else
         e.Command.Parameters["@LKH_ProcessId"].Value = AliranKerja_ProcessId.Text;
 }
开发者ID:safaintegrated,项目名称:asm,代码行数:7,代码来源:Tab_AliranKerja_Controller.ascx.cs

示例8: AuditHeaderDs_Selecting

 protected void AuditHeaderDs_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
 {
     if (Session["CurrVendorAuditProcessId"] == null)
         e.Cancel = true;
     else
         e.Command.Parameters["@ProcessId"].Value = Session["CurrVendorAuditProcessId"].ToString();
 }
开发者ID:safaintegrated,项目名称:asm,代码行数:7,代码来源:AuditTrail_Controller.ascx.cs

示例9: AuditTrailDetailDs_Selecting

 protected void AuditTrailDetailDs_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
 {
     if (Session["CurrOrgAuditNumber"] == null)
         e.Cancel = true;
     else
         e.Command.Parameters["@ProcessId"].Value = Session["CurrOrgAuditNumber"].ToString();
 }
开发者ID:safaintegrated,项目名称:asm,代码行数:7,代码来源:AuditTrail_Controller.ascx.cs

示例10: GridView1_OnSelecting

 protected void GridView1_OnSelecting(object sender, SqlDataSourceSelectingEventArgs e)
 {
     int id;
     int.TryParse(Request["id"], out id);
     if (id < 1) id=0;
     e.Command.Parameters["@contestId"].Value = id.ToString(CultureInfo.InvariantCulture);
 }
开发者ID:defactointeractif,项目名称:Khaaaantest,代码行数:7,代码来源:Contest.aspx.cs

示例11: WorkFlowDs_Selecting

 protected void WorkFlowDs_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
 {
     if (PEM_WFD_PEMH_RowId.Text == "")
         e.Cancel = true;
     else
         e.Command.Parameters["@PEM_WFD_PEMH_RowId"].Value = Convert.ToInt32(PEM_WFD_PEMH_RowId.Text);
 }
开发者ID:safaintegrated,项目名称:asm,代码行数:7,代码来源:Tab_AliranKerja.ascx.cs

示例12: dbWorkers_Selecting

        protected void dbWorkers_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
        {
            //get user id
            MembershipUser usr = Membership.GetUser();
            Guid uid = (Guid)usr.ProviderUserKey;

            e.Command.Parameters["@UserId"].Value = uid;
        }
开发者ID:Deliv3rat0r,项目名称:SeniorProject,代码行数:8,代码来源:AssignJobs.aspx.cs

示例13: SqlDataSource1_Selecting

 protected void SqlDataSource1_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
 {
     if (!((BasePage)this.Page).UserRole.Equals("Administrator"))
     {
         e.Cancel = true;
         this.GridView1.Visible = false;
     }
 }
开发者ID:shaileshgajula,项目名称:c8a5b00a-1d86-40ff-a172-35d865eeec09,代码行数:8,代码来源:Organisations.aspx.cs

示例14: SliderDs_Selecting

        protected void SliderDs_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
        {
            string UploadLocation = ConfigurationManager.AppSettings["ImageUploadFolder"].ToString();
            string FileFullPath = Path.Combine(Server.MapPath(UploadLocation), string.Empty);

            e.Command.Parameters["@ProcessId"].Value = AK_ProcessId.Text;
            e.Command.Parameters["@PhysicalPath"].Value = ConfigurationManager.AppSettings["ImageUploadFolder"].ToString();
        }
开发者ID:safaintegrated,项目名称:asm,代码行数:8,代码来源:Tab_Aduan.ascx.cs

示例15: ReturnDs_Selecting

        protected void ReturnDs_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
        {
            e.Command.Parameters["@PPD_ProcessId"].Value = RetProcessId.Text;

            if (RetRevision.Text != "")
                e.Command.Parameters["@PPD_Revision"].Value = Convert.ToInt32(RetRevision.Text);
            else
                e.Command.Parameters["@PPD_Revision"].Value = 0;
        }
开发者ID:safaintegrated,项目名称:asm,代码行数:9,代码来源:Tab_Pemulangan.ascx.cs


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