Installation

  • add reference to Omu.Awesome.Mvc.dll and Omu.Awesome.Core.dll
  • copy the Awesome folder into your Views\Shared folder
  • in _Layout.cshtml / Site.master add jquery.js, jquery-ui.js, jquery-ui.css, jquery.form.js, Awesome.js and Awesome.css

optional (recommended)

for razor views (cshtml)
add awesome namespaces in \Views\web.config like this:
<system.web.webPages.razor>
...   
     <pages>   
      <namespaces>
...
        <add namespace="Omu.Awesome.Core" />        
        <add namespace="Omu.Awesome.Mvc.Helpers" />
      </namespaces>
    </pages>
  </system.web.webPages.razor>

for web-forms views (aspx, ascx)
  • add awesome namespaces in main web.config like this:
<system.web>
     ...
 <pages>
     <namespaces>
          ...
         <add namespace="Omu.Awesome.Core"/>
         <add namespace="Omu.Awesome.Mvc.Helpers"/>
     </namespaces>
 </pages>
</system.web>
  • in your Global.asax.cs Application_Start() add this:

      ModelMetadataProviders.Current = new AwesomeModelMetadataProvider();
this is required for the Lookup, Autocomplete, AjaxDropdown, AjaxRadioList, AjaxCheckBoxList, AwesomeParameters attributes to work (with EditorFor(o => o.Foo))

if you're going to need in the rest of your class libraries the IPageable<>, IPageableInfo, Pageable you should reference Omu.Awesome.Core

nuget

with nuget you do this in your Package Manage Console:
PM> Install-Package MvcProjectAwesome
this will do the same as above except it's not going to change the Views\web.config (needed for razor)

and it's not going to add anything into your Global.asax.cs instead it will use WebActivator and add a file in your App_Start folder

Last edited May 16, 2011 at 9:23 AM by o, version 4

Comments

CsPlex May 13, 2015 at 2:02 PM 
The nuget Package MvcProjectAwesome seems to be in version 1.9 (2011).
Is there a newest nuget Package for version 4.5 ?

NaomiN Jan 9, 2013 at 7:59 PM 
Will it be possible to convert all views into Razor syntax? MVC 4 is out and old style views are outdated.

Also, how can I contact you if I will have troubles incorporating your stuff into my existing application?