예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         VikkiSoft_BLL.City c = new VikkiSoft_BLL.City();
         if (c.LoadDetailInfo(CityID))
         {
             lblName.Text = c.GetColumn("Name" + Utils.LangPrefix).ToString();
             if (!c.IsColumnNull("Content" + Utils.LangPrefix))
             {
                 lblCityContent.Text = c.GetColumn("Content" + Utils.LangPrefix).ToString();
             }
             hlCountry.Text = c.GetColumn("CountryName" + Utils.LangPrefix).ToString();
             hlCountry.NavigateUrl = Utils.GenerateFriendlyURL("country",
                 new string[] { c.GetColumn("CountryName_en").ToString() });
         }
     }
 }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         VikkiSoft_BLL.City c = new VikkiSoft_BLL.City();
         if (c.LoadDetailInfo(CityID))
         {
             lblName.Text = c.GetColumn(City.ColumnNames.Name).ToString();
             if (!c.IsColumnNull(City.ColumnNames.Content))
             {
                 divCityContent.InnerHtml = c.GetColumn(City.ColumnNames.Content).ToString();
             }
             hlCountry.Text = c.GetColumn("CountryName").ToString();
             hlCountry.NavigateUrl = Utils.GenerateFriendlyURL("country",
                 new string[] { c.GetColumn("CountryName_en").ToString() });
             if (!c.IsColumnNull(City.ColumnNames.MainImage) && c.s_MainImage.Length > 0)
             {
                 pnlPageTitle.Attributes["style"] = "background-image: url(" + Master.SiteURL + Utils.GaleryImagePath.Replace("~", "") + "/" + c.MainImage + ");";
             }
         }
     }
 }
예제 #3
0
 protected override DataTable GetDataSource()
 {
     VikkiSoft_BLL.City c = new VikkiSoft_BLL.City();
     c.LoadWithCountry();
     return c.DefaultView.Table;
 }