What should I choose, Angular.js or .NET MVC?

Angularjs vs ASP.NET MVC

Answer by A Quora admin:

Angularjs is a javascript framework written in MVVM pattern, But works almost in a similar fashion to MVC. .NET MVC is a server side technology written on the top of .NET framework  that converts your HTML helpers into the html tags, apply roles and styling and works alongside with the JQuery as a fully functional web pages. Where as angularjs is a javascript framework that does the similar action on the client side.

Precisely the answer is, You can very well use angularjs along with MVC. However, whenever you are dealing with complex views or when your model is bound to multiple DOM objects, I will recommend you to choose MVVM over MVC.

What should I choose, Angular.js or .NET MVC? Which language has better career prospects?



Both ASP.NET webforms and MVC  are microsoft technologies available for building dynamic web pages.  The following are the reasons why one should you prefer one technology over the other.

Why MVC ?
1) Lightweight and fast : The  ASP.NET follows the event driven approach that strongly binds your UI with the server side event handelling. Whereas in case of MVC, the UI and the server side logic are decoupled and makes them independent entities. Also, MVC got rid of one of the state management techniques called viewstate that makes the asp.net pages fat and takes time to load the controls.
2) Highly customisable due to rich support of HTML, CSS, Javascript, AJAX and JQuery : If you look at your design files of MVC, they are plain HTML controls along with server side HTML helpers that will again present the web pages with clean DOM unlike  ASP.NET webforms that generate complex html tags and attribute values while presenting the webpages to the user.
3) Highly modular with clean url support: Clean URL is something very native to MVC pattern, because the route engine process the URLs directly in case of mvc (default format is domain_name/controller_name/action_name/additional_parameters) whereas in webforms the request will try to look for the equivalent aspx page and the url will look too long and unorganized in most of the cases.
4) SEO: As I told you before the mvc webpages will present a very straight forward HTML webpage with clean url that make sense not only to the users but also for the search engines to index your websites. So obviously your websites will be prefered by google or other search engines whenever some one looks for information relevant to your business, that will result in more hits and more business.

Why ASP.NET (Webforms)?
1) Legacy : Being a pioneer technology, we have a lot of applications built in ASP.NET already and it is practically difficult to invest a lot of money for rewriting those applications in mvc. So the enhancements to the existing system will preferably be written in the same software stack, instead writing them on something new.
2) Availability of skill pool: We have a huge skill pool of  ASP.NET developers as it is there for quiet a long time and MVC is comparitively very young technology. So if your project has minimal time to train the resources, going with a familiar software stack is preferable.
3) Not so many dependent technical skills: If you say that you are good in MVC, you are expected to be equally good in HTML5,javascript,JQuery and CSS along with C#.
4) Continuous support from microsoft: Microsoft is providing dedicated support for ASP.NET and continuously investing in R&D to make it better. One of the few significant steps of it is vNext that is aimed at making it lightweight.

What is the difference between ASP.NET MVC and ASP.NET?

As a Computer Science student, would it be better to take an internship where I’ll be programming in C++ in a Linux environment, or one w…

Answer by Sharmilli Priyadarsini:

I would suggest you take your internship on C++ on Linux. The reasons are,
1) though C# (C++++) is claimed to be Microsoft's improvised version of C++ , C# is just a dedicated Microsoft language that is written to make the best use of. NET framework, C++ had richer features over the latter and powerful enough to write system softwares. In fact, MEF is brought to. Net only in version 4.0 which used to be there in visual C++ forever.
2) Startups usually go for open-source software stacks instead going for Microsoft stack due to the licensing cost. So C++ is a recommended choice.
3) As a fresher,  your .Net skills are least important than your C, C++ and oops skills during the interviews.
4) You will probably be given with a .Net training by the company if you get into .Net stream in service conserns.

As a Computer Science student, would it be better to take an internship where I'll be programming in C++ in a Linux environment, or one w…

Binding the dropdown values through code

This is something very basic and simple, most of the beginners like me encounters. You might wonder how to bind the list elements manually into the dropdown list instead binding the data source in C#.net. If you have ended up in the same, its is the right place to figure it out. Here I go,

protected void Page_Load(object sender, EventArgs e) //values are populated when the page is requested by the client
string[] names = {“Sharmili”,”Deepika”,”Rathinam”,”Anitha”}; //Get the dropdown list elements to be populated

foreach (string i in names) //when you use foreach, you need not bother about array index

//The other way to bind the values one by one is shown below