⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 employeedetailscs.ascx.cs

📁 Telerik是很大的第三方软件制造商
💻 CS
字号:
using System;
using System.Data;
using System.Collections;
using Telerik.WebControls;

namespace Telerik.GridExamplesCSharp.DataEditing.UserControlAlternative.EmployeeDetails
{
	public class EmployeeDetails : System.Web.UI.UserControl
	{
		protected System.Web.UI.WebControls.TextBox TextBox6;
		protected System.Web.UI.WebControls.TextBox TextBox2;
		protected System.Web.UI.WebControls.TextBox TextBox3;
		protected System.Web.UI.WebControls.TextBox Textbox5;
		protected System.Web.UI.WebControls.TextBox TextBox4;
		protected System.Web.UI.WebControls.Button btnCancel;
		protected System.Web.UI.WebControls.Button btnUpdate;
		protected System.Web.UI.WebControls.TextBox TextBox7;
		protected System.Web.UI.WebControls.TextBox TextBox8;
		protected System.Web.UI.WebControls.TextBox TextBox9;
		protected System.Web.UI.WebControls.TextBox TextBox10;
		protected System.Web.UI.WebControls.TextBox TextBox11;
		protected System.Web.UI.WebControls.DropDownList ddlTOC;
		protected System.Web.UI.WebControls.TextBox TextBox1;

		private void Page_Load(object sender, System.EventArgs e)
		{
			// Put user code to initialize the page here
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		///		Required method for Designer support - do not modify
		///		the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.Load += new System.EventHandler(this.Page_Load);
			this.DataBinding += new System.EventHandler(this.EmployeeDetails_DataBinding);

		}
		#endregion

		private void EmployeeDetails_DataBinding(object sender, System.EventArgs e)
		{
			ArrayList tocs = new ArrayList( new string[] { "Dr.", "Mr.", "Mrs.", "Ms." } );

			ddlTOC.DataSource = tocs;
			ddlTOC.DataBind();

			object dataItem = ((GridEditableItem)this.Parent.BindingContainer).DataItem;
			DataRowView dataRowView = dataItem as DataRowView;

			ddlTOC.SelectedIndex = tocs.IndexOf( (string)dataRowView["TitleOfCourtesy"] );
			ddlTOC.DataSource = null;
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -