如果我知道C#,要学习Asp.Net需要多长时间? [英] How Long Would It Take To Learn Asp.Net If I Know C#?

查看:386
本文介绍了如果我知道C#,要学习Asp.Net需要多长时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我非常了解C#,并且我正考虑开始学习ASP.NET,我想知道我在C#中的知识如何对我有所帮助?

解决方案

<显然,这取决于您的经验和聪明程度,更确切地说,取决于类似因素".另一组因素是对HTTP,HTML,CSS和JavaScript的了解,以及对网络尤其是Web的工作原理的一般了解.

基本上,C#和.NET知识是最基础和最重要的,然后,如果您还很好地理解了Web操作,那么学习剩下的仅ASP.NET"将几乎是无用的,就像熟悉另一个库一样.但是,当然,只有您非常了解上面列出的所有内容时,才可以这样做.您为什么还要考虑知道另一个图书馆的麻烦?这主要是乐趣. :-)

我不想让您失望,但是,为了获得更好的完整性,我不得不给您一个更多的模糊估计因子. (叹息)好吧,那些有经验的人并且服从一些合理的逻辑和常识,通常会很快理解到,在提出问题时,我们不会掌握您的技能方面的所有信息.我希望您不会花更多的时间对此进行更多思考,并希望到目前为止您已经理解了.

—SA


了解c#将具有很大的优势,因为许多人的"asp.net"问题实际上只是基本的.net问题由于不了解类型,类型转换,名称空间等而产生的.

另一方面,您不会说自己的C#经验是什么,所以我将假设您使用台式机应用程序,而了解台式机应用程序的人所面临的最大挑战就是如何处理请求\响应html,http等的性质.生成html的方式是不同的,将html发送到浏览器,浏览器将执行html,以及其中的所有js.桌面开发人员经常会提出一些问题,这些问题围绕着如何在网页上无法完成桌面"操作的情况而提出.在桌面应用程序中,您的代码会不断运行,具有丰富的状态并可以访问许多资源,可以持续访问GUI等;在网页中,您的代码仅执行几毫秒,然后完成,您可以不能从C#代码更新html控件,您只能使用非常有限的基本状态选项,依此类推.进入Web开发的心态以及http的工作方式通常是最大的障碍.

对于asp.net,您可以执行webforms或MVC(均为"asp.net").如果您执行webforms,则可能会更熟悉这种工作方式...您拥有具有属性的控件,请自行维护状态,处理自己的html渲染等.如果您沿MVC路线走下去,您将必须与基本html和http更亲密,因为webforms会将许多抽象知识从您身上带走.


C#是与ASP.NET配对的最好的语言之一,但是您对C#的了解无法保证任何时间范围内的ASP.NET ...
在知道ASP.NET具有太多依赖关系(除了您以外的任何人)之前,您将花费的实际时间,不可能回答您的问题" ...
我只能给你一些建议...
1.回顾一下学习ASP.NET的理由-您可能根本不需要它?
2. ASP.NET的某些部分代表不同的词(Web窗体<-> MVC),您可能会专注于最适合自己的内容...
3.在明确了前两点之后-不要停止提出问题,开始学习!!!!!


I know C# well, and I''m thinking to start learning ASP.NET, and I want to know how my knowledge in C# can help me?

解决方案

Apparently, it depends on how experience and smart you are, more exactly, "factors like that". Another set of factors is knowledge of HTTP, HTML, CSS and JavaScript, and also general understanding how networking works in general and the Web in particular.

Basically, C# and .NET knowledge is the most fundamental and important, and then, provided you also understand Web operation well, learning remaining "just ASP.NET" would be next to nothing, like getting familiar with yet another library. But, of course, this is only if you know all the listed above really well. Why would you even take hassles of knowing yet another library into account? This would be mostly the fun. :-)

I didn''t want to disappoint you, but, just for better completeness, I have to give you one more fuzzy-estimated factor. (Sigh…) Well, people who are a bit experienced and obey some reasonable logic and common sense usually quickly come to understanding that we would not have all that information on your skills at the moment of asking. I would like to hope that you just did not get yourself an extra minute to think more at this, and hope that by now you understand it.

—SA


Knowing c# is going to be a big advantage as a lot of people''s "asp.net" questions are really just basic .net questions that arise from not understanding types, casting, namespaces etc.

On the flip-side of that, you don''t say what your c# experience is in so I''m going to assume desktop apps, and the biggest challenge for people who know desktop apps is getting their head around the request\response nature of html, http etc. It''s a different mindset where you generate html, that html is sent to the browser and the browser executes it, and any js on it. Desktop developers often ask questions that centre around how to do "desktop" things on a web page, when the answer is that you can''t. In a desktop app your code is constantly running, has rich state, and has access to many resources, has constant access to the GUI etc, and in a web page your code only executes for a few milliseconds and then it is done, you can''t update html controls from your c# code, you have very limited and basic state options, and so on. Getting into the mindset of web development and how http works tends to be the biggest hurdle.

For asp.net you can do webforms or MVC (both are "asp.net") If you do webforms then you''ll probably be more familiar with that way of working...you have controls that have properties, maintain their own state, handle their own html rendering etc. If you go down the MVC route you''re going to have to get more intimate with basic html and http as webforms abstracts a lot of that away from you.


C# is one of the best languages to pair with ASP.NET, but there is no promise in your knowledge of C# to any time-frame forward ASP.NET...
The actual time you will spend until you know ASP.NET has too many dependencies that unknown to anyone but you, that answering your ''question'' is impossible...
All I can give you is some advise...
1. Review your reasoning for learning of ASP.NET - you may not need it at all?
2. ASP.NET has some parts that are representing different words (Web Forms <-> MVC), you may focus on the best for you...
3. After made clear the first two points - do not stop asking questions, start learning!!!


这篇关于如果我知道C#,要学习Asp.Net需要多长时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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