예제 #1
0
        public StatusType Status;                               // To know the Current Status

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                // User Name List
                ShreeLibrary infoProc = new ShreeLibrary();
                ddlRoles.DataTextField  = "RoleName";
                ddlRoles.DataValueField = "RoleId";
                ddlRoles.DataSource     = infoProc.GetRoleId();
                ddlRoles.DataBind();
                ddlRoles.Items.Insert(0, "Select User Role");

                // Project Name List
                ddlProjects.DataTextField  = "ProjectName";
                ddlProjects.DataValueField = "ProjectId";
                ddlProjects.DataSource     = infoProc.GetProjectId();
                ddlProjects.DataBind();
                ddlProjects.Items.Insert(0, "Select Project Name");

                // Buttons Visible / Disabled
                btnInsert.Visible = true;
                btnUpdate.Visible = true;
                btnDelete.Visible = true;
            }
        }
예제 #2
0
        public StatusType Status;                       // To know the Current Status

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                // User Name List
                ShreeLibrary shreeProc = new ShreeLibrary();

                // Buttons Visible / Disabled
                btnRoleSave.Visible = true;
                btnUpdate.Visible   = true;
                btnDelete.Visible   = true;
            }
        }
예제 #3
0
        //public string Message = string.Empty;           // To store the Error or Message
        //object Unknown = Type.Missing;                   // For passing Empty values
        //public enum StatusType { SUCCESS, FAILED };     // To Specify Success or Failure Types
        //public StatusType Status;                       // To know the Current Status

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                // Client Role Selection
                ShreeLibrary infoProc = new ShreeLibrary();
                //ddlUserRole.DataTextField = "EmailAddress";
                //ddlUserRole.DataValueField = "UserId";
                //ddlUserRole.DataSource = infoProc.GetUserId();
                //ddlUserRole.DataBind();
                //ddlUserRole.Items.Insert(0, "Select User");
            }
        }