Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     strNavName = "特价线路";
     if (Request["d"] != null && int.TryParse(Request["d"], out d))
     {
         Model.Destination des = DestBll.GetModel(d);
         if (des != null)
         {
             strNavName = des.navName;
         }
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            string strTitle    = "";
            string strTempName = "";

            int.TryParse(Request["nav"], out nav);
            if (Request["od"] != null && int.TryParse(Request["od"], out od))
            {
                if (od > 0)
                {
                    Model.Destination model = DestBll.GetModel(od);
                    if (model != null)
                    {
                        strTempName = model.navName;
                        //strPlace += "<a href=\"?nav=" + nav + "&od=" + od + "\">" +strTempName+ "</a>&gt;";
                        //urlrewrite
                        strPlace += "<a href=\"/linemodel/" + nav + "/" + od + ".html\">" + strTempName + "</a>&gt;";
                        strTitle  = strTempName;
                    }
                }
            }
            if (Request["td"] != null && int.TryParse(Request["td"], out td))
            {
                if (td > 0)
                {
                    Model.Destination model = DestBll.GetModel(td);
                    if (model != null)
                    {
                        strTempName = model.navName;
                        //strPlace += "<a href=\"?nav=" + nav + "&od=" + od + "&td=" + td + "\">" + strTempName + "旅游</a>&gt;";
                        //urlrewrite
                        strPlace += "<a href=\"/linesub/" + nav + "/" + od + "/" + td + ".html\">" + strTempName + "旅游</a>&gt;";
                        if (!strTitle.Equals(""))
                        {
                            strTitle = strTempName + "旅游-" + strTitle;
                        }
                    }
                }
            }
            if (Request["thd"] != null && int.TryParse(Request["thd"], out thd))
            {
                if (thd > 0)
                {
                    Model.Destination model = DestBll.GetModel(thd);
                    if (model != null)
                    {
                        strTempName = model.navName;
                        strPlace   += "<em>" + strTempName + "</em>";
                        if (!strTitle.Equals(""))
                        {
                            strTitle = strTempName + "旅游-" + strTitle;
                        }
                    }
                }
            }
            int.TryParse(Request["c"], out cityId);
            int.TryParse(Request["p"], out proId);
            int.TryParse(Request["d"], out day);
            int.TryParse(Request["Tu"], out isTuijian);
            int.TryParse(Request["Te"], out isTejia);
            int.TryParse(Request["Re"], out isRemai);
            int.TryParse(Request["rq"], out renqi);
            int.TryParse(Request["pr"], out price);
            int.TryParse(Request["page"], out page);
            if (Request["pu"] != null)
            {
                price_up = Request["pu"];
            }
            if (Request["pd"] != null)
            {
                price_down = Request["pd"];
            }
            this.Title = strTitle + "-" + Master.webinfo.WebName;
        }