Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. search error

search error

Scheduled Pinned Locked Moved ASP.NET
helpcom
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bataineh
    wrote on last edited by
    #1

    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; } }

    E 1 Reply Last reply
    0
    • B Bataineh

      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; } }

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      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

      B 1 Reply Last reply
      0
      • E eyeseetee

        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

        B Offline
        B Offline
        Bataineh
        wrote on last edited by
        #3

        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

        E 1 Reply Last reply
        0
        • B Bataineh

          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

          E Offline
          E Offline
          eyeseetee
          wrote on last edited by
          #4

          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

          B 1 Reply Last reply
          0
          • E eyeseetee

            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

            B Offline
            B Offline
            Bataineh
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups