简体   繁体   English

从C#和Dreamweaver开始使用ASP.net?

[英]Where to start with ASP.net in C# and Dreamweaver?

I am looking to start working on a personal site using C#. 我希望开始使用C#在个人网站上工作。 I work as a web developer and have used VBScript previously and am using Coldfusion now at work. 我是一名Web开发人员,之前使用过VBScript,现在正在使用Coldfusion。 I use Dreamweaver for development in these languages. 我使用Dreamweaver进行这些语言的开发。

I have read a lot of people recommending that you should use a MS IDE to develop in .net and that C# is the way to go in terms of the language. 我读过很多人建议您应该使用MS IDE在.net中进行开发,并且C#是语言方面的方法。 I would like to stick with Dreamweaver as I feel I would be taking on a bit too much to learn how to use a new IDE and a new language at the same time. 我想坚持使用Dreamweaver,因为我觉得我会花费太多时间来学习如何同时使用新的IDE和新语言。

Will using something like Visual Studio help with developing in .net so much that it is worth the effort of changing from Dreamweaver? 使用像Visual Studio这样的东西有助于在.net中进行开发,以至于值得从Dreamweaver进行更改吗? If so which IDE would be best to learn with? 如果是这样哪个IDE最好学习?

If I choose to stick with Dreamweaver is there any recommendations you can make as to how to best setup Dreamweaver for easy development? 如果我选择坚持使用Dreamweaver,您是否可以提出如何最好地设置Dreamweaver以便于开发的建议?

I believe not. 我不相信。 Dreamweaver is not a good tool for developing code . Dreamweaver不是开发代码的好工具。 This is what you need in ASP.NET. 这是您在ASP.NET中所需要的。 You'll need debugging. 你需要调试。 You'll enjoy IntelliSense, and you can always open single files in Dreamweaver occasionally (which I doubt you would, anyway). 您将享受IntelliSense,并且您可以随时在Dreamweaver中打开单个文件(无论如何,我怀疑您会这样做)。

Grab Visual Studio Express 2013 for Web (which is free) and enjoy. 获取Visual Studio Express 2013 for Web (免费)并享受。 It's a Windows app, like many other Windows apps! 它是一个Windows应用程序,就像许多其他Windows应用程序一样! You don't need professional training to use it. 您无需专业培训即可使用它。

As someone who formerly coded PHP in Dreamweaver, I would strongly suggest the use of the Visual Studio IDE for C# ASP.NET applications. 作为以前在Dreamweaver中编写PHP的人,我强烈建议将Visual Studio IDE用于C#ASP.NET应用程序。 The benefits are numerous: 好处很多:

  • Intellisense - where any object, property, method, etc. that you create will automatically appear in an auto-complete box, drastically reducing syntax errors 智能感知 - 您创建的任何对象,属性,方法等将自动出现在自动完成框中,从而大大减少语法错误
  • Project templates - starting a web application from scratch is going to be very very tricky if you have to do it all via source code 项目模板 - 从头开始​​创建Web应用程序将非常棘手,如果您必须通过源代码完成所有操作
  • Debugging - errors can be caught and debugged directly in the source code 调试 - 可以直接在源代码中捕获和调试错误
  • Add-ins - my favorite being the Configuration Section Designer 加载项 - 我最喜欢的是配置部分设计器

I'm sure there are even more reasons, these are just the biggest ones. 我确信还有更多的原因,这些只是最大的原因。

If you feel comfortable using Dreamweaver for design, you can still continue to use it, but I would strongly recommend you familiarise yourself with Visual Studio Express however (it's free). 如果您觉得使用Dreamweaver进行设计很舒服,您仍然可以继续使用它,但我强烈建议您熟悉Visual Studio Express (它是免费的)。 Trying to learn .NET and C# using a text editor or an application like dreamweaver is feasible, but you would be making the learning process unnecessarily difficult. 尝试使用文本编辑器或像Dreamweaver这样的应用程序来学习.NET和C#是可行的,但是你会使学习过程变得非常困难。 Visual Studio gives you syntax highlighting, intellisense, debugging, and many other features that you just aren't going to get in another IDE targeted at web design. Visual Studio为您提供语法突出显示,智能感知,调试以及许多其他功能,您将无法在另一个针对Web设计的IDE中获得这些功能。 VS is really very strongly coupled to .NET development. VS非常强烈地与.NET开发相结合。

I started my career as a web designer many years ago using Dreamweaver, and have gradually made the transition to software developer. 多年前,我开始使用Dreamweaver作为网页设计师,并逐渐转向软件开发人员。 Leaving tools like Dreamweaver behind has actually given me a lot more freedom in terms of working as a designer, and I find that I don't in fact need any tools for markup and css other than a text editor. 像Dreamweaver这样的工具实际上让我在设计工作方面有了更多的自由,而且我发现除了文本编辑器之外我实际上并不需要任何标记和css工具。 You may find that abandoning a design tool like dreamweaver actually makes you a better designer; 您可能会发现放弃像Dreamweaver这样的设计工具实际上会让您成为更好的设计师; and just as well - the "design" tools in Visual Studio are absolutely useless :) 同样 - Visual Studio中的“设计”工具绝对没用:)

If you do decide to continue using Dreamweaver for markup, be aware that things may render differently in Visual Studio. 如果您决定继续使用Dreamweaver进行标记,请注意Visual Studio中的内容可能会有所不同。 Ignore the Visual Studio design pane entirely and just check your design in the various browsers (I'm sure you already do this). 完全忽略Visual Studio设计窗格,只需在各种浏览器中检查您的设计(我确定您已经这样做了)。

I think you would be very disappointed with the ASP.NET support in Dreamweaver. 我想你会对Dreamweaver中的ASP.NET支持感到非常失望。 You would be MUCH better off getting yourself a copy of Visual Studio / Web Developer (express editions are free) and doing your development there. 获得Visual Studio / Web Developer的副本(快速版本是免费的)并在那里进行开发会更好。

That said, there's no reason why you can't create your HTML and CSS in Dreamweaver, then bring those files into Visual Studio to actually put in the code. 也就是说,没有理由不在Dreamweaver中创建HTML和CSS,然后将这些文件带入Visual Studio以实际放入代码中。 This is kind of a one-time deal though since usually once you've started splitting up your HTML into master pages and user controls/partial views, it's pretty difficult to go back and edit them again in Dreamweaver. 这是一种一次性的交易,因为通常一旦你开始将HTML拆分为母版页和用户控件/部分视图,在Dreamweaver中再次返回并再次编辑它们是非常困难的。

Visual Studio 2008 will be probably better. Visual Studio 2008可能会更好。 Not only IntelliSense, but also debugging in JavaScript can be helpfull sometimes (don't know is it included in the Express edition). 不仅IntelliSense,而且JavaScript中的调试有时也很有帮助(不知道它是否包含在Express版本中)。

Yes, coming from the exact same situation I can tell you now it will help a great deal to walk away from Dreamweaver for your .net work. 是的,来自完全相同的情况,我现在可以告诉你,为了你的.net工作,离开Dreamweaver会有很大帮助。 The intellisense for C# is not super great in Dreamweaver. 在Dreamweaver中,C#的智能感知并不是很好。 You will find features you miss a great deal from Dreamweaver though, specifically code completion on the HTML side is much better in Dreamweaver then in VS. 你会发现Dreamweaver错过了很多功能,特别是在Dreamweaver和HTML中,HTML端的代码完成要好得多。

Another vote for Visual Studio, with the addition that you don't have to give up Dreamweaver. Visual Studio的另一个投票,另外你不必放弃Dreamweaver。 You can use Dreamweaver to build a basic layout and interface design. 您可以使用Dreamweaver构建基本布局和界面设计。 Then use Visual Studio to realize the implementation of that design. 然后使用Visual Studio实现该设计的实现。

You will find building ASP.Net without a purpose-build IDE painful. 你会发现构建ASP.Net没有专门构建的IDE很痛苦。

I'd really like to point out that "IntelliSense" is nothing new and nothing Microsoft invented by any means. 我真的想指出,“智能感知”并不是什么新鲜事,微软也没有发明任何东西。 IntelliSense IS code hinting with links to the Microsoft help page, which I've never needed personally. IntelliSense IS代码提示链接到Microsoft帮助页面,这是我从未个人需要的。 Please see that Dreamweaver does have code hinting exactly the same as Visual Studio, however is not designed to develop C# and similar languages, and for that reason alone I would not recommend trying to develop with it. 请注意,Dreamweaver的代码提示与Visual Studio完全相同,但不是为了开发C#和类似语言而设计的,仅仅因为这个原因,我不建议尝试使用它进行开发。 As for developing purely in HTML, CSS, and JavaScript, a plain text editor is a better choice than Visual Studio granted you don't change any of the settings. 至于纯粹在HTML,CSS和JavaScript中进行开发,纯文本编辑器是比Visual Studio更好的选择,因为您不会更改任何设置。 There are so many things I hate about how VS behaves while I'm writing HTML, but that's another thread. 在我编写HTML时,我讨厌有很多关于VS行为的事情,但那是另一个线索。 On another site. 在另一个网站上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM