Here’s a quick wrap up of the ASP.NET, jQuery, WPF, Silverlight, LINQ and other .NET articles published on DevCurry.com in the month of April 2011.
ASP.NET and ASP.NET MVC articles
ASP.NET MVC 3: Handling HTML 5 Attributes with Dashes - In versions prior to ASP.NET MVC 3, you could not declare HTML attributes with dashes/hyphens. However in ASP.NET MVC 3, there is a trick that can be used to handle HTML attributes with dashes.
jQuery 1.5.2 Released with Bug Fixes - jQuery 1.5.2 was released a couple of days ago. This release is primarily a bug fixes release so there are no new features included in it.
jQuery: Highlight Source Code in HTML and ASP.NET Pages – I recently stumbled upon the Snippet plugin which is a syntax highlighting plugin and provides a quick and easy way of highlighting source code passages in HTML documents. I needed a similar implementation for displaying source code (with syntax highlighting and copy), while generating some documentation for a product
jQuery: Store ID of all TextBoxes into an Array - I was storing the ID attribute of all the textboxes on a page, into an array. Although your first response to solve a similar requirement would be to use the $().each() but there is a better way, using map(). Let me show you how.
jQuery 1.6 Beta 1 Released - The jQuery team has released jQuery 1.6 beta to so that everyone can start testing the code in their applications, making sure that there are no major problems when the jQuery 1.6 final is released
jQuery: Detect Double Click in a Div - Here’s a very simple piece of code that shows how to detect double click in a DIV element. In order to detect a single click, double click and other mouse events, jQuery has a set of Mouse events that you can use.
Change Background Image Position using jQuery - I was working on an app recently and one of the requirements was to change the background image position of a paragraph element using jQuery. I will show you how simple it is to change the position of an element’s background image in jQuery, when the mouse is hovered over it.
Silverlight and WPF articles
Silverlight 4: DataBinding with Anonymous Types - In this article, we will see how to bind Anonymous types with Silverlight 4.0 controls. For this demonstration, we will use the Silverlight ‘Datagrid’ control and also some LINQ
WPF 4 DataGrid: Delete Multiple Rows - WPF DataGrid allows us to use inbuilt column types and also allows us to define template columns using various WPF elements e.g. the ComboBox, Image etc. One of the default column template type provided to us, is the CheckBox column. In this article, I have used the same for multiple rows delete from a DataGrid.
WPF: Binding XML Data to UI Elements - In this article, we will see how to bind XML data to WPF UI Elements. In this demonstration, I will try to show you a simple Master-Detail sample
Silverlight 4: StringFormat for DateTime Conversion - In this article, we will see how to use StringFormat property to format the DateTime while binding it to a UI element like Text Box or other similar elements.
Silverlight: Synchronizing Data between ListBox and Textboxes - In Silverlight applications, a common requirement is to to synchronize data between two controls, like the ListBox and TextBox control bound with the same data source. Let us see how.
Silverlight 3D: Using Plane Projection - In this article, we will see how to use 3D Plane Projection in Silverlight
Silverlight 5 Beta Available for Download - Silverlight 5 was unveiled recently by Microsoft during the MIX11 conference in Las Vegas. Some of the exciting new features highlighted are listed in this post.
Silverlight 4: Deleting Multiple Rows from the DataGrid - In the code snippet given in this article, I have explained the technique of deleting multiple rows in a DataGrid
Silverlight and Prism 4 – Prism is a guidance designed and developed by Microsoft which helps in designing and building WPF, Silverlight client applications and Windows Phone 7 applications, which are feature rich, easy and flexible to maintain. DotNetCurry author Mahesh Sabnis has written some cool articles covering Silverlight and Prism.
Silverlight 4: Using the Busy Indicator - When using Silverlight for enterprise line-of-business application or for any media operations, many-a-times we need to perform external HTTP calls for data access. So to make the user comfortable and informed while executing long running operations, we must use a technique that informs the user that something is “happening” behind the scenes. The Silverlight 4 BusyIndicator control provides one such usage in our application.
Silverlight: Data Validations in DataGrid - Silverlight provide the facility of using IDataErrorInfo interface for validation logic. The data model class needs to implement this interface and then the concerned logic for a specific property can be written. In the small code snippet shown below, I have explained this procedure.
SharePoint 2010 Articles and Tutorials - In this post, I wanted to highlight some excellent SharePoint 2010 Articles and Tutorials written by the authors of DotNetCurry.com. I am sure these articles will help you understand the capabilities of SharePoint 2010, as well as give you development, reporting administration and architectural tips and demonstrate techniques on how to resolve existing pain-points while implementing a SharePoint solution in your organization.
View CAML generated by LINQ to SharePoint - In this post, we will see how to view the CAML generated by LINQ to SharePoint
Excel Service User Defined Function in SharePoint Server 2010 - In this post, we will see how to create an Excel Service User Defined Function in SharePoint Server 2010. We will also see how to deploy and enable the UDF using Central Administration Tool. We will also test the function using Microsoft Excel 2010.
Deploy Silverlight Application using SharePoint 2010 Project - In this post we will see how to deploy Silverlight Application using SharePoint Project in Visual Studio 2010.
LINQ and other .NET articles
LINQ: List Classes implementing the IEnumerable Interface - A DevCurry.com reader ‘Richard’ mailed me with a question. He wanted to know an easy way to find all the types that implement the IEnumerable interface, or for that matter, any interface. Here’s a piece of LINQ code that lists all the types implementing the IEnumerable interface
LINQ: Generate a Cartesian Product - A Cartesian product by definition is a direct product of two sets. See an example in LINQ.
My TechEd India 2011 Experience - I had written a post on how to Make the Most of Technical Events like TechEd. Well I am glad I followed my own tips and made the most of the TechEd India 2011 event, I attended last month
Consume Data from Team Foundation Server on Multiple Devices and Operating systems - Microsoft recently released a tool that allows you to expose an OData service for Team Foundation Server 2010. This sample helps developers work with data from Team Foundation Server on multiple types of devices (such as smartphones and tablets) and operating systems.
F# April 2011 CTP Released - Microsoft released the F# April 2011 CTP which provides all the tools and resources needed to develop applications with the F# programming language.
Custom Attributes in .NET - The .NET Framework contains extensibility mechanisms that lets you create your own custom attributes. In this post we will see how to implement a Custom Attribute and use it in our applications.