Jump to content
  • Announcements

    • boen_robot

      Guidelines and Netiquette   03/28/2017

      Posting Problems:   Having problems posting your topic? Read through this: To join, you agree to our terms and conditions and fill out and submit a registration form. An activation email will be sent to your email adress, so you'll need to verify your account. After that the account has to be validated by one of the moderators. This will mean that it can take up to a day to be activated. A couple of things to remember to ensure approval: Don't use an email address in one of those $2 four character .com domains eg. xyds.com. These will be deleted and the domain added to the banned list. Don't use an email address that is within a domain with a bad reputation for spam. A Google search is run on every email address and email domain. Don't sign up with an email address that doesn't exist, doesn't work or requires the sender to answer a quiz before their email can get to you. Put your country and or state and city in the signup form. Blank forms will go to the botton of the "to do" list. And make sure that your email address and your country match, saying you're from Alabama and using a .ru email address is not going to get you activated. After a membership is activated the first few posts will be monitored. Posting spam or unapproved topics described in the agreement results in an immediate ban. The email provider and the IP addresses associated with the account will be banned and all posts will be deleted. These strict measures have been deemed necessary to hinder spam. Sorry for any inconvenience this causes, but it's not liable to change. If, after reading this, you still can't post and don't understand why, contact one of the Moderators listed here.   Topic Guidelines   Including the following information can expedite an accurate response from board members: Must be a Specific Problem or Question related to web design and development Include Code in Question (wrap with   for small blocks of code and for longer blocks   ) Include Code Author Include Extra Notes/Modifications/Attempts Include web link to page/file when possible Content Guidelines   You may not post, upload, link to, or email any Content that contains, promotes, gives instruction about, or provides prohibited Content. Prohibited Content includes any Content that breaks any local, state, county, national or international law. Prohibited Content also includes: No direct or indirect advertising or websites, forums, products, services No hijacking of posts (do not post your question in someone elses) Content that infringes upon any rights [ex. MP3s and ROMs] (including, but not limited to, copyrights and trademarks) Abusive, threatening, defamatory, racist, or obscene Viruses or any other harmful computer software False Information or libel Spam, chain letters, or Pyramid schemes Gambling or Illicit drugs Terrorism Hacking or cheating for internet/online games Warez, Roms, CD-Keys, Cracks, Passwords, or Serial Numbers Pornography, nudity, or sexual material of any kind Excessive profanity Invasive of privacy or impersonation of any person/entity Hacking materials or information Posting Tips   There are more BBcodes than there are buttons for on the reply menu. To get the full list, click "BB Code Help" underneath the clickable smilie face menu. Use   for small snippets of code Use   for lengthy snippets of code Use   if your snippet is HTML (optional) Use   if your snippet is SQL (optional) Rules of Conduct   Be nice. There's no need for calling someone stupid if they ask an 'easy' question. Keep your avatars and signatures absolutely child friendly. We have a younger audience on this forum. Keep your language appropriate for the same reason above. Do not PM moderators for help on the forum. Post on the topic, or create a new one.   Spam:   Recently, as you have all without doubt noticed, we have had lots of spam and advertisement on the forum. Therefore, we'd like to alert you as to what to do when you have found any of the aforementioned annoying messages: it. Immediately. Give a clear reason, please, if the advertising is not evident. DO NOT POST! Report, let the post stay as is, and we will get to it, meanwhile if you continue to post as normal in the other threads, it won't be on the top so long. Refrain from PMing the member. This won't help at all, as they are most likely spambots anyway. Thank you.       Images in signatures:   After thinking of users on dial-up, we have decided to enforce the following rules regarding signatures. Please pay heed to them. Respecting these rules is respecting the members on this forum with dial-up. Signature rules: No animated images AT ALL. No matter the amount of animation. Maximum image widthxheight: 300x150 Maximum image (file) size: 15kb Use calm colors. Do not use highly contrasting images in your signature, as this can get really annoying when seeing several posts from one member in the same thread. The same prohibited content goes for images as for posts. Lastly, use common sense. No lengthy signatures please. Save us some scrolling. Thank you.       Links in signatures:   Please understand that w3schools.com only exists because of voluntary work and is barely supported by the advertising littered throughout the tutorials and the forum. So, please, stop advertising other sites. DO not post links that drive traffic away from the w3schools domain - especially to a site that offers similar if not identical information. Please help support the site by keeping individuals on it. Thank you. Here are some guidelines as to what you can put in your signature: w3schools links --> allowed w3.org links --> allowed browser links --> allowed html editor links --> allowed personal sites --> allowed tutorial sites competing with w3schools --> NOT allowed sites completely irrelevant to webprogramming and this forum --> NOT allowed   Thanks for understanding, and for taking the time to read this. ~W3Schools Modstaff~
skaterdav85

ASP.NET vs. ASP.NET MVC

Recommended Posts

skaterdav85    12

I'm interested in learning asp.net and I keep seeing it referred to as asp.net mvc. I'm familiar with MVC as I have done some web development using a php framework and jsp/java/struts development. My question is, should i start learning the asp.net mvc framework while i dive into .net or should I start out learning asp.net without mvc first? I was under the impression that asp.net forced you to write apps using the mvc pattern, similar to the use of jsp, java, and servlets.

Share this post


Link to post
Share on other sites
Mr.Jay    0

You are not forced to use MVC, I personally use and prefer using Web Forms.If you have had experience wih MVC before then this will most likely help your transition to .NEThttp://www.asp.net has all the info you should need on MVC and Web Forms

Share this post


Link to post
Share on other sites
aspnetguy    30

You can learn which ever you like but I would go with MVC. It just seems much more natural. I have used Web Forms for 5 years and have been transitioning away from it to MVC whenever possible. It is a matter of preference but I like the control I have in MVC.

Share this post


Link to post
Share on other sites
qcom    0

Due to the fact that both ASP.NET WebForms and ASP.NET MVC are two alternative frameworks (meaning that MVC is not mandatory and although came out later than WebForms does not actually replace it) of ASP.NET, they both share the .NET framework and the same essential runtime. Even though MVC adds on an additional runtime of sorts, to help with routing I believe...Anyway, it really comes down to personal preference.I'm starting new, currently, and am adopting MVC, but here are some very good pros and cons to both:WebForms:Pros- Allows rapid development of web applications- Doesn't require prior knowledge of HTMLCons- Rapid development leads to messy client ID outputs (or it can)- Masks the web (http's) true stateless environment- Although it can be tested, it does not provide intrinsic functionality like MVCMVC:Pros- Produces output with standards-compliant HTML- Separation of Concerns (everything has its own place like the Models, Views and Controllers that make up the "MVC" acronym) which leads to overall good development practices, extendability, maintainability and aids in projects where there is more than one person working on it. Say, the designer could be working on the views (the user-interface) while the developer or database-manager could be working with Models, etc, etc.- Easily testable with standard VS2010 (Visual Studio 2010) built-in and also support for many third-party testing platforms.Cons- Requires knowledge of HTML- Can be much slower to output a project than WebForms (due to its SoC nature)In the end, like I said before, this is really a personal question, however, in my opinion, it really depends on the project.Let's say you want to build a quick web application for a client, you may choose WebForms because you or your client or you and your client to particularly care about keeping HTML standards-compliant markup. However, if you would like to build a full-fledged ecommerce platform (although many use WebForms for this as well), you may choose MVC so that it could be maintained and extended so easily.Like I said previously, I'm just starting and although it's tempting to just use WebForms and piece together a web application real quick (because the drag and drop server controls really make this quite easy and fun! :) ), I really enjoy working with the MVC framework, just because it produces such clean code.Have fun and good luck!

Share this post


Link to post
Share on other sites
skaterdav85    12

I've looked into both frameworks a little bit and I thought web forms was a terrible way to build web applications. It's full of page refreshes with postbacks on every user click. How do Web Forms not produce standards compliant HTML? I am pretty sure it would, although dragging and dropping components to produce HTML isn't the best way to develop markup.

Share this post


Link to post
Share on other sites
qcom    0
I've looked into both frameworks a little bit and I thought web forms was a terrible way to build web applications. It's full of page refreshes with postbacks on every user click. How do Web Forms not produce standards compliant HTML? I am pretty sure it would, although dragging and dropping components to produce HTML isn't the best way to develop markup.
Exactly, WebForms is tempting to many (including me) to use just because a relatively powerful web application can be produced quickly via the dragging and dropping of those server controls. It is definitely possible to develop a WebForms web application and still maintain a reasonably good handle of standards-based markup, however, almost always, an ASP.NET MVC web app will output far more standards-compliant markup than WebForms.And yes, I completely agree with page refreshes and postbacks on every user click. Like I mentioned in my previous post, WebForms attempts to veil the naturally stateless nature of the web environment, whereas MVC accepts that the internet is stateless, and therefore does not include postbacks with many page refreshes in its framework.And like I said before as well, they are both a great way (in my opinion of course) to develop dynamic web applications. I myself have been trying to get my head wrapper around the MVC architecture just because I think the Separation of Concerns is very valuable as far as maintainability and extendability. To give an example, think about if you wanted to develop an eCommerce site by scratch. Although easy to do in WebForms, with ASP.NET MVC, you could reuse that Model logic that you developed to build your eCommerce platform, for another new eCommerce website, while updating your Views to match the new look of the site. Additionally, when attempting to make a change to your entire web application's architecture, you will know where to look when you are hunting for that specific line of code, as opposed to WebForms, where it may be buried.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×