protected void Page_Load(object sender, EventArgs e) { UserName = Session["UserName"].ToString(); Id = Guid.Parse(Session["UserId"].ToString()); IdUserName.Text = UserName; IdUserId.Text = Id.ToString(); //Session["ProjectIDC"]= ElList = dLProject.SelectAllProject(ObjConetion.connectionstring); DropDownListProjectName.DataSource = ElList; DropDownListProjectName.DataTextField = "Name"; DropDownListProjectName.DataValueField = "Id"; DropDownListProjectName.DataBind(); DropDownListProjectName.Items.Insert(0, new ListItem("--Select Project Name--", "0")); }
protected void Page_Load(object sender, EventArgs e) { UserName = Session["UserName"].ToString(); Id = Guid.Parse(Session["UserId"].ToString()); IdUserName.Text = UserName; IdUserId.Text = Id.ToString(); ProjectList = dLProject.SelectAllProject(ObjConetion.connectionstring); CustomerList = dLCustomer.SelectAllCustomer(ObjConetion.connectionstring); if (!IsPostBack) { DropDownListProjectName.DataSource = ProjectList; DropDownListProjectName.DataTextField = "Name"; DropDownListProjectName.DataValueField = "Id"; DropDownListProjectName.DataBind(); DropDownListProjectName.Items.Insert(0, new ListItem("--Select Project Name--", "0")); //DropDownListCustomerName.DataSource = CustomerList; //DropDownListCustomerName.DataTextField = "Name"; //DropDownListCustomerName.DataValueField = "Id"; //DropDownListCustomerName.DataBind(); DropDownListCustomerName.Items.Insert(0, new ListItem("--Select CustomerName Name--", "00000000-0000-0000-0000-000000000000")); } }
protected void ViewPorjectData() { ElList = dLProject.SelectAllProject(ObjConetion.connectionstring); }