Captain Codeman

Software Developer

RSS Feeds

  • Home
  • .NET
  • MVC
    • Rendering
    • Routing
  • Uncategorized

When to use RenderAction vs RenderPartial with ASP.NET MVC

Feb 21st

Posted by Captain Codeman in .NET

3 comments

At first glance, RenderAction and RenderPartial both do a very similar thing – they load ‘some other content’ into the view being rendered at the place they are called. Personally, I think they should be used for different scenarios so these are my thoughts on where each one should be used and why. First though,

action, controller, jquery, MVC

RenderSubAction alternative to RenderAction for Sub-Controllers in MVC

Feb 21st

Posted by Captain Codeman in .NET

No comments

The ASP.NET MVC Futures assembly contains several RenderAction extension methods for HtmlHelper to allow another action to be rendered at some point within a view. Typically, this allows each controller to handle different responsibilities rather than things being combined into the parent. So, for example, a PersonController is responsible for retrieving and assembling the model

.NET, action, controller, MVC, render

NHibernate.Search using Lucene.NET Full Text Index (3)

Apr 26th

Posted by Captain Codeman in .NET

No comments

In Part 1 we looked at how to create a full-text index of NHibernate persisted domain objects using the Lucene.NET project. Part 2 then looked at how to query the index complete with query-parsing and hit-highlighting of the results. Now that we have a full-text index there are other things that we can use it

.NET, full text indexing, index, lucene, MVC, nhibernate, search

NHibernate.Search using Lucene.NET Full Text Index (2)

Mar 30th

Posted by Captain Codeman in .NET

No comments

In NHibernate.Search using Lucene.NET Full Text Index (Part 1) we looked at setting up the NHibernate.Search extension to add full-text searching of NHibernate-persisted objects. Next, we’ll look at how we can perform Google-like searches using the Lucene.NET index and some tips on displaying the results including highlighting the search-terms. Our Book class has the Title,

.NET, full text indexing, index, lucene, MVC, nhibernate, search

Use Aliases to develop against SQL Server on different machines

Mar 13th

Posted by Captain Codeman in .NET

No comments

This is a little tip that I've found useful when working on projects on different machines. If you have a desktop machine and separate database server then you generally wouldn't need to have SQL server running locally – either the full version OR the SQL Express edition. So, within your app the connection string would

alias, ide, SQL Server
«12345»
  • Tags

    .NET 32 bit 64 bit action alias automapper azure captain codeman clouddrive controller cqrs cte elasticsearch elmah event-sourcing eventstore fluentnhibernate full-text full text indexing ide index jquery json lucene message mongodb MVC nhibernate ninject nosql object database paging procrun queue rdbms render screenshot search software SQL Server table utility windows x64 x86
  • Archives

    • July 2011 (1)
    • June 2011 (1)
    • May 2011 (4)
    • February 2011 (1)
    • June 2010 (2)
    • May 2010 (1)
    • April 2010 (1)
    • March 2010 (3)
    • February 2010 (1)
    • February 2009 (2)
    • April 2008 (1)
    • March 2008 (3)
    • January 2008 (1)
    • December 2007 (1)
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    • Recent Posts

      • Introducing Embed.ly client for .NET
      • Event-sourcing benefit: migrating between storage types
      • MongoDB provider for Elmah
      • Simple Service Bus / Message Queue with MongoDB
      • Elmah Error Logging with MongoDB Official Driver
    • Pages

      • About Captain Codeman
Mystique theme by digitalnature | Powered by WordPress
RSS Feeds XHTML 1.1 Top