Category: MVC 4

  • MVC Export List of objects to Excel-Word-PDF-CSV-HTML-XML–Razor style

    This is the second part of the demo of the Exporter  in action  – this time in MVC . It is a little more complicated,because you need to show to the exporter the full path where to put the generated file string filePathExport = Server.MapPath(“~/exports/a” + ExportBase.GetFileExtension((ExportToFormat)id)); All others are the same easy stuff  -add…

  • Same object edited by 2 users–proactively notifying users

    This is a practical example about how two users that comes on the same page will be notified one about other( after an idea of Adrian Petcu) . See the picture : With the NuGet package you can install in your application in this steps: To run : 1. install package from Nuget 2. in…

  • Microformats,Outlook calendar and MVC5

    I have a passion for both 3:Microformats,Outlook calendar and MVC 4.   So I decided to put together an MVC implementation – first,for calendar. Source code at https://github.com/ignatandrei/MVC4Microformats   See online at http://mvc4microformats.apphb.com/Home/Calendar  Next week a NUGET download. After that,a VCard implementation .

  • MVC,JsonResult,DateTime and TimeZone

    The jsonresult of date time is serializing to the string /Date and some integer value starting with 1970 . The problem is that the browser interprets this value accordingly to the LOCAL TimeZone – and thus the same date is going to be interpreted with a difference. I was thinking that I can adjust from…

  • MVC and auto persisting values

    When you have a textbox in HTML (let’s say <input name=”FirstName” type=”text” /> ) And it binds to “FirstName” Property of a Model,and in HttpPost Action you do modify the value and return the same view,the value shown in the textbox is the posted one,not the modified one. ( The first thought is that HttpPost…

  • Clearer MVC

    In every application there are some variables that are set by the ASP.NET  application(  ASP.NET_SessionId  cookie ) and some that are set by the programmer( cached data in Application/Session/Cache/Cookies and so on). I wanted every time to have a page where I can “clear” / delete those – and not found. So it’s the Clearer…

  • 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.…

  • 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…