private void Populate()
    {
        try
        {
            ddListOperation.Items.Clear();
            Sanoy.AddisTower.BE.CommonPageContent[] commonPageContent = Sanoy.AddisTower.DA.CommonPageContent.SelectAll(QueryString);
            Sanoy.AddisTower.BE.CommonPage          commonPage        = Sanoy.AddisTower.DA.CommonPage.Select(int.Parse(QueryString));

            lblUser.Text = Session["UserName"].ToString() + "@ " + commonPage.Title;
            this.Title   = lblCaption.Text = commonPage.Title;
            if (commonPageContent.Length == 0)
            {
                ddListOperation.Items.Insert(0, "-- Create New --");
            }
            else
            {
                //

                ddListOperation.DataTextField  = Sanoy.AddisTower.BE.CommonPageContent.FIELD_Title;
                ddListOperation.DataValueField = Sanoy.AddisTower.BE.CommonPageContent.FIELD_Id;
                ddListOperation.DataSource     = commonPageContent;
                ddListOperation.DataBind();
                ddListOperation.Items.Insert(0, "-- Create New --");
                btnApprove.Text = "Approve";
                btnSave.Text    = "Save";
            }
        }
        catch { }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (Request.QueryString["Id"] == "3")
            {
                panMotorcycle.Visible = true;

                //txtName.Text = Guid.NewGuid().ToString();
            }
            else
            {
                panMotorcycle.Visible = false;
            }

            if (Request.QueryString["Id"] == "4")
            {
                panSparepart.Visible = true;
                //List<DataAccessSearch.SparepartCategory>category  =  BusinessEntitySearch.SparepartCategory.PopulateAllSparepartCategoy();

                // ddlCategory.SelectedItem.Text = category[0].Name.ToString();
            }
            else
            {
                panSparepart.Visible = false;
            }
            if (Request.QueryString["Id"] != null)
            {
                Sanoy.AddisTower.BE.CommonPage commonPage = Sanoy.AddisTower.DA.CommonPage.Select(Convert.ToInt32(Request.QueryString["Id"].ToString()));
                this.Title = litContentTitle.Text = commonPage.Title.ToString();
                Sanoy.AddisTower.BE.CommonPageContent commonPageContent = Sanoy.AddisTower.DA.CommonPageContent.SelectApproved(int.Parse(Request.QueryString["Id"].ToString()));
                litContent.Text = commonPageContent.Content;
            }
        }
        catch { }
    }