Browse by Tags

Tagged Content List
  • Blog Post: Quick Tips About ASP.NET MVC – Using AJAX 4 DataViews

    In the last quick tip about MVC , we created an AJAX-enabled Partial View that used JQuery to get the data from an action method that returned JSON. After fetching the data, we used JQuery again to add rows to a pre-existing table as a way to render our information. In the end, the view looked like...
  • Blog Post: Quick Tips About ASP.NET MVC – AJAX-Enabled Partial Views

    In the last post , we successfully implemented a webpart framework that renders simple static Views and allows the user to change the layout. However, one must wonder what needs to be done to make our web parts richer. At the moment, I’m not passing any data to these webparts so they simply render...
  • Blog Post: Quick Tips About ASP.NET MVC – WebPart Framework

    In the small poll I made , one of the users suggested implementing a Dashboard/WebPart framework in MVC as a good subject for a quick tip. Obviously, implementing this kind of framework is hard work so I chose to use the KISS (Keep It Simple Stupid) principle on it. What I implemented here is a very...
  • Blog Post: Quick Tips About ASP.NET MVC - Building a Bulletproof Edit View - Part 3 - Custom Validation and Safe ways to update your model

    In the last post of this series we implemented a way of handling the one-to-many relationship between the Author and the Community entities, allowing the user to specify which community an Author belongs to. Previously , you saw me adding both client-side and server-side validation to my Edit view...
  • Blog Post: ASP.NET MVC - Great post about handling one-to-many and many-to-many relationships

    In the previous Quick Tip , we handled a one-to-many relationship between two entities, by allowing users to update the association in an Edit View. We did do it on the easy side, however, since in our example, one Author only has one Community assigned. If we were creating an Edit view for the Community...
  • Blog Post: Quick Tips About ASP.NET MVC - Building a Bulletproof Edit View - Part 2 - Handling associations

    Continuing where we left off , and before we add some custom validation to our model, let’s try to clean up things a bit. If we take a look at the current form, we notice two things: First, we have some fields here that the user shouldn’t be allowed to change. One is the ID, which is an internal...
  • Blog Post: Quick Tips About ASP.NET MVC - Building a Bulletproof Edit View - Part 1

    Ok, so this one is not really a “Quick” tip. It’s a bit long, so I’m dividing it into two posts to make it a bit more readable. The objective is to build a solid Edit view with both client and server-side validation of data, as well as showing you how to avoid some common pitfalls I see being frequently...
  • Blog Post: ASP.NET MVC - Very nice utilization of Editor Templates for editing DateTime fields

    Following the " Quick Tips About ASP.NET MVC - Editor Templates ", I found this great example of using an Editor Template to render a JQuery date picker. http://geekswithblogs.net/michelotti/archive/2010/02/05/mvc-2-editor-template-with-datetime.aspx I'm trying to find the time to post more quick...
  • Blog Post: Quick Tips About ASP.NET MVC - What would you like to see?

    The "Quick Tips About ASP.NET MVC" series of posts is getting a lot of attention and I've been receiving a lot of feedback about it, which is not only very rewarding, but also surpasses what I could have foreseen. I do have a few more tips coming out soon, but I thought it would be interesting to...
  • Blog Post: Quick Tips About ASP.NET MVC – Editor Templates

    In the last quick tip , I showed off how you can use the UIHint data annotation to specify a custom template for rendering of a particular field. An important part of that mechanism is the DisplayFor strongly-typed html helper that was introduced in ASP.NET MVC 2. As mentioned before, we can also...
  • Blog Post: Quick Tips About ASP.NET MVC – UI Helpers and Templates

    One very interesting addition to MVC 2 is the power to assign templates to fields in your classes and make the rendering suit your needs. The advantage is that, if you need to display the same field in several views, you can benefit from a one-stop place where you can customize its display and have all...
  • Blog Post: Designing for Resilience in n-Tier applications - part 2

    In the first post of this series I proposed a different timeout handling mechanism to remove the typical tier-dependency performance problems. In order to keep this post under a reasonable size, I recommend you read the first one to fully understand the problem and the proposed solution to it. To...
  • Blog Post: Designing for Resilience in n-Tier applications

    The n-Tier headache The huge growth of the Multitier application architectures has drastically changed the way we envision, develop and support software solutions. The notions of greater scalability, reutilization of services and independent software developing processes are concepts that play a fundamental...
  • Blog Post: ASP.NET MVC Quick Tips – Can I change the templates?

    So, you’re using ASP.NET MVC and having a blast (at least I hope you are). If you are anything like me (and most developers), your design skills are pretty much non-existent. That’s why there are designers working in most web applications. But anyway, if they keep complaining about the structure of...
  • Blog Post: ASP.NET MVC Quick Tips – Pass data to your master page

    While I was preparing another demo, I ran into an interesting problem that hadn’t occurred to me before. I was building a sample e-commerce site and thought it would be nice to always display the category list on the left hand side of every page. The first way I could think of was always passing that...
  • Blog Post: ASP.NET MVC Quick Tips – How do I pass data to a view?

    In the last “Quick Tip” we talked about the model and we pretty much reached the conclusion that it can be anything. After all, as long as the View that we pass the model to can interpret it and render it, it’s all good. In any case, there are two simple ways of passing data to a view: · ViewData...
  • Blog Post: ASP.NET MVC Quick Tips – What should my Model be?

    This question is interesting, and it is actually a bunch of questions bunched up together. It took me a while to figure out why I was getting so many questions around this topic but I finally figured it out. Most of the sessions around MVC and even most of the samples you find online are built over...
  • Blog Post: ASP.NET MVC Quick Tips – let’s get this rolling

    Lately, I’ve been having a lot of conversations about ASP.NET MVC. I’ve been following this technology for quite some time and delivered a couple of technical sessions around it that were very appreciated by the audiences. Unfortunately, usually being limited to one hour talks, I don’t have enough...
Page 1 of 1 (18 items)