/// <summary>
 /// Method that called on Cancel Button click Event
 /// </summary>
 /// <param name="sender">Event Source</param>
 /// <param name="e">Event Data</param>
 protected void ButtonCancel_Click(object sender, EventArgs e)
 {
     //Response.Redirect("ManageMasterData.aspx");
     PanelManageData.Visible = false;
     DispalyMasterData();
     DropDownListMasterList.Focus();
 }
 /// <summary>
 /// Gets the Master Data Mapping List
 /// </summary>
 private void GetMasterDataMappingList()
 {
     DropDownListMasterList.DataSource     = DataProvider.GetMasterDataMappingList().Tables[0];
     DropDownListMasterList.DataValueField = "MappedData";
     DropDownListMasterList.DataTextField  = "MSTRDATA_NAME";
     DropDownListMasterList.DataBind();
 }
        /// <summary>
        /// Method that called on Page Load Event
        /// </summary>
        /// <param name="sender">Event Source</param>
        /// <param name="e">Event Data</param>
        protected void Page_Load(object sender, EventArgs e)
        {
            DataProvider.AuthorizeUser();
            MasterPage masterPage = this.Page.Master;
            Header     headerPage = (Header)masterPage;

            headerPage.DisplayDataFromMasterPage(Session["UserName"].ToString());
            //Session["EnableProductSelection"] = false;
            //Session["AddAllOption"] = "As Selected";
            headerPage.DisplayProductSelectionControl(false);
            GetMasterPage().FindControl("PanelActionMessage").Visible = false;

            if (!Page.IsPostBack)
            {
                GetMasterDataMappingList();
                DispalyMasterData();
                DropDownListMasterList.Focus();
            }
        }
 /// <summary>
 /// Method that called on Lookup DropdownList control is changed
 /// </summary>
 /// <param name="sender">Event Source</param>
 /// <param name="e">Event Data</param>
 protected void DropDownListMasterList_SelectedIndexChanged(object sender, EventArgs e)
 {
     PanelManageData.Visible = false;
     DispalyMasterData();
     DropDownListMasterList.Focus();
 }