Is Visual Studio .NET ideal for ASP.NET + HTML site?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Don Wash

    Is Visual Studio .NET ideal for ASP.NET + HTML site?

    Hi All!

    First of all I would like to say that VS.NET is one of the finest IDE I've
    used in years. It really helps me code quickly. Workspace management using
    auto hide windows, minimizing and maximizing of code segments, TO-DO list
    management and automatic documentation (to name a few) are all superb. So I
    really want to make the VS.NET IDE the primary development tool for me.

    However, when it comes to developing ASP.NET websites, I have some
    confusions. For instance, when I develop websites in ASP.NET, I want some of
    them to be HTML and others to be ASPX. But the Solution Explorer only shows
    ASPX files and other limited set of files. So I have to use Notepad or
    Dreamweaver to edit the HTML and other files. This is really a pain when
    rapidly developing ASPX websites.

    Also it is hard to distinguish and manage the website files (ASPX and HTML
    files) with VS.NET project files (vbproj, vbproj.webinfo and sln files to
    name a few). In Classic ASP, all the development was done separately on VB6
    or C++ and only the resulting DLL file is ported to the web directory so no
    issues of mixing up project files and web files (but of course DLL hell is
    there :P).

    I must admit that my knowledge of VS.NET is only beginner level so that I'm
    hoping someone to shed some light on this.

    Many Thanks!
    Don


  • Mark Rae

    #2
    Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

    "Don Wash" <don@wash.com > wrote in message
    news:%23tdzzYUe EHA.2784@TK2MSF TNGP10.phx.gbl. ..
    [color=blue]
    > However, when it comes to developing ASP.NET websites, I have some
    > confusions. For instance, when I develop websites in ASP.NET, I want some[/color]
    of[color=blue]
    > them to be HTML and others to be ASPX. But the Solution Explorer only[/color]
    shows[color=blue]
    > ASPX files and other limited set of files. So I have to use Notepad or
    > Dreamweaver to edit the HTML and other files. This is really a pain when
    > rapidly developing ASPX websites.[/color]

    1) If you haven't added the HTML files to your project, they won't display
    in the Solution Explorer unless you click the Show All Files button.

    2) To add a new HTML file into an ASP.NET project, right-click the project
    name, select Add, then Add HTML page.

    3) To add an existing HTML file into an ASP.NET project, simply drag it into
    the project from Windows Explorer, into a folder if you want.


    Comment

    • Rob Meade

      #3
      Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

      "Don Wash" wrote ...

      Hi Don,
      [color=blue]
      > For instance, when I develop websites in ASP.NET, I want some of
      > them to be HTML and others to be ASPX. But the Solution Explorer only[/color]
      shows[color=blue]
      > ASPX files and other limited set of files. So I have to use Notepad or
      > Dreamweaver to edit the HTML and other files. This is really a pain when
      > rapidly developing ASPX websites.[/color]

      Right-click on your project - choose 'Add new item' - scroll down a bit and
      you'll see a HTML page option - it adds files as page.htm for example.
      [color=blue]
      > Also it is hard to distinguish and manage the website files (ASPX and HTML
      > files) with VS.NET project files (vbproj, vbproj.webinfo and sln files to
      > name a few).[/color]

      In VS you can hide most of the file types or show them, such as the aspx.vb
      and and aspx.res - the button to toggle is above your solution name in
      Solution Explorer - 3rd in from the left..
      [color=blue]
      > I must admit that my knowledge of VS.NET is only beginner level so that[/color]
      I'm[color=blue]
      > hoping someone to shed some light on this.[/color]

      Mine too - but at least point 1 above should help :o)

      Regards

      Rob


      Comment

      • Doug

        #4
        Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

        <<<So I have to use Notepad or Dreamweaver to edit the HTML and other files.
        This is really a pain when rapidly developing ASPX websites.>>

        Don - I feel your pain!

        I agree that VS.NET is superb and I use it for all of my code-behind work
        and testing/debugging.

        BUT

        When I'm doing any serious development work I switch back and forth between
        VS.NET and Dreamweaver. The reason for this is that when you are editing
        HTML, VS.NET may decide to completely rearrange your HTML code (in your ASPX
        or HTML files). It doesn't simply give you your original page layout but
        with different HTML - it actaully gives you a brand new layout - and one you
        probably won't like that in no way resembles your original layout (and no
        way to undo the re arrangement).

        This is a well-known and big-time issue with developers that Microsoft is
        plenty aware of and they're promising to fix it in the next release of
        Visual Studio - so there's no need to start yet another heated debate over
        this issue here. In any case the first time it happens to you, you'll be
        running for Dreamweaver or Notepad.

        Separately, VS.NET is not designed nor intended to provide many of the site
        management features packed into Dreamweaver.

        Don't get rid of Dreamweaver quite yet.

        -D



        Comment

        • Don Wash

          #5
          Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

          Thanks Ron,

          Any ideas on the problem I've presented to Mark?

          Cheers,
          Don

          "Rob Meade" <robert.meade@N OSPAMubht.swest .nhs.uk> wrote in message
          news:uGMz%23fUe EHA.1644@tk2msf tngp13.phx.gbl. ..[color=blue]
          > "Don Wash" wrote ...
          >
          > Hi Don,
          >[color=green]
          > > For instance, when I develop websites in ASP.NET, I want some of
          > > them to be HTML and others to be ASPX. But the Solution Explorer only[/color]
          > shows[color=green]
          > > ASPX files and other limited set of files. So I have to use Notepad or
          > > Dreamweaver to edit the HTML and other files. This is really a pain when
          > > rapidly developing ASPX websites.[/color]
          >
          > Right-click on your project - choose 'Add new item' - scroll down a bit[/color]
          and[color=blue]
          > you'll see a HTML page option - it adds files as page.htm for example.
          >[color=green]
          > > Also it is hard to distinguish and manage the website files (ASPX and[/color][/color]
          HTML[color=blue][color=green]
          > > files) with VS.NET project files (vbproj, vbproj.webinfo and sln files[/color][/color]
          to[color=blue][color=green]
          > > name a few).[/color]
          >
          > In VS you can hide most of the file types or show them, such as the[/color]
          aspx.vb[color=blue]
          > and and aspx.res - the button to toggle is above your solution name in
          > Solution Explorer - 3rd in from the left..
          >[color=green]
          > > I must admit that my knowledge of VS.NET is only beginner level so that[/color]
          > I'm[color=green]
          > > hoping someone to shed some light on this.[/color]
          >
          > Mine too - but at least point 1 above should help :o)
          >
          > Regards
          >
          > Rob
          >
          >[/color]


          Comment

          • Don Wash

            #6
            Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

            Hi Mark,

            Thanks for the reply! I can now see the HTML files and other files. However,
            how can I solve the problem that VS.NET project files are mixing with web
            files? Obviously I don't want them to be uploaded to the web server.

            Thanks again,
            Don

            "Mark Rae" <mark@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
            news:edlyseUeEH A.1356@TK2MSFTN GP09.phx.gbl...[color=blue]
            > "Don Wash" <don@wash.com > wrote in message
            > news:%23tdzzYUe EHA.2784@TK2MSF TNGP10.phx.gbl. ..
            >[color=green]
            > > However, when it comes to developing ASP.NET websites, I have some
            > > confusions. For instance, when I develop websites in ASP.NET, I want[/color][/color]
            some[color=blue]
            > of[color=green]
            > > them to be HTML and others to be ASPX. But the Solution Explorer only[/color]
            > shows[color=green]
            > > ASPX files and other limited set of files. So I have to use Notepad or
            > > Dreamweaver to edit the HTML and other files. This is really a pain when
            > > rapidly developing ASPX websites.[/color]
            >
            > 1) If you haven't added the HTML files to your project, they won't display
            > in the Solution Explorer unless you click the Show All Files button.
            >
            > 2) To add a new HTML file into an ASP.NET project, right-click the project
            > name, select Add, then Add HTML page.
            >
            > 3) To add an existing HTML file into an ASP.NET project, simply drag it[/color]
            into[color=blue]
            > the project from Windows Explorer, into a folder if you want.
            >
            >[/color]


            Comment

            • Rob Meade

              #7
              Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

              "Don Wash" wrote ...
              [color=blue]
              > Any ideas on the problem I've presented to Mark?[/color]

              Just replied to that...

              :o)

              Rob


              Comment

              • Rob Meade

                #8
                Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

                "Don Wash" wrote ...
                [color=blue]
                > Thanks for the reply! I can now see the HTML files and other files.[/color]
                However,[color=blue]
                > how can I solve the problem that VS.NET project files are mixing with web
                > files? Obviously I don't want them to be uploaded to the web server.[/color]

                Hi Don,

                When you finish your project you can specify which files get sent to the
                destination - you can specify all files associated to this project, or only
                files needed to run this project etc etc..

                I dont typically worry about whats on my localhost machine when developing
                something, when I send it up I just fire off the files needed to run the
                projects and its always been happy so far...

                It was a bit odd to get to grips with initially, one of the classics was
                when I dropped files manually into the directory it had already put my
                project files in - I then opened VS to find that they were displayed -
                having spent over an hour going back and forth, back and forth and swearing
                quite a lot - comments regarding VS, comments regarding .Net I evenutally
                found the "add items" options and realised what I had to do...

                Bare with it - it does get easier ;o)

                Regards

                Rob


                Comment

                • Scott M.

                  #9
                  Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

                  > This is a well-known and big-time issue with developers that Microsoft is[color=blue]
                  > plenty aware of and they're promising to fix it in the next release of
                  > Visual Studio - so there's no need to start yet another heated debate over
                  > this issue here. In any case the first time it happens to you, you'll be
                  > running for Dreamweaver or Notepad.[/color]

                  The "Auto Format" feature you speak of can be configured or even turned off
                  from within the Tools...Options dialogs.


                  Comment

                  • Doug

                    #10
                    Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

                    > The "Auto Format" feature you speak of can be configured or even turned
                    off[color=blue]
                    > from within the Tools...Options dialogs.[/color]


                    Really - where specifically is it? Can you tell me exactly how to turn it
                    off?

                    I'm especially interested being that there (1) I didn't find it there - and
                    I have looked carefully (2) online help doesn't mention it, and (3) are many
                    discussions in this very group mention how it's a big problem that Microsoft
                    is addressing. I have previously asked about it in this group as have many
                    others and the response has always been the same - "...wait for the 2005
                    version - until then, don't throw away your favorite HTML editor..."


                    Comment

                    • Lucas Tam

                      #11
                      Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

                      "Doug" <ClubMott@Liver more.com> wrote in news:OYnAbAVeEH A.3132
                      @TK2MSFTNGP11.p hx.gbl:
                      [color=blue]
                      > Don't get rid of Dreamweaver quite yet.[/color]

                      I wholeheartedly agree. Dreamweaver kicks VS.NET's butt when it comes to
                      HTML editing.

                      --
                      Lucas Tam (REMOVEnntp@rog ers.com)
                      Please delete "REMOVE" from the e-mail address when replying.

                      Comment

                      • Greg Burns

                        #12
                        Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

                        (credit to Herfried, if I recall, for the link)



                        "You do can switch formatting off in Tools | Options, but it will not solve
                        the underlying issue, it will only switch off pretty formatting."

                        Never tried turning it off myself, but sounds like it may still not help a
                        whole lot. Very aggravating.

                        Greg


                        "Doug" <ClubMott@Liver more.com> wrote in message
                        news:%235UgByXe EHA.236@tk2msft ngp13.phx.gbl.. .[color=blue][color=green]
                        > > The "Auto Format" feature you speak of can be configured or even turned[/color]
                        > off[color=green]
                        > > from within the Tools...Options dialogs.[/color]
                        >
                        >
                        > Really - where specifically is it? Can you tell me exactly how to turn it
                        > off?
                        >
                        > I'm especially interested being that there (1) I didn't find it there -[/color]
                        and[color=blue]
                        > I have looked carefully (2) online help doesn't mention it, and (3) are[/color]
                        many[color=blue]
                        > discussions in this very group mention how it's a big problem that[/color]
                        Microsoft[color=blue]
                        > is addressing. I have previously asked about it in this group as have many
                        > others and the response has always been the same - "...wait for the 2005
                        > version - until then, don't throw away your favorite HTML editor..."
                        >
                        >[/color]


                        Comment

                        • Cor Ligthert

                          #13
                          Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

                          Don,[color=blue]
                          > Thanks for the reply! I can now see the HTML files and other files.[/color]
                          However,[color=blue]
                          > how can I solve the problem that VS.NET project files are mixing with web
                          > files? Obviously I don't want them to be uploaded to the web server.
                          >[/color]
                          Why do you upload your project files to the webserver?

                          Cor


                          Comment

                          • Cor Ligthert

                            #14
                            Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

                            Doug,

                            Visual Studio Net is in my opinion perfect for HTML editing, however not for
                            cut and past Website development. For that are better tools.

                            Just my opinion.

                            Cor


                            Comment

                            • Cor Ligthert

                              #15
                              Re: Is Visual Studio .NET ideal for ASP.NET + HTML site?

                              Greg,

                              For HTML editing I never use the designview part I go direct to "view in
                              browser", that is very fast and implements direct my javascript and css even
                              when I store that on a server on the other and of the world.

                              Cor


                              Comment

                              Working...