Mikesdotnetting: on ASP.NET and Web Development
Latest Entries
Posted by: Mikesdotnetting, 28 June 2009 21:37
Building on my previous article, which looked at adding data with one-to-many and many-to-many relationships via the Entity Framework, here's a look at how to modify that data within an ASP.NET MVC application. More...
Filed under: ASP.NET MVC Entity Framework as Article
Posted by: Mikesdotnetting, 17 June 2009 21:55
Taking on two new technologies - ASP.NET MVC and the Entity Framework - at the same time was bound to provide some "interesting" moments. Getting data out via EF has so far been pretty straightforward. But when it got to building the back end of my site, I had some fun trying to manage INSERTS with One-To-Many and Many-To-Many relationships. More...
Filed under: ASP.NET MVC Entity Framework as Article
Posted by: Mikesdotnetting, 08 June 2009 07:37
According to Google's Webmaster tools, there are about 15,000 incoming links to my site. 13,000 of those reference a .ASPX file on disk. When I convert to MVC, with new Search Engine Friendly urls, all those links will break unless I do something about it. Presenting users with a 404 - file not found is not an option. I need to show them the content they were expecting, and update Search Engines with the news that things have changed. Here's how I will be managing those Legacy URLs. More...
Filed under: ASP.NET MVC as Article
Posted by: Mikesdotnetting, 01 June 2009 07:26
A Tag Cloud is a visual depiction of Tags or categories on a web site. CSS is used to set the variable font size of each Tag to illustrate its relative frequency or popularity within the site. As part of the migration of my site to ASP.NET MVC, I am introducing one to replace the Categories navigation that appears on the left hand side of each page, which contains a count of items within each category. More...
Filed under: ASP.NET MVC Entity Framework as Article
Posted by: Mikesdotnetting, 29 May 2009 15:58
Pretty much every web site on the Internet features a form for users to provide feedback via email to site owners. This site is no different. Migrating to ASP.NET MVC requires a slightly different approach to that used by Web Forms development, so this article looks at one way to implement a web site contact form using the MVC framework and jQuery that degrades nicely. AJAX functionality is said to be "degradable" if a way is provided for the process to work, even though users don't have Javascript available to them. More...
Filed under: AJAX ASP.NET 3.5 ASP.NET MVC jQuery as Article
Posted by: Mikesdotnetting, 11 May 2009 07:06
I'm in the process of rewriting mikesdotnetting.com using the ASP.NET MVC framework. It's an interesting experience, in that this is my first exposure to MVC. The first stumbling block I encountered was how to pass data in a satisfactory way to Partial Views which only represent part of the data that is to be displayed in the View. Since I struggled to find clear guidance on this, I thought I would share a way to do it. More...
Filed under: ASP.NET MVC Entity Framework as Article
Posted by: Mikesdotnetting, 04 May 2009 18:39
I've recently done a series of articles that feature calling databases via AJAX using jQuery. In pretty much all of the articles, I have used Web Services as my data access mechanism. Judging from the comments that some of the articles have attracted, this has caused a little confusion. But Web Services is just one mechanism. Page Methods and simple ASPX files are two more. And finally, as pointed out by a commenter, Benny Halperin, ASHX files are yet another option. In this article, I shall review each of these approaches. More...
Filed under: AJAX ASP.NET 3.5 jQuery as Article
Posted by: Mikesdotnetting, 14 April 2009 22:39
IP addresses can reveal a lot about your web visitors. For an ecommerce site, the owner or registrant of the visitor's IP address can be very useful information. You could paste each visitor IP address into one of the many free IP Lookup sites available, but that can be time-consuming and tedious. Or you could build your own lookup. This article shows how this can be done pretty quickly. More...
Filed under: AJAX ASP.NET 3.5 Javascript jQuery as Article
Posted by: Mikesdotnetting, 02 March 2009 07:30
This article looks at efficient use of jQuery tabs when displaying data. Specifically, it covers how to lazy-load data, so that it is only accessed and displayed if the tab is clicked. More...
Filed under: AJAX ASP.NET 3.5 Javascript jQuery as Article
Posted by: Mikesdotnetting, 04 February 2009 22:29
It was bound to happen - you knock up an article on jQuery draggables one day, and the next, someone like Jim ;-) comes along and asks about persisting the position of the dragged item across Postbacks, or even sessions. I suppose it's my fault - I mentioned using draggables in a previous life in the context of saving the position, so it's only fair I share how that's done. More...
Filed under: AJAX ASP.NET 3.5 Javascript jQuery as Article
Posted by: Mikesdotnetting, 01 February 2009 08:12
One of the keystones of modern AJAX-enabled web sites is Drag and Drop. This article looks at the current state of Draggables that form part of the jQuery UI Library. More...
Filed under: ASP.NET 3.5 Javascript jQuery as Article
Posted by: Mikesdotnetting, 24 January 2009 18:18
It's a common problem: you have a registration form, but you want to prevent user names or other values from being used more than once. You need a user-friendly way to prevent duplicate values being submitted. This is where the simplicity of jQuery excels. More...
Filed under: AJAX ASP.NET 3.5 Javascript jQuery as Article
Posted by: Mikesdotnetting, 17 January 2009 23:13
My simple article on Ajax with Classic ASP is one of the most popular on this site. So I thought it's about time I updated it to show how to use jQuery to Ajaxify a Classic ASP page. More...
Filed under: AJAX Classic ASP Javascript jQuery VBScript as Article
Posted by: Mikesdotnetting, 13 January 2009 08:47
Cascading DropDownLists or dependent dropdowns are the signature dish for AJAX applications. I spent quite a while fiddling to try to get some to work, before stumbling across a life-saving jQuery plugin that makes working with DropDownLists on the client-side a breeze. This article shows how it all works, and makes use of the WebService I introduced in my previous jQuery article. More...
Filed under: AJAX ASP.NET 3.5 Javascript jQuery as Article
Posted by: Mikesdotnetting, 10 January 2009 09:09
There appear to be many articles showing how to use jQuery with ASP.NET Web Services around, but the vast majority of them illustrate the use of PageMethods that return a single value - typically "Hello World!" or the current date and time. Not much use in the real world, where you may more often need to call a service that returns a collection of complex objects. Here are a couple of examples that look at playing with more than just simple values. More...
Filed under: AJAX ASP.NET 3.5 Javascript jQuery as Article