On All Things Web

April, 2010Archive

Apr 25

Html.Action is a method method that injects a response from the server directly into the UI.  For instance, a controller can have two action methods, then inject the response directly into the UI from the other controller.  Take a look at the sample form below: <p> Main Action</p> <% Html.BeginForm(); %>  <div>  Name: <%= Html.TextBox(“IndexName”) %> </div> <div>  […]

Read the rest of this entry »

Apr 25

Mohammad Elsheimy posted a blog about a series of Windows Phone 7 videos that take only 7 minutes to watch.  MSDEV has published the videos that are code-focused approach to illustrating the mobile development platform. The blog post is here: http://justlikeamagic.wordpress.com/2010/04/25/learn-windows-phone-7-development-in-7-minutes-each/

Read the rest of this entry »

Apr 24

I was working on a sample MVC 2 project, and wanted to post about the approach I took for updates.  I’m not saying that this is “definitely the way you have to do” any updates to your database.  I was evaluating the approach people were taking when it comes to attaching objects to the context.  […]

Read the rest of this entry »

Apr 10

The freely available ASP.NET MVC framework by Telerik has added a new DatePicker control that works similarly to the RadDatePicker control in its ASP.NET AJAX framework.  Below is a sample of that control: <%    Html.Telerik().DatePicker().Name(“Picker”)        .ButtonTitle(“Select Date”)        .ClientEvents((evt) =>            {                evt.OnChange(() =>                    {        […]

Read the rest of this entry »

Apr 09

The latest release of the open source Telerik ASP.NET MVC framework contains a new calendar control.  This control functions similar to the ASP.NET AJAX calendar extender calendar, where it shows a month view, year view, and decade view, and responds to clicks on the client.  Telerik can also specially process clicks for the server too.  […]

Read the rest of this entry »

Apr 06

I am really looking forward to the next version of the Entity Framework, labeled 4.0 to match the .NET framework 4.0.  Outside of the realm of the POCO designer setup, model first development, and some of those other design aspects, I’m going to look at this from the practical applications to a .NET developer, that […]

Read the rest of this entry »

Apr 03

With the new various For methods in MVC (DisplayFor, TextBoxFor, etc.), these methods use a lambda to specify the fields to display/render.  The following form below: <% Html.BeginForm(); %>  <%= Html.ValidationSummary(“The following errors have occurred:”) %>  <%= Html.Hidden(“Story.ProjectPhaseKey”, this.Request.QueryString.Get(“phase”)) %> <%= Html.Hidden(“Story.ProjectKey”, this.RouteData.Values["id"])%>  <div>  <span>Title</span>  <span>   <%= Html.TextBoxFor(i => i.Story.Title) %>  </span> </div> <div>  <span>Description</span>  <span>   <%= Html.TextAreaFor(i => i.Story.Description) %>  </span> </div>  <div>  <input type=”submit” value=”Save Changes” […]

Read the rest of this entry »