Category: ASP.NET MVC

  • Chosen and Jquery and MVC

    In the MVC forums I have seen a reference to Chosen. From the description here: “Chosen is a JavaScript plugin that makes long,unwieldy select boxes much more user-friendly.” It look beautifool – and I see the opportunity to improve my toolbox. I said: “I will do in 10 minutes”. Well,it did take longer – but…

  • First version of Messaging system

    Realized the first version. When you logon on the system,the application sends you an email and you can see it. Lots of thing done – however,the testing is not complete. Logging was the difficult part- since I want to work with various loggers( LOG4NET,NLOG,MS TRACE,and so on). I required to a duck typing from  DeftTech.…

  • Jquery Ajax Request and MVC detailed

    I have made a post about how to configure the MVC with Razor,Partial View and returning JSON.  It does not need a database – that also because it should be simple to download and see the mechanism. The sample demonstrates: Cascading dropdown ( see the button Populate from action and Cascading drop down) Populating a table from a Partial View(see the…

  • Differences MVC versus WebForms

    Rule of thumb for differences between ASP.NET MVC versus ASP.NET WebForms 1 : If it is a Web Form Control ( asp:textbox,asp:gridview) it does not work in MVC. Period. 2. Use DisplayTemplates/EditorTemplates/PartialView/HtmlHelpers and some jquery (or your favorite javascript framework) magic. See http://msprogrammer.serviciipeweb.ro/2010/05/30/mvc-helper-templates .3 Security is NOT on web.config ( location ). Security is on…

  • Implementations GUI details

    When creating a GUI you must think to give user some good feeling about what the software can do – so I started to MVC 4 website,that have mobile support integrated. More,you must demonstrate some features right away to the user – so what’s best if not a message from system admin to the user …

  • Creating Edmx files and testing

    The favorite ORM in .NET world for me it is edmx files. It gives you the database plain – and have generators for POCO (http://blogs.msdn.com/b/adonet/archive/2010/01/25/walkthrough-poco-template-for-the-entity-framework.aspx) as for EF4.1 DBContext(http://blogs.msdn.com/b/adonet/archive/2011/03/15/ef-4-1-model-amp-database-first-walkthrough.aspx). I will use this one – because of the new ! But the template is over simplistic  -so I improved . I do not want you…

  • Interfaces and more

      Summary: If you want common behavior,you need an interface. And from the first one is a small step to re-organizing the program. Body: When you make a component for other people,you must make the possibility for those to 1. customize your software with their software 2. provide a default implementation For the messaging component,the…

  • Simple messaging system -database configuration

    Contents We will create the database tables and user to access the database from the application You will find at bottom the scripts for creating database materials to read further homework for you As an older database programmer,I have started with database configuration. The selected database engine is Sql Server 2008 R2 Express – the…

  • MVC4 and Simple messaging system

      MVC4  Developer preview with mobile support just released. And,because best way to deal with is within an application,I decide to create a simple messaging system for any site that is made with MVC. Description: I begin with a registered user. What he can do: 1. Create messages ( subject + body ) to send…

  • Asp.NET MVC,Jquery and Razor – Cascading dropdown,retrieving partial views,Json send objects,handling errors

    There are many blogs and other posts on using jQuery with MVC. You can find individual posts on: ·         How to send objects to an action method via JavaScript. ·         How to retrieve partial views. ·         How to handle errors. I have written a sample showing how to do all of these together. The sample…