• acton parameters

    The asp.net mvc framework matches action parameters in the following order:

    1. Form values
    2. Route arguments
    3. Querystring parameters
  • The options to render a partial view

    Normally you can do this,

    <% Html.RenderPartial("LogOnUserControl"); %>
    
  • asp.net mvc request walkthrough

    ASP.NET MVC request begin with a UrlRoutingModule. This component is not actually part of the System.Web.Mvc.dll, but of System.Web.Routing. You have to wire up in web.config like the following.

  • Semantics works?

    A developer is a creativity entity. There are so many software technologies emerging everyday, many of us are struggling to keep pace with the them. I am just an average developer, and I still tirelessly studying these technologies, because programming is my passion and love. Gradually, I understand semantics is the driven force of the evolution of software tools, framework, platform, methodologies and standards. As a .net developer, I use the object-oriented programming, domain driven development, agile programing, mocking framework, asp.net mvc, css, xhtml, wpf, RESTful web service.

    I truely believe that semantics works. Today I am moving my studying notes to SemanticsWorks.

  • Best practice to develop jQuery plugin

    1. Create a private scope for $
    2. Attach plugin to $.fn alias
    3. Add implicit iteration
    4. Enable chaining
    5. Add default options
    6. Add custom options
    7. global custom options
    <div id="counter1">
    </div>
    <div id="counter2">
    </div>
    <script>
    (function($) {
        $.fn.count = function(customOptions){