Exemplo n.º 1
0
 private bool IsSame(string word, int categoryId)
 {
     foreach (DataRow row in SubsiteStoreHelper.GetHotKeywords().Rows)
     {
         string str = row["Keywords"].ToString();
         if ((word == str) && (categoryId == Convert.ToInt32(row["CategoryId"].ToString())))
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 2
0
 private bool IsSame(string word, int categoryId)
 {
     System.Data.DataTable hotKeywords = SubsiteStoreHelper.GetHotKeywords();
     foreach (System.Data.DataRow dataRow in hotKeywords.Rows)
     {
         string b = dataRow["Keywords"].ToString();
         if (word == b && categoryId == System.Convert.ToInt32(dataRow["CategoryId"].ToString()))
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 3
0
 private void BindData()
 {
     grdHotKeywords.DataSource = SubsiteStoreHelper.GetHotKeywords();
     grdHotKeywords.DataBind();
 }