protected override void Initialize() { string rawurl = Request.RawUrl; rawurl = We7Helper.RemoveParamFromUrl(rawurl, "keyword"); string qString = @"<label class=""hidden"" for=""user-search-input"">ËÑË÷{0}:</label> <input type=""text"" class=""search-input"" id=""KeyWord"" name=""KeyWord"" value="""" onKeyPress=""javascript:KeyPressSearch('{1}',event);"" /> <input type=""button"" value=""ËÑË÷"" class=""button"" id=""SearchButton"" onclick=""javascript:doSearch('{1}');"" />"; qString = string.Format(qString, "À¸Ä¿", rawurl); SearchSimpleLiteral.Text = qString; MyChannelList = new ArrayList(); List<Channel> allChannel = null; if (!string.IsNullOrEmpty(ChannelType) && ChannelType.ToString() == "link") { allChannel = ChannelHelper.GetAllLinkChannels(); } else if (!string.IsNullOrEmpty(ChannelType) && ChannelType.ToString() == "article") { allChannel = ChannelHelper.GetChannelByModelName(""); } else { Channel ch = ChannelHelper.GetChannel(ColumnID, null); string enumState = ""; if (ch != null) enumState = ch.EnumState; allChannel = ChannelHelper.GetChannelsByType(enumState); } if (allChannel != null) { GetSubChannels(We7Helper.EmptyGUID, "", allChannel); } MyChannelList = FilterByKeyword(); DetailGridView.DataSource = MyChannelList; DetailGridView.DataBind(); }