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); }
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); }
private void BindData() { grdHotKeywords.DataSource = SubsiteStoreHelper.GetHotKeywords(); grdHotKeywords.DataBind(); }