in

code for eternity !!!

community website for .net freaks ;-)
All Tags » .NET 3.5 (RSS)

Browse by Tags

  • LINQ Single and SingleOrDefault

    We can use the Single extension method of LINQ to return the only element in a sequence that satisfies a specified condition. However the Single extension method would throw the System.InvalidOperationException when no element in a sequence satisfies a specified condition. In such a scenario, we can...
    Posted to Technology (Weblog) by raj on 05-10-2008
  • AddItem Extension Method for BulletedList, CheckBoxList, DropDownList, ListBox, RadioButtonList

    We would have to write the below code to add a new item (with value) to any of these 5 controls (BulletedList, CheckBoxList, DropDownList, ListBox, RadioButtonList) C#: bulletedList.Items.Add(new ListItem("text", "value")); checkBoxList.Items.Add(new ListItem("text", "value"...
    Posted to Technology (Weblog) by raj on 05-09-2008
  • LINQ Last and LastOrDefault

    We can use the Last extension method of LINQ to return the last element in a sequence that satisfies a specified condition. However the Last extension method would throw the System.InvalidOperationException when no element in a sequence satisfies a specified condition. In such a scenario, we can use...
    Posted to Technology (Weblog) by raj on 04-27-2008
  • LINQ First and FirstOrDefault

    We can use the First extension method of LINQ to return the first element in a sequence that satisfies a specified condition. However the First extension method would throw the System.InvalidOperationException when no element in a sequence satisfies a specified condition. In such a scenario, we can use...
    Posted to Technology (Weblog) by raj on 04-25-2008
  • Cool Extension Methods for IDataReader Interface

    I find it really annoying to use the GetOrdinal method of the DataReader class everytime I have to access data in a strongly typed manner using any of the Get[DataType] methods of the DataReader class. Have a look at below code: int employeeID = dr.GetInt32(dr.GetOrdinal("EmployeeID")); string...
    Posted to Technology (Weblog) by raj on 04-15-2008
  • System.Data.DataSetExtensions Assembly Error in Visual Studio 2008 RTM

    After upgrading from Visual Studio 2008 Beta 2 to Visual Studio 2008 RTM, I got the following error when I tried to build my ASP.NET 3.5 project which was initially coded using Visual Studio 2008 Beta 2: Could not load file or assembly 'System.Data.DataSetExtensions, Version=2.0.0.0, Culture=neutral...
    Posted to Technology (Weblog) by raj on 04-05-2008
  • Cool TrimText Extension Method for TextBox

    Extension Methods are one of the most powerful features of .NET 3.5 and they can add a lot of flexibility to your code and help in cutting down your code size significantly if used wisely. I have been using a lot of Extension Methods in my code lately. One of them is the TrimText Extension Method for...
    Posted to Technology (Weblog) by raj on 03-03-2008
  • Building a Web 2.0 Portal with ASP.NET 3.5

    I recently purchased this great new book named Building a Web 2.0 Portal with ASP.NET 3.5 by Omar Al Zabir and I would highly recommend this book to any architect or developer who is interested in learning how to design and develop world class highly scalable ASP.NET web portals using the latest and...
    Posted to Technology (Weblog) by raj on 02-13-2008
Page 1 of 1 (8 items)


StopGlobalWarming.org  
Powered by Community Server (Non-Commercial Edition), by Telligent Systems