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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP Error on local site : Expected Error ';'

ASP Error on local site : Expected Error ';'

Scheduled Pinned Locked Moved ASP.NET
helphtmlsysadmintoolsworkspace
9 Posts 4 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
    bryan paling
    wrote on last edited by
    #1

    Need help on this: I just formatted my pc and installed all needed to run an intranet. But when I started to setup my old intranet site, and run the default page, appeared on my default page. It's a redirection to another page but the default page was totally blank and an error appeared on the bottom left corner saying "Error: Expected ';'" but the line errors are not found on the code: The code of the default page is below: I hate this because i really don't do coding on the format. <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.OleDb" %> <script runat="server"> Sub Page_Load(Sender as Object, E as EventArgs) response.Redirect("pages/default.aspx") End Sub Need help please.. -bryan

    --- If the facts don't fit the Theory, change the facts...

    S J F 3 Replies Last reply
    0
    • B bryan paling

      Need help on this: I just formatted my pc and installed all needed to run an intranet. But when I started to setup my old intranet site, and run the default page, appeared on my default page. It's a redirection to another page but the default page was totally blank and an error appeared on the bottom left corner saying "Error: Expected ';'" but the line errors are not found on the code: The code of the default page is below: I hate this because i really don't do coding on the format. <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.OleDb" %> <script runat="server"> Sub Page_Load(Sender as Object, E as EventArgs) response.Redirect("pages/default.aspx") End Sub Need help please.. -bryan

      --- If the facts don't fit the Theory, change the facts...

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      try it :) might work <div class="ForumSig"><font color=gray >Thanks and Regards</font> <b> Sandeep </b> <font color=blue style="font-style:italic;" >If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " </font> </div></x-turndown>

      B 1 Reply Last reply
      0
      • S Sandeep Akhare

        try it :) might work <div class="ForumSig"><font color=gray >Thanks and Regards</font> <b> Sandeep </b> <font color=blue style="font-style:italic;" >If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... " </font> </div></x-turndown>

        B Offline
        B Offline
        bryan paling
        wrote on last edited by
        #3

        Hi Sandeep, The error sign disappeared but it did not redirect to the default page inside the "pages" folder. regards bryan

        --- If the facts don't fit the Theory, change the facts...

        S 1 Reply Last reply
        0
        • B bryan paling

          Need help on this: I just formatted my pc and installed all needed to run an intranet. But when I started to setup my old intranet site, and run the default page, appeared on my default page. It's a redirection to another page but the default page was totally blank and an error appeared on the bottom left corner saying "Error: Expected ';'" but the line errors are not found on the code: The code of the default page is below: I hate this because i really don't do coding on the format. <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.OleDb" %> <script runat="server"> Sub Page_Load(Sender as Object, E as EventArgs) response.Redirect("pages/default.aspx") End Sub Need help please.. -bryan

          --- If the facts don't fit the Theory, change the facts...

          J Offline
          J Offline
          John ph
          wrote on last edited by
          #4

          try this...it may work... Response.Redirect("/pages/default.aspx")

          Regards
          J O H N :rose:
          "Even eagles need a push." David McNally


          B 1 Reply Last reply
          0
          • J John ph

            try this...it may work... Response.Redirect("/pages/default.aspx")

            Regards
            J O H N :rose:
            "Even eagles need a push." David McNally


            B Offline
            B Offline
            bryan paling
            wrote on last edited by
            #5

            hi John, It doesn't work either... i really hate doing this code without using codebehind... i'm just debugging this intranet... regards bryan

            --- If the facts don't fit the Theory, change the facts...

            1 Reply Last reply
            0
            • B bryan paling

              Hi Sandeep, The error sign disappeared but it did not redirect to the default page inside the "pages" folder. regards bryan

              --- If the facts don't fit the Theory, change the facts...

              S Offline
              S Offline
              Sandeep Akhare
              wrote on last edited by
              #6

              try this Response.redirect("**../**pages/Default.aspx"); check the caps of url

              Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

              1 Reply Last reply
              0
              • B bryan paling

                Need help on this: I just formatted my pc and installed all needed to run an intranet. But when I started to setup my old intranet site, and run the default page, appeared on my default page. It's a redirection to another page but the default page was totally blank and an error appeared on the bottom left corner saying "Error: Expected ';'" but the line errors are not found on the code: The code of the default page is below: I hate this because i really don't do coding on the format. <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.OleDb" %> <script runat="server"> Sub Page_Load(Sender as Object, E as EventArgs) response.Redirect("pages/default.aspx") End Sub Need help please.. -bryan

                --- If the facts don't fit the Theory, change the facts...

                F Offline
                F Offline
                Fred_Smith
                wrote on last edited by
                #7

                Is the address in your browser address window that of the this page or the one redirected to? There is no reason, as far as your ocde is concerned, why it shouldn't redirect (though the imports are unnecessary, as are the ContentType and ResponseEncoding attributes in the page directive, but never mind...) so the error must lie elsewhere... Fred

                B 1 Reply Last reply
                0
                • F Fred_Smith

                  Is the address in your browser address window that of the this page or the one redirected to? There is no reason, as far as your ocde is concerned, why it shouldn't redirect (though the imports are unnecessary, as are the ContentType and ResponseEncoding attributes in the page directive, but never mind...) so the error must lie elsewhere... Fred

                  B Offline
                  B Offline
                  bryan paling
                  wrote on last edited by
                  #8

                  the address was on the page where it is blank. http://localhost/sitename/default.aspx <--- this one. It should redirect to this page http://localhost/sitename/pages/default.aspx yeah.. i'm really pissed off looking where would the error be... it should redirect on the first place. During the installation, I installed the .Net Framework first than the IIS? does it makes sense that it IIS should have been installed first than the Framework? regards, bryan

                  --- If the facts don't fit the Theory, change the facts...

                  F 1 Reply Last reply
                  0
                  • B bryan paling

                    the address was on the page where it is blank. http://localhost/sitename/default.aspx <--- this one. It should redirect to this page http://localhost/sitename/pages/default.aspx yeah.. i'm really pissed off looking where would the error be... it should redirect on the first place. During the installation, I installed the .Net Framework first than the IIS? does it makes sense that it IIS should have been installed first than the Framework? regards, bryan

                    --- If the facts don't fit the Theory, change the facts...

                    F Offline
                    F Offline
                    Fred_Smith
                    wrote on last edited by
                    #9

                    Yes - I believe IIS should have been installed first. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/187d0e2c-8e89-49ad-a89d-e26e4d76ee68.mspx?mfr=true[^]

                    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