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. [SOLVED] navigation takes too long

[SOLVED] navigation takes too long

Scheduled Pinned Locked Moved ASP.NET
javascriptcsharpphphtmlcss
10 Posts 3 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.
  • M Offline
    M Offline
    msqar
    wrote on last edited by
    #1

    Hi community :D thanks for helping me so far, i'm really glad that i found this site. Here's the doubt i got since i started with ASP: 1) I'm not using IIS yet, im using the localhost provided by ASP.NET to test and debug my website before i upload it to the host. Anyway, when i change from aspx to aspx it takes like if i would be really connecting to the internet and its loading all the things, its not like when you are making the website with flat HTML, PHP, javascript, etc using XAMPP. Actually my website its not fully loaded with images and things that might get you lag. After thinking why this is happening, i was really upset, so i tried to create my very same website (without asp components, masterpage and stuff ofc) and the same js files, image files, css files, all was alike, and it worked awesome, very fast... so i said, there's two things here... is it the ASP.NET inner localhost or ASP.NET itself. For instance, i got some pictures with onmouseover event and change to another img, and on mouseout it returns to the "off" state. And the very first time i mouseover the image, it takes about 3 seconds to load the mouseover image, after the first one, everything looks normal. But why it has to load the image if i'm locally requesting it? 2) Remembered that i have another thing to clear up. I'm trying to reset the fields of my asp inputs and selects components, is there anyway to do it as the HTML does with the

    ? is there a similar property for ASP? I did it now by code behind with the onclick event, that restarts all the fields to "" or SelectedIndex = 0, works good, but it makes a postback because its server side, i would like to do it, without the postback. Any possibility??? Thanks! Hope i'm not bothering you with my noob questions. Marian :D

    E 1 Reply Last reply
    0
    • M msqar

      Hi community :D thanks for helping me so far, i'm really glad that i found this site. Here's the doubt i got since i started with ASP: 1) I'm not using IIS yet, im using the localhost provided by ASP.NET to test and debug my website before i upload it to the host. Anyway, when i change from aspx to aspx it takes like if i would be really connecting to the internet and its loading all the things, its not like when you are making the website with flat HTML, PHP, javascript, etc using XAMPP. Actually my website its not fully loaded with images and things that might get you lag. After thinking why this is happening, i was really upset, so i tried to create my very same website (without asp components, masterpage and stuff ofc) and the same js files, image files, css files, all was alike, and it worked awesome, very fast... so i said, there's two things here... is it the ASP.NET inner localhost or ASP.NET itself. For instance, i got some pictures with onmouseover event and change to another img, and on mouseout it returns to the "off" state. And the very first time i mouseover the image, it takes about 3 seconds to load the mouseover image, after the first one, everything looks normal. But why it has to load the image if i'm locally requesting it? 2) Remembered that i have another thing to clear up. I'm trying to reset the fields of my asp inputs and selects components, is there anyway to do it as the HTML does with the

      ? is there a similar property for ASP? I did it now by code behind with the onclick event, that restarts all the fields to "" or SelectedIndex = 0, works good, but it makes a postback because its server side, i would like to do it, without the postback. Any possibility??? Thanks! Hope i'm not bothering you with my noob questions. Marian :D

      E Offline
      E Offline
      Expert Coming
      wrote on last edited by
      #2

      Javascript is how you do it on the client side. A quick google search will teach you how to reset fields on page load, be careful though, you dont want the script running on postbacks. The slow loading ASP.NET stuff can happen for lots of reason, a slow machine trying to run the site while using Visual Studio, having debuggers attached... ect...

      The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

      M 2 Replies Last reply
      0
      • E Expert Coming

        Javascript is how you do it on the client side. A quick google search will teach you how to reset fields on page load, be careful though, you dont want the script running on postbacks. The slow loading ASP.NET stuff can happen for lots of reason, a slow machine trying to run the site while using Visual Studio, having debuggers attached... ect...

        The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

        M Offline
        M Offline
        msqar
        wrote on last edited by
        #3

        Yea, it might be, tomorrow i will test my project on a better computer and not my netbook, anyway my netbook is pretty powerful (dual atom 1.8ghz, 4gb ram, and a 512mb video card (ION2 Platform)) dunno, it runns everything really fast. But im still thinking about the Localhost. When its loading it says at the bottom of the browser in the status bar: "Waiting for localhost..." And remains like 2 or 3 seconds per page.... and it loads as i said, as if it would be running in the internet. Thanks again! Marian.

        1 Reply Last reply
        0
        • E Expert Coming

          Javascript is how you do it on the client side. A quick google search will teach you how to reset fields on page load, be careful though, you dont want the script running on postbacks. The slow loading ASP.NET stuff can happen for lots of reason, a slow machine trying to run the site while using Visual Studio, having debuggers attached... ect...

          The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

          M Offline
          M Offline
          msqar
          wrote on last edited by
          #4

          Yea! you were right! Tried my website in a C2D 2GB RAM and it worked PERFECT, took not even 1 sec to load a page. Everything runnning so smoothly (locally ofc). Thank you very much! Marian.

          G 1 Reply Last reply
          0
          • M msqar

            Yea! you were right! Tried my website in a C2D 2GB RAM and it worked PERFECT, took not even 1 sec to load a page. Everything runnning so smoothly (locally ofc). Thank you very much! Marian.

            G Offline
            G Offline
            gavindon
            wrote on last edited by
            #5

            you have to remember when running on //localhost that you are essentially running a server for a minute in the background. The first time you run the application from within VS the server has to start up etc etc.. I run an asus laptop with i7 processor, 8 gigs ram and so on. even mine can be few seconds slow on the first run.

            Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

            M 1 Reply Last reply
            0
            • G gavindon

              you have to remember when running on //localhost that you are essentially running a server for a minute in the background. The first time you run the application from within VS the server has to start up etc etc.. I run an asus laptop with i7 processor, 8 gigs ram and so on. even mine can be few seconds slow on the first run.

              Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

              M Offline
              M Offline
              msqar
              wrote on last edited by
              #6

              Woo, but the localhost server is taking a lot in my netbook, every single time, not just the first one. Don't know why. And that didn't happen in my work computer, which has a Core 2 Duo and 2GB of RAM, it took like a second the first time. btw, wtf nice notebook :| alienware specs.

              G 1 Reply Last reply
              0
              • M msqar

                Woo, but the localhost server is taking a lot in my netbook, every single time, not just the first one. Don't know why. And that didn't happen in my work computer, which has a Core 2 Duo and 2GB of RAM, it took like a second the first time. btw, wtf nice notebook :| alienware specs.

                G Offline
                G Offline
                gavindon
                wrote on last edited by
                #7

                thanks, its not an alienware but its a nice pc. and was reasonably priced for what I got out of the deal. I run up to 4 vms at once in it since I am working with sharepoint. one vm with server2008r2 and sharepoint, one with sql, one for a webserver and one for an AD. I get very little lag out of it for the most part(of course I have the vms running on minimum ram for the OS since they are just for testing.) I run all 4 of them that way to emulate our office environment and allow me to play with sharepoint without going and telling my boss that I had an oops on the live sharepoint server. as far as the difference between your pc and work pc, it could be any number of settings, or maybe your pc has more services running in the background. Hard to say really. But if the code runs fine on the other machine my guess would be that the code is ok as far as performance its just your machine running localhost that is lagging up for whatever reasons.

                Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

                M 1 Reply Last reply
                0
                • G gavindon

                  thanks, its not an alienware but its a nice pc. and was reasonably priced for what I got out of the deal. I run up to 4 vms at once in it since I am working with sharepoint. one vm with server2008r2 and sharepoint, one with sql, one for a webserver and one for an AD. I get very little lag out of it for the most part(of course I have the vms running on minimum ram for the OS since they are just for testing.) I run all 4 of them that way to emulate our office environment and allow me to play with sharepoint without going and telling my boss that I had an oops on the live sharepoint server. as far as the difference between your pc and work pc, it could be any number of settings, or maybe your pc has more services running in the background. Hard to say really. But if the code runs fine on the other machine my guess would be that the code is ok as far as performance its just your machine running localhost that is lagging up for whatever reasons.

                  Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

                  M Offline
                  M Offline
                  msqar
                  wrote on last edited by
                  #8

                  Thanks for your support gavidon! :) You are being such a nice person, the whole community.

                  G 1 Reply Last reply
                  0
                  • M msqar

                    Thanks for your support gavidon! :) You are being such a nice person, the whole community.

                    G Offline
                    G Offline
                    gavindon
                    wrote on last edited by
                    #9

                    your welcome. I ahve been reading on CP for almost two years and am just now starting to add my half cent once in a while. Thought I better follow example of the CP guys and be nice myself..

                    Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

                    M 1 Reply Last reply
                    0
                    • G gavindon

                      your welcome. I ahve been reading on CP for almost two years and am just now starting to add my half cent once in a while. Thought I better follow example of the CP guys and be nice myself..

                      Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.

                      M Offline
                      M Offline
                      msqar
                      wrote on last edited by
                      #10

                      :) that's so cool! ok, don't want to convert this into a chat hahaha, thanks again!!! and see you around! ;)

                      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