ASP.NET Tips : Getting asynchronous JQuery treeview to work with ASP.NET Webservices

10/07/2009

Recently I had to display some hierarchical data in a treeview. I looked around and found JQuery treeview can transforms an unordered list into an expandable and collapsable tree, and supports both location and cookie based persistence.
treeview1
Fig: JQuery [...]

ASP.NET MVC Tips: 301 Redirect non-www versions of URL to www.

16/05/2009

Search Engine Optimization guides, recommends to have one version of a URL of the same content. Search engines may pickup www and non-www versions of URL as 2 separate URLs, i.e. http://xyz.com/page1 may be considered different to http://www.xyz.com/page1. It is a good idea to pick on of these [...]

ASP.NET MVC Tips: Form POST, TryUpdateModel, unit test, Moq

13/05/2009

Recently I have started playing with the Moq (pronounced "Mock-you" or just "Mock") a Mocking Library for .NET Developers, that takes full advantage of .NET 3.5 (i.e. Linq expression trees) and C# 3.0 features. Here in this post I will discuss how I have used the TryUpdateModel method in [...]

ASP.NET MVC tips: Routing Engine to aid SEO / 301 Redirect / Tracking

10/02/2009

Routing Library resides in the System.Web.Routing Namespace of the .NET Framework 3.5, which provides us the flexibility to use URLs that has no mapping to a physical file. This means ASP.NET MVC framework provides flexible URL mapping engine and enables us to write SEO (Search Engine Optimization) friendly URLs [...]

ASP.NET tips: Display resultset from Multiple DataTable

09/02/2009

I normally do not use DataSet and prefer Objects instead generated by the ORM frameworks, but recently I had to produce a ASP.NET page that displayed a list of records from multiple DataTables. Lets look at a similar example.

Lets assume we consume this DataSet which has two DataTables [...]

ASP.NET tips: CustomBase class with Generic Class

08/01/2009

All our ASP.NET pages must derive from System.Web.UI.Page class, but we can take the advantage of inheritance and create a Custom Base Class to manage Security, Session, Error Handling and other repetitive custom codes elegantly. We normally go and create a custom base class that derives from System.Web.UI.Page class which [...]

Microsoft Chart Controls for ASP.NET and Windows Forms

30/11/2008

Now Microsoft Chart controls Add-on for Microsoft Visual Studio 2008 can be used for charting needs.

Prerequisite: Microsoft Visual Studio 2008 SP1 and Microsoft Chart Controls for Microsoft .NET Framework 3.5.

For sample Environment for Microsoft Chart Controls check here. The sample [...]

Reflection Tips on Nested Classes: Use (+) plus instead of (.) dot with Assembly.GetType

05/11/2008

Lets say we want to use reflection to generate a mock test case for this following Nested Class ClientAddress.class

When we load an assembly from a disk dynamically, we can use GetType to look up a type defined in the assembly.[...]

ASP.NET Tips: DropDownList.ClearSelection() to avoid "Cannot have multiple items selected in DropDownList"

22/08/2008

Problem
I was facing the following Exception when I was programmatically assigning Selected Value of a DropDownList with the following piece of code.

ListItem item = DropDownListTest.Items.FindByValue("Test");
  if (item != null)
     item.Selected = true;

Exception

Cannot have multiple items selected in a DropDownList.

Description: An unhandled [...]

Reflection Tips: Generate Mock objects for Test Cases.

05/08/2008

Filling up Mock objects with random data is possibly one of the most time consuming and boring chapter of writing test cases. Let say we have the following classes and we want to write some mock objects.

SmartDataManagement - Microsoft Visual Studio [...]

 
<12>

What We Offer

  • Web development
  • SEO
  • Application development
  • Consulting
  • Re-engineering/Migration
  • Software maintenance
  • Software enhancement
  • Testing / QA

Technologies

  • Web 2.0
  • C#.NET
  • ASP.NET MVC and ASP.NET
  • DotNetNuke (DNN)
  • Sitefinity
  • Silverlight
  • WPF
  • MS SQL, My SQL
  • Server