search error
-
Hello all can you help me to explain where is the error in this code I make search for my website and it work good in the localhost but there are an error when i make search in the hostting www.gkc-jo.com and tab control not work in firefox explorer
string sa = Request.ToString(); SearchEngine.Search test = new SearchEngine.Search(Request.Url.ToString()); DataTable yalla = test.SearchWord(Request.QueryString["W"]); GridView1.DataSource = yalla; GridView1.DataBind(); lblResults.Text = yalla.Rows.Count.ToString();
public Search(string URL) { string[] SplitWebSitePath = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase.ToString().Split('/'); for (int i = 3; i < SplitWebSitePath.Length-2; i++) { if (this._WebSitePath == string.Empty) { this._WebSitePath = SplitWebSitePath[i]; } else { this._WebSitePath = this._WebSitePath + "\\" + SplitWebSitePath[i]; } } int ha= URL.IndexOf(SplitWebSitePath[SplitWebSitePath.Length-3]); this._URL = URL.Substring(0, ha ) + SplitWebSitePath[SplitWebSitePath.Length - 3] + "/"; WebSiteFiles.Columns.Add("HeadLine"); WebSiteFiles.Columns.Add("Content"); WebSiteFiles.Columns.Add("URL"); } #endregion #region Properties... public string _URL { get { return sURL; } set { sURL = value; } } public string _WebSitePath { get { return sWebSitePath; } set { sWebSitePath = value; } }
-
Hello all can you help me to explain where is the error in this code I make search for my website and it work good in the localhost but there are an error when i make search in the hostting www.gkc-jo.com and tab control not work in firefox explorer
string sa = Request.ToString(); SearchEngine.Search test = new SearchEngine.Search(Request.Url.ToString()); DataTable yalla = test.SearchWord(Request.QueryString["W"]); GridView1.DataSource = yalla; GridView1.DataBind(); lblResults.Text = yalla.Rows.Count.ToString();
public Search(string URL) { string[] SplitWebSitePath = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase.ToString().Split('/'); for (int i = 3; i < SplitWebSitePath.Length-2; i++) { if (this._WebSitePath == string.Empty) { this._WebSitePath = SplitWebSitePath[i]; } else { this._WebSitePath = this._WebSitePath + "\\" + SplitWebSitePath[i]; } } int ha= URL.IndexOf(SplitWebSitePath[SplitWebSitePath.Length-3]); this._URL = URL.Substring(0, ha ) + SplitWebSitePath[SplitWebSitePath.Length - 3] + "/"; WebSiteFiles.Columns.Add("HeadLine"); WebSiteFiles.Columns.Add("Content"); WebSiteFiles.Columns.Add("URL"); } #endregion #region Properties... public string _URL { get { return sURL; } set { sURL = value; } } public string _WebSitePath { get { return sWebSitePath; } set { sWebSitePath = value; } }
Bataineh wrote:
and tab control not work in firefox explorer
Is that a new browser being a mixture of Mozilla Firefox and Windows Explorer :) Did it work in Firefox before you moved it to the webserver? Are you using a custom tag to do the search or did you write the code yourself? I don't recognise the tags above thats all
-
Bataineh wrote:
and tab control not work in firefox explorer
Is that a new browser being a mixture of Mozilla Firefox and Windows Explorer :) Did it work in Firefox before you moved it to the webserver? Are you using a custom tag to do the search or did you write the code yourself? I don't recognise the tags above thats all
-
I write all the code for the search it not all put sinceit work good in my pc i think the error in this ( the code in big ) no it does not work good in firefox in my pc but it do in Microsoft explorer
-
There is obviously a problem with compatability with your web server You may need to contact the people that own the web server and query why your code won't work. Im afraid I cant help you more, but your wording is also difficult to understand
you can enter the site www.gkc-jo.com on firefox and see the problems in the Home page in the tab control and in the news right the screen