protected void Submit_OnClick(object sender, EventArgs e)
        {
            //fromdate = DateTime.Parse(txtFromDate.SelectedDate.ToString());

            if (ddlAssetGroupName1.SelectedValue == "WL")
            {
                DataSet ds = onlineOrderBackOfficeBo.GetWLNotificationMessageDetails(DropDownList3.SelectedValue, Convert.ToDateTime(txtFromDate.SelectedDate), Convert.ToDateTime(txtToDate.SelectedDate), adviserVo.advisorId);
                if (ds.Tables[0].Rows.Count > 0)
                {
                    if (Cache["WLMessageDetails" + userVo.UserId.ToString()] == null)
                    {
                        Cache.Insert("WLMessageDetails" + userVo.UserId.ToString(), ds.Tables[0]);
                    }
                    else
                    {
                        Cache.Remove("WLMessageDetails" + userVo.UserId.ToString());
                        Cache.Insert("WLMessageDetails" + userVo.UserId.ToString(), ds.Tables[0]);
                    }
                    pnlWelcomeLetter.Visible   = true;
                    Panel1.Visible             = false;
                    trNoRcrdFound.Visible      = false;
                    rgWelcomeLetter.DataSource = ds;
                    rgWelcomeLetter.DataBind();
                }
                else
                {
                    trNoRcrdFound.Visible    = true;
                    pnlWelcomeLetter.Visible = false;
                    Panel1.Visible           = false;
                }
            }

            //fromdate = DateTime.Parse(txtFromDate.SelectedDate.ToString());
            else
            {
                DataSet ds = onlineOrderBackOfficeBo.GetNotificationMessageDetails(Convert.ToInt32(DropDownList2.SelectedValue), DropDownList3.SelectedValue, Convert.ToDateTime(txtFromDate.SelectedDate), Convert.ToDateTime(txtToDate.SelectedDate));
                if (ds.Tables[0].Rows.Count > 0)
                {
                    if (Cache["MessageDetails" + userVo.UserId.ToString()] == null)
                    {
                        Cache.Insert("MessageDetails" + userVo.UserId.ToString(), ds.Tables[0]);
                    }
                    else
                    {
                        Cache.Remove("MessageDetails" + userVo.UserId.ToString());
                        Cache.Insert("MessageDetails" + userVo.UserId.ToString(), ds.Tables[0]);
                    }
                    Panel1.Visible        = true;
                    trNoRcrdFound.Visible = false;

                    pnlWelcomeLetter.Visible = false;
                    RadGrid3.DataSource      = ds;
                    RadGrid3.DataBind();
                }
                else
                {
                    trNoRcrdFound.Visible = true;

                    Panel1.Visible           = false;
                    pnlWelcomeLetter.Visible = false;
                }
            }
        }