Thursday, January 30, 2014

Getting DevExpress to work with Visual Studio Express 2013 for Web

When I installed VS 2013 Express for Web I'd intended on using the free trial of DevExpress to see what it was all about; however whenever I would install it, the Template Wizard wouldn't appear.  I looked through the forums for a quite a while, and was able to get it to work by doing the following steps.

The key here is to install the hotfix instead of the Dev Express Universal Trial 20131228 

This applies to: DevExpress Universal Trial 20131228

Steps
  1. Download the hotfix v2013 2.7
    1. You will probably need a free account to download, but you should already have one at this point
    2. The file should be "DevExpressComponents-13.2.6.14034.exe" --> note the version, as there are a few posted to the forums.  This was the newest one that was sent to me, at this time.
  2. Fire-up VS 2013 Express for Web & Create a New Project
  3. Select the Template Gallery from Templates --> Visual C# heading
Note that MVC is still not working as I receive a "MVC is not installed" error, however you can now use the template wizard to fire up a Webforms project and take DevExpress for a spin.

I will update this post when my ticket is finally resolved for MVC.

Wednesday, January 29, 2014

MVC 5 & Razor & Html Helpers

Issue:  After some searching around on SO, MSDN, and various other blogs, I wasn't able to get a good list of Html helpers out there for Razor.  I'm sure such a list exists, but I couldn't seem to find one.  So mostly for my own reference, here is a list that I took from the MSDN page, that I pared-down by eliminating the overloads.

I understand that VS Intellisense will give you a similar list, but I feel that a quick-reference list is at times better.

http://msdn.microsoft.com/en-us/library/system.web.mvc.htmlhelper(v=vs.118).aspx

HTML Helper methods:

  • Html.TextBoxFor()
  • Html.TextAreaFor()
  • Html.DropDownListFor()
  • Html.CheckboxFor()
  • Html.RadioButtonFor()
  • Html.ListBoxFor()
  • Html.PasswordFor()
  • Html.HiddenFor()
  • Html.LabelFor()
  • Html.EditorFor()
  • Html.DisplayFor()
  • Html.DisplayTextFor()
  • Html.ValidationMessageFor()
  • Html.DisplayNameForModel()
  • Html.EditorForModel()
  • Html.LabelForModel()
  • Html.NameForModel
  • Html.ValueForModel()

  • Html.Action()
  • Html.ActionLink()
  • Html.BeginForm()
  • Html.BeginRouteForm()
  • Html.Checkbox()
  • Html.Display()
  • Html.DisplayName()
  • Html.DisplayText()
  • Html.DropDownList()
  • Html.Editor()
  • Html.EndForm()
  • Html.Hidden()
  • Html.Id
  • Html.IdForModel
  • Html.Label()
  • Html.ListBox()
  • Html.Name
  • Html.Partial()
  • Html.Password()
  • Html.RadioButton()
  • Html.RenderAction()
  • Html.RenderPartial()
  • Html.RouteLink()
  • Html.TextArea()
  • Html.TextBox()
  • Html.Validate
  • Html.ValidationMessage()
  • Html.ValidationSummary()
  • Html.Value()