protected void ClassName3_SelectedIndexChanged1(object sender, EventArgs e) { //选择档案 PA_Name.DataSource = WebBLL.Tbl_ProjectArchiveManager.GetTbl_ProjectArchiveParentName(" classname1='" + this.ClassName1.SelectedItem.Text + "' and classname2='" + this.ClassName2.SelectedItem.Text + "' and classname3='" + this.ClassName3.SelectedItem.Text + "'"); PA_Name.DataTextField = "PA_Name"; PA_Name.DataValueField = "ID"; PA_Name.DataBind(); PA_Name.Items.Insert(0, new ListItem("选择档案", "")); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Title = Request.QueryString["limit"]; //设置只读权限 if (Request.QueryString["type"] == "read") { btn_submit.Visible = false; ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "$(function(){$('input').attr('readonly', 'readonly');$('select').attr('disabled', 'true');$('textarea').attr('readonly', 'readonly');});", true); } //项目 ProjectID.DataSource = WebBLL.Tbl_ProjectManager.GetTbl_ProjectAll(); ProjectID.DataTextField = "ProjectName"; ProjectID.DataValueField = "ID"; ProjectID.DataBind(); ProjectID.Items.Insert(0, new ListItem("选择项目", "")); PA_Name.DataSource = WebBLL.Tbl_ProjectArchiveManager.GetTbl_ProjectArchiveAll(); PA_Name.DataTextField = "PA_Name"; PA_Name.DataValueField = "ID"; PA_Name.DataBind(); Bind(); } }