Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DataTable dt = new DataTable();
            dt = all.showpagecontentP("address");
            if (dt.Rows.Count > 0)
            {
                lbladdress.Text = dt.Rows[0]["content"].ToString();
                //lbladdress1.Text = dt.Rows[0]["content"].ToString();
                lblphone.Text  = dt.Rows[0]["heading1"].ToString();
                lblphone1.Text = dt.Rows[0]["heading1"].ToString();
                lblemail.Text  = dt.Rows[0]["heading2"].ToString();
                lblemail1.Text = dt.Rows[0]["heading2"].ToString();
            }


            rpterheadrlogo.DataSource = all.showpagecontentP("headerlogo");
            rpterheadrlogo.DataBind();


            rptfootrlogo.DataSource = all.showpagecontentP("footerlogo");
            rptfootrlogo.DataBind();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            dt = all.showpagecontentP("homecontent");
            if (dt.Rows.Count > 0)
            {
                //lblwhoamiHead1.Text = dt.Rows[0]["heading1"].ToString();
                //lblwhoamiHead2.Text = dt.Rows[0]["heading2"].ToString();
                //lblwhoamidesc.Text = dt.Rows[0]["content"].ToString();
                //lblabouthome.Text = dt.Rows[0]["content"].ToString();
                lblhd1.Text = dt.Rows[0]["heading1"].ToString();
                lblhd2.Text = dt.Rows[0]["heading2"].ToString();
                lblhd3.Text = dt.Rows[0]["content"].ToString();
            }



            rptfeatures.DataSource = bind_features();
            rptfeatures.DataBind();

            Rptabotsrvc.DataSource = all.aboutservices();
            Rptabotsrvc.DataBind();

            rptrteam.DataSource = all.Team();
            rptrteam.DataBind();
            Rpttesti.DataSource = all.Testimonial();
            Rpttesti.DataBind();
            rptrprtnt.DataSource = all.prtner();
            rptrprtnt.DataBind();

            RptImage.DataSource = all.showpagecontentP("homecontentimg");
            RptImage.DataBind();
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable dt = new DataTable();
         dt = all.showpagecontentP("address");
         if (dt.Rows.Count > 0)
         {
             txtaddress.Content  = dt.Rows[0]["content"].ToString();
             txtmobileno.Content = dt.Rows[0]["heading1"].ToString();
             txtemailid.Content  = dt.Rows[0]["heading2"].ToString();
         }
     }
 }
Example #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            dt = all.showpagecontentP("AboutUs");
            if (dt.Rows.Count > 0)
            {
            }



            Rpttesti.DataSource = all.Testimonial();
            Rpttesti.DataBind();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            dt = all.showpagecontentP("AboutUs");
            if (dt.Rows.Count > 0)
            {
            }



            rptrgallery.DataSource = all.gallery();
            rptrgallery.DataBind();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["insurance"] != null)
            {
                Editor1.Content = all.showpagecontent("general");

                Image1.ImageUrl = all.showpagecontent("AboutUsImage");

                dt = all.showpagecontentP("general");
                if (dt.Rows.Count > 0)
                {
                    txtheading1.Text = dt.Rows[0]["heading1"].ToString();
                    txtheading2.Text = dt.Rows[0]["heading2"].ToString();
                }
            }
            else
            {
                Response.Redirect("../login/Default.aspx");
            }
        }
    }