protected void Page_Load(object sender, EventArgs e)
    {
        txtFromDate.Attributes.Add("onchange", "SelectDate();");
        txtToDate.Attributes.Add("onchange", "SelectDate();");
        btnSearch.Attributes.Add("onclick", "return SelectDate();");

        objCommonMIS.EmpId = User.Identity.Name;
        if (!Page.IsPostBack)
        {
            objCommonMIS.GetUserRegion(ddlRegion);
            if (ddlRegion.Items.Count == 2)
            {
                ddlRegion.SelectedIndex = 1;
            }
            objCommonMIS.RegionSno = ddlRegion.SelectedValue;
            objCommonMIS.GetUserBranchs(ddlBranch);
            if (ddlBranch.Items.Count == 2)
            {
                ddlBranch.SelectedIndex   = 1;
                objASCPayMaster.BranchSNo = Convert.ToInt32(ddlBranch.SelectedValue);
            }
            objCommonMIS.BusinessLine_Sno = "2";
            objCommonMIS.GetAllProductDivision(ddlProductDivison); // change in proc : uspSIMSCommonMISFunctions 5 july 13
            ClearControls();
        }
    }