Dan Wahlin
AngularJS, JavaScript, HTML5, jQuery, Node.js, ASP.NET, C#, XAML
-
Minimize Code by Using jQuery and Data Templates
I’m currently working on a heavily AJAX-oriented ASP.NET MVC web application for a business client and using jQuery to call controller actions, retrieve JSON data and then manipulate the DOM to display the data. Several of the pages have quite a bit of dynamic HTML that has to be generated once a JSON object is returned from an MVC controller action which generally leads to a lot of custom JavaScript. After working through my first page on the project I realized that I was creating a maintenance nightmare due to the amount of JavaScript being written and decided to look into other options.
-
Handling MouseEnter and MouseLeave Events in jQuery
I have a simple table generated by an ASP.NET MVC view and needed to switch out CSS classes as the user hovered over rows. Initially I used the rather obvious “hover” feature built-into jQuery since it provides a way to write code that’s called as the user enters and leaves an object. I ended up doing something like this:
-
Selecting Parent Nodes using jQuery
Here’s a quick tip on selecting parent nodes based on something I had to do yesterday with jQuery on a client project. I have an ASP.NET MVC page that outputs a basic table containing search results and as a user hovers over an item in a map I needed to highlight the appropriate row in the search results by changing its CSS class. I debated simply adding an ID on the row to make it easy to find but decided I didn’t want to deal with another ID in the DOM. Here’s what a portion of the view page looks like:
-
5 Reasons You Should Take a Closer Look at ASP.NET MVC
I’m an ASP.NET Web Forms fan…always have been since ASP.NET was first released. But, I like to keep an open mind when it comes to new technologies and I decided to experiment with the new ASP.NET MVC framework that Microsoft just released so I knew how it could be used with consulting projects and for training my company provides. I was so impressed with some of the things I could do that I’m now using ASP.NET MVC on a customer project and thought I’d share some of the things I really like about the framework.
-
Reflecting over JSON Data to Simplify Control Updates with jQuery
My company is currently working on a consulting project that uses ASP.NET MVC and a lot of jQuery and JSON behind the scenes for data transfer which is a lot of fun. I’m personally tasked with the back-end processes but also handling user interface updates as JSON data is received. I have a form with several different controls in it that are updated once JSON is returned from a controller action and the controls are updated using jQuery selectors. Something like this:
-
Running Silverlight 2 and Silverlight 3 on the Same Machine
If you’re building Silverlight applications and need to be able to run Silverlight 2 and Silverlight 3 on the same machine (even though Visual Studio 2008 doesn’t support Silverlight multi-targeting) then check out Amy Dullard’s post. I won’t go through all of the steps since she outlines them nicely, but here’s an overview:
-
DevConnections Orlando Talks on Silverlight and LINQ/Entity Framework
-
Silverlight 3 Features Announced – One Word…”Wow”
If you’re one of those people who enjoys researching new technologies and staying up with the technology “curve” then you have to be excited about all of the new features announced at the MIX conference this week in Las Vegas. Whether you’re into IIS 7, ASP.NET, Visual Studio, Silverlight or other .NET technologies, a slew of new announcements were made. I’m really impressed with the direction Microsoft is going and excited about the new technologies that were announced.
-
Video – Getting Started with LINQ in .NET 3.5
A few weeks back my company offered a free online webinar on LINQ technologies to help developers more easily make the transition to LINQ. While there was a great turn out at the webinar, I received several emails from people who couldn’t attend asking if I could provide a video recording of the webinar. It turns out that the audio for the recording wasn’t up to my standards so I put together a video that provides an introductory look at different LINQ technologies including:
-
Getting Started with SharePoint 2007 Development – Q & A
I was recently asked a few questions from a magazine publisher about my thoughts on SharePoint 2007 development and some of the challenges it brings for developers who are new to the game. There’s no one right answer to these questions of course (talk to another developer and you’ll probably get different answers), but these were my thoughts so I thought I’d share them.