Visual Studio .NET是否适用于ASP.NET + HTML站点? [英] Is Visual Studio .NET ideal for ASP.NET + HTML site?

查看:61
本文介绍了Visual Studio .NET是否适用于ASP.NET + HTML站点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!


首先,我想说VS.NET是我用过的最好的IDE之一

年份。它真的帮我快速编码。工作区管理使用

自动隐藏窗口,最小化和最大化代码段,待办事项列表

管理和自动文档(仅举几例)都非常棒。所以我想b $ b真的想让VS.NET IDE成为我的主要开发工具。


但是,当涉及到开发ASP.NET网站时,我有一些

的混淆。例如,当我在ASP.NET中开发网站时,我想要一些

它们是HTML而其他的是ASPX。但解决方案资源管理器仅显示

ASPX文件和其他有限的文件集。所以我必须使用记事本或

Dreamweaver来编辑HTML和其他文件。

快速开发ASPX网站真的很痛苦。


此外,很难区分和管理网站文件(ASPX和HTML
带有VS.NET项目文件的
文件(vbproj,vbproj.webinfo和sln文件以

命名一些)。在Classic ASP中,所有开发都是在VB6上单独完成的,只需将生成的DLL文件移植到web目录中,这样就不会出现混淆项目文件的问题。和网络文件(但当然DLL地狱是

那里:P)。


我必须承认我对VS.NET的了解只是初级水平所以那是我b / b
希望有人对此有所了解。


非常感谢!

Don

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

推荐答案

" Don Wash" < do*@wash.com>在消息中写道

新闻:%2 **************** @ TK2MSFTNGP10.phx.gbl ...
"Don Wash" <do*@wash.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
然而,当涉及到开发ASP.NET网站时,我有一些混淆。例如,当我在ASP.NET中开发网站时,我想要一些
的HTML是HTML,而其他的则是ASPX。但解决方案资源管理器只显示
显示ASPX文件和其他有限的文件集。所以我必须使用记事本或
Dreamweaver来编辑HTML和其他文件。当快速开发ASPX网站时,这真的很痛苦。
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.




1)如果你没有将HTML文件添加到你的项目中,他们就赢了除非单击显示所有文件按钮,否则在解决方案资源管理器中显示




2)将新的HTML文件添加到ASP.NET项目中,右键单击项目

名称,选择添加,然后添加HTML页面。


3)将现有HTML文件添加到ASP.NET项目中,如果需要,只需将项目从Windows资源管理器拖到文件夹中即可。



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.


" Don Wash"写道......


你好,
"Don Wash" wrote ...

Hi Don,
例如,当我在ASP.NET中开发网站时,我想要一些
他们是HTML,其他人是ASPX。但解决方案资源管理器只显示
显示ASPX文件和其他有限的文件集。所以我必须使用记事本或
Dreamweaver来编辑HTML和其他文件。在快速开发ASPX网站时,这真的很痛苦。


右键单击您的项目 - 选择添加新项目 - 向下滚动一下

您将看到一个HTML页面选项 - 例如,它将文件添加为page.htm。

使用VS.NET项目文件(vbproj,vbproj)很难区分和管理网站文件(ASPX和HTML
文件) .webinfo和sln文件以
命名一些)。


在VS中,您可以隐藏大多数文件类型或显示它们,例如aspx.vb

和aspx.res - 切换按钮

解决方案资源管理器 - 从左边开始的第三个...

我必须承认我对VS.NET的了解只是初学者水平以便
我希望有人对此有所了解。
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.
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.
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 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..
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.




也是我的 - 但至少上面的第1点应该有所帮助:o)
<问候


Rob



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

Regards

Rob


<<<所以我必须使用记事本或Dreamweaver编辑HTML和其他文件。

快速开发ASPX网站时真的很痛苦。>>


Don - 我感到痛苦!


我同意VS.NET非常棒,我将它用于我的所有代码隐藏工作

和测试/调试。


但是

当我正在做任何认真的开发工作时,我来回切换

VS.NET和Dreamweaver。这样做的原因是,当您编辑

HTML时,VS.NET可能决定完全重新排列您的HTML代码(在您的ASPX

或HTML文件中)。它不仅仅是给你原始的页面布局,而是用不同的HTML来实现
- 它会给你一个全新的布局 - 而且你可能不会给你一个b $ b b这样就不会像你原来的布局那样(并且没有

方式来撤销重新安排)。


这是一个众所周知的大时代开发人员认为微软已经充分意识到这一点并且他们承诺在下一个版本的

Visual Studio中修复它 - 所以没有必要在这里开始另一场关于

这个问题的激烈辩论。在任何情况下第一次发生在你身上时,你都会为Dreamweaver或Notepad运行



另外,VS.NET不是设计的也不打算提供许多填充到Dreamweaver中的网站

管理功能。


我们还没有完全摆脱Dreamweaver。


-D

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


这篇关于Visual Studio .NET是否适用于ASP.NET + HTML站点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆