Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
        if (!String.IsNullOrEmpty(user.Username))
        {
            check = objBusinessLogic.IsExistMrNo(user.Username.Trim());
        }

        if (check == false && user.Username != "host")
        {
            divContent.Visible  = false;
            plcDivError.Visible = true;
        }
        else
        {
            divContent.Visible  = true;
            plcDivError.Visible = false;

            txtdatetime.MinDate = DateTime.Today;
            if (!IsPostBack)
            {
                bindDoctor();
            }
            bindList();
        }
    }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
     if (Request.RawUrl.Contains("Patient-Facilities"))
     {
         h3header.InnerText = "Patient Facilities";
         BindPageDetail(158);
     }
     else if (Request.RawUrl.Contains("feedback"))
     {
         h3header.InnerText = "Feedback";
         BindPageDetail(121);
     }
     else if (Request.RawUrl.Contains("complaint"))
     {
         h3header.InnerText = "Complaint";
         BindPageDetail(131);
     }
     else if (Request.RawUrl.Contains("Quick-Inquiry"))
     {
         h3header.InnerText = "Quick Inquiry";
         BindPageDetail(142);
     }
     else if (Request.RawUrl.Contains("patients"))
     {
         h3header.InnerText = "Patients";
         BindPageDetail(157);
     }
 }
Exemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string rawUrl = Request.RawUrl.ToLower();

        contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));

        XmlDocument xmldoc = new XmlDocument();

        xmldoc.Load(Server.MapPath("~/LoadControl.xml"));
        XmlNode node = xmldoc.SelectSingleNode("/Data/add[@key='" + Request.RawUrl.ToLower() + "']");

        contentpane.Style.Add("display", "none");
        if (node == null)
        {
            node = xmldoc.SelectSingleNode("/Data/add[@startswith='" + rawUrl.Split('/')[1] + "']");
            if (node.Attributes["value"].Value != string.Empty)
            {
                divcontentpane.Controls.Add(LoadControl(node.Attributes["value"].Value));
            }
            BindPageDetail(TabController.CurrentPage.TabID);
            h3header.InnerText    = node.Attributes["Title"].Value;
            SubRootSpan.InnerText = node.Attributes["Title"].Value;
        }
        else
        {
            if (node.Attributes["value"].Value != string.Empty)
            {
                divcontentpane.Controls.Add(LoadControl(node.Attributes["value"].Value));
            }
            BindPageDetail(TabController.CurrentPage.TabID);
            h3header.InnerText    = node.Attributes["Title"].Value;
            SubRootSpan.InnerText = node.Attributes["Title"].Value;
        }
    }
Exemplo n.º 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
        if (!IsPostBack)
        {
            BindPageDetail(132);
            BindSpecialties(0);
            if (Request.RawUrl.ToLower().Contains("/patients/patient-facilities"))
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "alert1", "openSISPanel('Patient');", true);

                MainRoot.InnerText  = "Patient Facilities";
                rootbreadcrumb.HRef = "/patients/patient-facilities";
            }
            else if (Request.RawUrl.ToLower().Contains("/specialties/speciality-clinic"))
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "alert1", "openSISPanel('Specialty');", true);

                MainRoot.InnerText  = "Specialty Clinics";
                rootbreadcrumb.HRef = "/specialties/speciality-clinic";
            }
            else if (Request.RawUrl.Contains("health-check-up"))
            {
                h3header.InnerHtml = "Health CheckUp";
                BindPageDetail(166);
                SubRootSpan.InnerText     = "Health Checkup";
                MainRoot.InnerText        = "Specialties";
                rootbreadcrumb.HRef       = "/specialties";
                Subrootbreadcrumb.Visible = true;
            }
        }
    }
Exemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
     if (Request.RawUrl.Contains("specialitywise-opd"))
     {
         BindPageDetail(176);
         BindSpecialityWiseOpd();
     }
 }
Exemplo n.º 6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));

        if (Request.RawUrl.ToLower() == "/diagnosticsappointment" || Request.RawUrl.ToLower() == "/diagnosticsappointment.aspx")
        {
            ContentPane.Controls.Add(LoadControl("~/JSControls/MiddleContent/DiagnosticsAppointment.ascx"));
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
     if (Request.RawUrl.ToLower().Contains("doctorwise-opd") || Request.RawUrl.ToLower().Contains("/specialties/doctors-availability"))
     {
         BindPageDetail(178);
         BindDoctorOpd();
     }
 }
Exemplo n.º 8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
     if (!IsPostBack)
     {
         //FillCapctha();
         BindPageDetail(121);
         h3header.InnerHtml = "Estimate Request";
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
        if (Request.RawUrl.Contains("research-paper"))
        {
            h3header.InnerHtml = "Research Papers";
            BindResearchPapersPageDetail();

            SubRootSpan.InnerText = "Research Paper";
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
     if (!IsPostBack)
     {
         if (Request.RawUrl.Contains("management"))
         {
             BindPageBanner(123);
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     //if (!IsPostBack)
     //{
     //BindPageDetail(133);
     contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
     if (Request.QueryString["SID"] != null)
     {
         BindSpecialties(Convert.ToInt32(Request.QueryString["SID"]));
     }
     //}
 }
Exemplo n.º 12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
         if (Request.QueryString["DI"] != null)
         {
             objDAEntities.DoctorId    = Convert.ToInt32(Request.QueryString["DI"]);
             objDAEntities.SpecialtyId = Convert.ToInt32(Request.QueryString["SI"]);
             BindPageDetail(objDAEntities.DoctorId);
         }
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
        ds                       = (DataSet)objBusinessLogic.GetActiveSpecialityClinicOPD();
        dsopdDoctors             = (DataSet)objBusinessLogic.GetSpecialityClinicOPDDoctors();
        rptSpeciality.DataSource = ds;
        rptSpeciality.DataBind();

        rptRightSpecialityClinic.DataSource = ds;
        rptRightSpecialityClinic.DataBind();
        BindPageDetail(177);
        Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "hidespeciality('" + CommonFn.RemoveBadCharForFolder(ds.Tables[0].Rows[0]["SpecialityClinicOPD"].ToString()) + "');", true);
    }
Exemplo n.º 14
0
 protected void Page_Load(object sender, EventArgs e)
 {
     contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
     if (!IsPostBack)
     {
         //FillCapctha();
         BindPageDetail(121);
         h3header.InnerHtml = "Feedback Form";
         if (Request.QueryString["name"] != null && Request.QueryString["email"] != null)
         {
             txtName.Text  = Convert.ToString(Request.QueryString["name"]);
             txtEmail.Text = Convert.ToString(Request.QueryString["email"]);
         }
     }
 }
Exemplo n.º 15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
        //string currentUrl = Request.RawUrl;

        //if (!currentUrl.Contains("home"))
        //{
        //    //FooterSection.Visible = false;
        //}


        //if (!Page.IsPostBack)
        //{
        //    BindSpecialty();
        //}
    }
    public void BuildPages()
    {
        PagesPlaceHolder.Controls.Clear();
        //If pages are less than 25 show all page numbers
        if (CommonFn.IsMobileDevice())
        {
            Linkcount = 3;
        }
        if (Pages < Linkcount)
        {
            for (int i = 1; i <= Pages; i++)
            {
                CreatePageLink(i);
            }
        }
        //show only 25 page numbers if the total number of pages is more than 25
        else
        {
            int max = 4;

            if (CurrentPage >= 2)
            {
                max = CurrentPage + 2;
            }

            if (max > Pages)
            {
                max = Pages;
            }

            int min = max - 3;
            if (min < 1)
            {
                min = 1;
            }

            for (int i = min; i <= max; i++)
            {
                CreatePageLink(i);
            }
        }

        AdjustLayout();
    }
Exemplo n.º 17
0
    protected void Page_Load(object sender, EventArgs e)
    {
        txtdob.MaxDate = DateTime.Now;
        contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
        if (Request.RawUrl.Contains("fix-an-appointment"))
        {
            BindPageBanner(120);
        }
        if (Request.QueryString["DI"] != null && Convert.ToInt32(Request.QueryString["DI"]) > 0)
        {
            objDAEntities.DoctorId = Convert.ToInt32(Request.QueryString["DI"]);

            //FillCapctha();
            if (!IsPostBack)
            {
                BindDetails();
                //bindDoctorSpeciality(objDAEntities.DoctorId);
                int SessionSpecialityId = 0;
                int.TryParse(Convert.ToString(Session["SpecialityId"]), out SessionSpecialityId);
                if (SessionSpecialityId > 0)
                {
                    drpSpecialty.SelectedValue = SessionSpecialityId.ToString();
                    Session["SpecialityId"]    = null;
                }
                GetscheduleDays();

                if (Session["AppointmentDay"] != null)
                {
                    ddlAppointmentDay.SelectedValue = Convert.ToString(Session["AppointmentDay"]);
                    Session["AppointmentDay"]       = null;
                    GetDates();
                }
            }
            divEmpty.Visible      = false;
            divDoctorInfo.Visible = true;
        }
        else
        {
            divEmpty.Visible      = true;
            divDoctorInfo.Visible = false;
        }

        GetUserInfo();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));

        SubRootSpan.InnerText = "Thank you";
        if (Request.QueryString["type"] == "feedback")
        {
            h3Message.InnerText = "Thank you for your feedback";
        }
        else if (Request.QueryString["type"] == "complaint")
        {
            h3Message.InnerText = "We have received your complain !!!";
        }
        else if (Request.QueryString["type"] == "quick-inquiry")
        {
            h3Message.InnerText = "We have received your inquiry, you should receive a reply or a call shortly!!!";
        }
        else if (Request.QueryString["type"] == "estimate-request")
        {
            h3Message.InnerText = "Thank you for your request, you should receive a reply or a call shortly!!!";
        }
    }
Exemplo n.º 19
0
    protected void Page_Load(object sender, EventArgs e)
    {
        contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
        if (Request.RawUrl.ToLower().Contains("scope-of-services"))
        {
            //contentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/ScopeOfServices.ascx"));
            BindPageDetail(116);
            h3header.InnerText    = "Scope of Services";
            SubRootSpan.InnerText = "Scope of Services";
            imgbanner.Visible     = false;
        }
        else if (Request.RawUrl.ToLower().Contains("vision-and-mission"))
        {
            h3header.InnerText = "Vision and Mission";
            BindPageDetail(118);
            SubRootSpan.InnerText = "Vision and Mission";
        }
        else if (Request.RawUrl.ToLower().Contains("from-the-chairmans-desk"))
        {
            BindPageDetail(117);
            //h3header.InnerText = "From The Chairman’s Desk";
            //h3header.Attributes.Add("class", "desk");
            //h3header.InnerHtml = "From The <span class='desk1' >Chairman’s Desk</span>";
            h3header.InnerHtml    = "From The Chairman’s Desk";
            SubRootSpan.InnerText = "From The Chairman’s Desk";
        }
        else if (Request.RawUrl.ToLower().Contains("photo-gallery"))
        {
            leftNav.Visible = false;
            BindPageDetail(135);
            h3header.InnerText = "Photo Gallery";
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/InnerPhotoGallery.ascx"));
            SubRootSpan.InnerText = "Photo Gallery";
        }
        else if (Request.RawUrl.ToLower().Contains("video-gallery"))
        {
            leftNav.Visible    = false;
            h3header.InnerText = "Video Gallery";
            BindPageDetail(136);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/InnerVideoGallery.ascx"));
            SubRootSpan.InnerText = "Video Gallery";
        }
        else if (Request.RawUrl.ToLower().Contains("/corporate-profile/management-team"))
        {
            h3header.InnerText = "Management";
            BindPageDetail(123);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/InnerManagement.ascx"));
            SubRootSpan.InnerText = "Management";
        }
        else if (Request.RawUrl.ToLower().Contains("/management"))
        {
            leftNav.Visible    = false;
            h3header.InnerText = "Management Details";
            BindPageDetail(162);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/ManagementDetails.ascx"));
            SubRootSpan.InnerText = "Management Details";
        }
        else if (Request.RawUrl.ToLower().Contains("/corporate-profile/jaslok-news"))
        {
            //BindPageDetail(124);
            BindPageDetail(172);
            h3header.InnerText = "Jaslok in News";
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/NewsListing.ascx"));
            SubRootSpan.InnerText = "Jaslok in News";
        }
        else if (Request.RawUrl.ToLower().Contains("press"))
        {
            BindPageDetail(168);
            h3header.InnerText = "Jaslok in News";
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/JaslokNewsDetails.ascx"));
            SubRootSpan.InnerText = "Jaslok in News";
        }
        else if (Request.RawUrl.ToLower().Contains("/corporate-profile/trustees"))
        {
            h3header.InnerText = "Trustees";
            BindPageDetail(125);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/InnerTrustees.ascx"));
            SubRootSpan.InnerText = "Trustees";
        }
        else if (Request.RawUrl.ToLower().Contains("/corporate-profile/certifications"))
        {
            BindPageDetail(126);
            h3header.InnerText    = "Certifications";
            SubRootSpan.InnerText = "Certifications";
        }

        else if (Request.RawUrl.ToLower().Contains("/corporate-profile/jaslok-news"))
        {
            //BindPageDetail(124);
            BindPageDetail(172);
            h3header.InnerText = "Jaslok in News";
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/NewsListing.ascx"));
            SubRootSpan.InnerText = "Jaslok in News";
        }
        else if (Request.RawUrl.ToLower().Contains("/trustees"))
        {
            leftNav.Visible    = false;
            h3header.InnerText = "Trustees Details";
            BindPageDetail(179);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/ManagementDetails.ascx"));
            SubRootSpan.InnerText = "Trustees Details";
        }


        else if (Request.RawUrl.ToLower().Contains("mediaroom"))
        {
            BindPageDetail(127);
            h3header.InnerText = "Media Room";
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/InnerMediaRoom.ascx"));
            SubRootSpan.InnerText = "Media Room";
        }
        else if (Request.RawUrl.ToLower().Contains("tenders"))
        {
            BindPageDetail(128);
            h3header.InnerText = "Tenders";
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/InnerTenders.ascx"));
            SubRootSpan.InnerText = "Tenders";
        }
        else if (Request.RawUrl.ToLower().Contains("quality-corner"))
        {
            BindPageDetail(129);
            h3header.InnerText    = "Quality Corner";
            SubRootSpan.InnerText = "Quality Corner";
        }
        else if (Request.RawUrl.ToLower().Contains("contact-us"))
        {
            imgbanner.Visible  = false;
            leftNav.Visible    = false;
            h3header.InnerText = "Contact Us";
            BindPageDetail(137);
            SubRootSpan.InnerText = "Contact Us";

            //Page.ClientScript.RegisterStartupScript(this.GetType(), "myScript", "SetWidth();", true);
            //divContactus.Style.Add("width","38%");
            divMap.Visible = true;
            divMap.Controls.Add(LoadControl("~/JSControls/Common/Contactus.ascx"));
        }
        else if (Request.RawUrl.ToLower().Contains("frequently-asked-questions"))
        {
            BindPageDetail(130);
            h3header.InnerText    = "FAQs";
            SubRootSpan.InnerText = "FAQ";
            // divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/InnerTenders.ascx"));
        }
        else if (Request.RawUrl.ToLower().Contains("jasloktimes"))
        {
            h3header.InnerText = "Jaslok Times";
            BindPageDetail(139);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/ViewJaslokTimes.ascx"));
            // SubRootSpan.InnerText = "Jaslok Times";
            PageBreadCub.Visible = false;
        }
        else if (Request.RawUrl.ToLower().Contains("seminars"))
        {
            h3header.InnerText = "Seminars";
            BindPageDetail(140);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/SemminarListing.ascx"));
            SubRootSpan.InnerText = "Seminars";
        }
        else if (Request.RawUrl.ToLower().Contains("applyseminar"))
        {
            h3header.InnerText = "Apply Seminar";
            BindPageDetail(141);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/ApplySeminar.ascx"));
            SubRootSpan.InnerText = "Apply Seminar";
        }
        else if (Request.RawUrl.ToLower().Contains("health-check-up"))
        {
            h3header.InnerHtml = "Health Checkup";
            BindPageDetail(166);
            SubRootSpan.InnerText = "Health Checkup";
            MainRoot.InnerText    = "Specialties";
            rootbreadcrumb.HRef   = "/specialties";
            //ulSpeciality.Visible = true;
            //ulCorporate.Visible = false;
        }
        else if (Request.RawUrl.ToLower().Contains("/technological-milestone"))
        {
            h3header.InnerText = "Technological Milestone";
            BindPageDetail(182);
            SubRootSpan.InnerText = "Technological Milestone";
        }
        else if (Request.RawUrl.ToLower().Contains("hospital-facilities"))
        {
            h3header.InnerText = "Hospital Facilities";
            BindPageDetail(147);
            SubRootSpan.InnerText = "Hospital Facilities";
            imgbanner.Visible     = false;
        }
        else if (Request.RawUrl.ToLower().Contains("corporate-profile"))
        {
            // h3header.InnerText = "Corporate Profile";
            //h3header.Attributes.Add("class", "desk");
            h3header.InnerHtml = "Corporate Profile";
            BindPageDetail(159);
            Subrootbreadcrumb.Visible = false;
            rootbreadcrumb.HRef       = "javascript:void(0);";
        }
        else if (Request.RawUrl.ToLower().Contains("about-us"))
        {
            leftNav.Visible    = false;
            h3header.InnerText = "About Us";
            BindPageDetail(153);
            SubRootSpan.InnerText = "About Us";
        }
        else if (Request.RawUrl.ToLower().Contains("career"))
        {
            leftNav.Visible    = false;
            h3header.InnerText = "Career";
            BindPageDetail(161);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/JaslokCareer.ascx"));
            SubRootSpan.InnerText = "Career";
        }
        else if (Request.RawUrl.ToLower().Contains("applytojaslok"))
        {
            leftNav.Visible    = false;
            h3header.InnerText = "Apply to Jaslok";
            BindPageDetail(161);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/ApplyJaslokCareer.ascx"));
            SubRootSpan.InnerText = "Apply to Jaslok";
        }

        else if (Request.RawUrl.ToLower().Contains("sitemap"))
        {
            leftNav.Visible    = false;
            h3header.InnerHtml = "Sitemap";
            BindPageDetail(183);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/Sitemap.ascx"));
            Subrootbreadcrumb.Visible = false;
            rootbreadcrumb.HRef       = "javascript:void(0);";
        }
        else if (Request.RawUrl.ToLower().Contains("privacy-policy"))
        {
            // h3header.InnerText = "Corporate Profile";
            //h3header.Attributes.Add("class", "desk");
            h3header.InnerHtml = "Privacy Policy";
            BindPageDetail(185);
            Subrootbreadcrumb.Visible = false;
            rootbreadcrumb.HRef       = "javascript:void(0);";
        }
        else if (Request.RawUrl.ToLower().Contains("/surgery-booking"))
        {
            //h3header.InnerText = "Corporate Profile";
            // h3header.Attributes.Add("class", "desk");
            leftNav.Visible    = false;
            h3header.InnerHtml = "Surgery Grade Wise";
            BindPageDetail(191);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/SurgeryBooking.ascx"));
            SubRootSpan.InnerText = "Surgery Booking";
        }

        else if (Request.RawUrl.ToLower().Contains("/outstandingbillpayment"))
        {
            leftNav.Visible    = false;
            h3header.InnerHtml = "Outstanding Bill Payment";
            BindPageDetail(192);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/OutStandingBillPayment.ascx"));
            SubRootSpan.InnerText = "Outstanding Bill Payment";
        }
    }
Exemplo n.º 20
0
    protected void Page_Load(object sender, EventArgs e)
    {
        contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
        if (Request.RawUrl.Contains("seminars"))
        {
            h3header.InnerText = "Seminars";
            BindPageDetail(140);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/SemminarListing.ascx"));

            SubRootSpan.InnerText = "Seminars";
        }
        else if (Request.RawUrl.Contains("educational-programs"))
        {
            h3header.InnerText = "Educational Programs";
            BindPageDetail(160);

            SubRootSpan.InnerText = "Educational Programs";
        }
        else if (Request.RawUrl.Contains("applyseminar"))
        {
            h3header.InnerText = "Apply Seminar";
            BindPageDetail(141);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/ApplySeminar.ascx"));

            SubRootSpan.InnerText = "Apply Seminar";
        }
        else if (Request.RawUrl.Contains("health-tips"))
        {
            h3header.InnerHtml = "Health Tips";
            BindPageDetail(144);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/HealthTips.ascx"));

            SubRootSpan.InnerText = "Health Tips";
        }
        else if (Request.RawUrl.Contains("research-paper"))
        {
            h3header.InnerHtml = "Research Papers";
            BindPageDetail(186);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/ResearchPaper.ascx"));

            SubRootSpan.InnerText = "Research Paper";
        }
        else if (Request.RawUrl.Contains("healthtip"))
        {
            h3header.InnerText = "Health Tips Details";
            BindPageDetail(146);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/HealthTipsDetails.ascx"));

            SubRootSpan.InnerText = "Health Tips Details";
        }
        else if (Request.RawUrl.Contains("nursing-program"))
        {
            h3header.InnerHtml = "Nursing Program";
            BindPageDetail(152);

            SubRootSpan.InnerText = "Nursing Program";
        }
        else if (Request.RawUrl.Contains("advance-courses"))
        {
            h3header.InnerHtml = "Advance Courses";
            BindPageDetail(151);

            SubRootSpan.InnerText = "Advance Courses";
        }
        else if (Request.RawUrl.Contains("internship"))
        {
            h3header.InnerText = "Internship";
            BindPageDetail(150);

            SubRootSpan.InnerText = "Internship";
        }
        else if (Request.RawUrl.Contains("fellowship"))
        {
            h3header.InnerText = "Fellowship";
            BindPageDetail(149);

            SubRootSpan.InnerText = "Fellowship";
        }
        else if (Request.RawUrl.Contains("dnb-program"))
        {
            h3header.InnerHtml = "DNB Program";
            BindPageDetail(148);

            SubRootSpan.InnerText = "DNB Program";
        }
        else if (Request.RawUrl.Contains("healthtips"))
        {
            h3header.InnerText = "Health Tips";
            BindPageDetail(144);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/HealthTips.ascx"));

            SubRootSpan.InnerText = "Health Tips";
        }
        else if (Request.RawUrl.Contains("healthdetails"))
        {
            h3header.InnerText = "Health Tips Details";
            BindPageDetail(146);
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/HealthTipsDetails.ascx"));

            SubRootSpan.InnerText = "Health Tips Details";
        }

        //else if (Request.RawUrl.Contains("seminars"))
        //{
        //    h3header.InnerText = "Seminars";
        //    BindPageDetail(140);
        //}
    }
Exemplo n.º 21
0
 protected void Page_Load(object sender, EventArgs e)
 {
     contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
 }
Exemplo n.º 22
0
    protected void Page_Load(object sender, EventArgs e)
    {
        contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
        txtdob.MaxDate = DateTime.Now;

        if (Request.RawUrl == "/consultationappointment/new")
        {
            drpAppointmentType.ClearSelection();
            drpAppointmentType.Items.FindByText("New").Selected = true;
        }
        else if (Request.RawUrl == "/consultationappointment/follow-up")
        {
            drpAppointmentType.ClearSelection();
            drpAppointmentType.Items.FindByText("Follow-Up").Selected = true;
        }
        else
        {
            plcAppointmentType.Visible = true;
            rfvAppointmentType.Enabled = true;
        }

        if (Request.RawUrl.Contains("fix-an-appointment"))
        {
            BindPageBanner(196);
        }

        //FillCapctha();
        if (!IsPostBack)
        {
            BindDoctor();
            GetUserInfo();
        }
        if (ddlDoctorName.SelectedIndex > 0)
        {
            objDAEntities.DoctorId = Convert.ToInt32(ddlDoctorName.SelectedValue);
            if (!IsPostBack)
            {
                BindDetails();
                //bindDoctorSpeciality(objDAEntities.DoctorId);
                int SessionSpecialityId = 0;
                int.TryParse(Convert.ToString(Session["SpecialityId"]), out SessionSpecialityId);
                if (SessionSpecialityId > 0)
                {
                    drpSpecialty.SelectedValue = SessionSpecialityId.ToString();
                    Session["SpecialityId"]    = null;
                }
                GetscheduleDays();

                if (Session["AppointmentDay"] != null)
                {
                    ddlAppointmentDay.SelectedValue = Convert.ToString(Session["AppointmentDay"]);
                    Session["AppointmentDay"]       = null;
                    GetDates();
                }
                divEmpty.Visible      = false;
                divDoctorInfo.Visible = true;
            }
        }


        //else
        //{
        //    divEmpty.Visible = true;
        //    divDoctorInfo.Visible = false;
        //}
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        contentpaneHeader.Controls.Add(LoadControl(CommonFn.IsMobileDevice() ? "~/JSControls/Mobile/MobileHeader.ascx" : "~/JSControls/Common/Header.ascx"));
        if (Request.RawUrl.Contains("/international-patients/hospital-facilities"))
        {
            h3header.InnerHtml = "Hospital Facilities";
            BindPageDetail(147);


            //divCorporate.Visible = false;
            //divInternational.Visible = true;

            MainRoot.InnerText    = "International Patients";
            SubRootSpan.InnerText = "Hospital Facilities";
        }
        else if (Request.RawUrl.Contains("/corporate-profile/hospital-facilities"))
        {
            h3header.InnerHtml = "Hospital- Facilities";
            BindPageDetail(147);
            //divCorporate.Visible = true;
            //divInternational.Visible = false;
            rootbreadcrumb.HRef   = "/corporate-profile";
            MainRoot.InnerText    = "International Patients";
            SubRootSpan.InnerText = "Hospital Facilities";
        }
        //else if (Request.RawUrl.Contains("/hospital-facilities"))
        //{
        //    h3header.InnerHtml = "Hospital- <span class='desk1'>Facilities</span>";
        //    BindPageDetail(147);
        //    divCorporate.Visible = false;
        //    divInternational.Visible = true;
        //}
        else if (Request.RawUrl.Contains("/international-patients/testimonial"))
        {
            BindPageDetail(124);
            h3header.InnerText = "Testimonial";
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/InnerTestimonials.ascx"));
            SubRootSpan.InnerText = "Testimonial";

            SubRootSpan.InnerText = "Testimonial";
            MainRoot.InnerText    = "International Patients";
            rootbreadcrumb.HRef   = "/international-patients";
        }


        else if (Request.RawUrl.Contains("facilities-for-international-patients"))
        {
            h3header.InnerHtml = "Hospital Facilities for International Patients";
            BindPageDetail(154);

            MainRoot.InnerText    = "International Patients";
            SubRootSpan.InnerText = "Hospital Facilities for International Patients";
        }
        else if (Request.RawUrl.Contains("doctors-availability"))
        {
            // contentpane.Visible = false;
            h3header.InnerHtml = "Doctors Availability";
            BindPageDetail(155);

            MainRoot.InnerText    = "International Patients";
            SubRootSpan.InnerText = "Doctors Availability";
        }
        else if (Request.RawUrl.Contains("virtual-tour"))
        {
            //divLeftMenu.Visible = false;
            h3header.InnerHtml    = "Virtual Tour";
            MainRoot.InnerText    = "International Patients";
            SubRootSpan.InnerText = "Virtual Tour";
            BindPageDetail(156);
        }
        else if (Request.RawUrl.Contains("Feedback"))
        {
            h3header.InnerHtml = "Query & Feedback";
            BindPageDetail(121);

            MainRoot.InnerText    = "International Patients";
            SubRootSpan.InnerText = "Query & Feedback";
        }
        //else if (Request.RawUrl.Contains("testimonial"))
        //{
        //    h3header.InnerHtml = "Testimonials";
        //    BindPageDetail(124);
        //}
        else if (Request.RawUrl.Contains("estimate"))
        {
            BindPageDetail(121);
        }
        else if (Request.RawUrl.Contains("international-patients"))
        {
            //h3header.InnerHtml = "International <span class='desk1'>Patients</span>";
            h3header.InnerHtml = "Hospital Facilities for International Patients";
            BindPageDetail(122);
            Subrootbreadcrumb.Visible = false;

            MainRoot.InnerText    = "Hospital Facilities for International Patients";
            SubRootSpan.InnerText = "Query & Feedback";
            rootbreadcrumb.HRef   = "javascript:void(0);";
        }

        //else if (Request.RawUrl.Contains("Estimate request"))
        //{
        //    h3header.InnerText = "Estimate request";
        //    BindPageDetail(122);
        //}
        else if (Request.RawUrl.Contains("testimonial"))
        {
            BindPageDetail(134);
            h3header.InnerText = "Testimonial";
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/TestimonialDetails.ascx"));
            SubRootSpan.InnerText = "Testimonial";
        }
        else if (Request.RawUrl.Contains("/testimonial"))
        {
            BindPageDetail(124);
            h3header.InnerText = "Testimonial";
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/InnerTestimonials.ascx"));
            SubRootSpan.InnerText = "Testimonial";
        }
        else if (Request.RawUrl.Contains("/health-check-up-comprehensive"))
        {
            leftNav.Visible = false;
            BindPageDetail(194);
            h3header.InnerText = "Health Check-up Comprehensive";
            divcontentpane.Controls.Add(LoadControl("~/JSControls/MiddleContent/HealthCheckUpComprehensive.ascx"));
            SubRootSpan.InnerText = "Health Check-up Comprehensive";
        }
    }