Sign in
|
Join
|
Help
in
Current Tags
Technology
code for eternity !!! Blogs
(Entire Site)
code for eternity !!!
community website for .net freaks ;-)
Home
Blogs
This Blog
Home
Syndication
RSS
Atom
Comments RSS
Receive Email Updates
Recent Posts
LINQ ElementAt and ElementAtOrDefault
T-SQL Function to Get Int From Varchar
Developers are Born Brave
Coders versus Project Managers
LINQ Single and SingleOrDefault
Tags
.NET 3.5
AJAX
Architecture
ASP.NET
Bugs
C#
Code Better
Community Server
Extension Methods
Facebook
GoDaddy
Google
Humor
IIS
LINQ
Management
Mobile
Performance
Security
SharePoint
Silverlight
SQL Server
Tips And Tricks
VB.NET
Vista
Visual Studio
Windows Server
WinForms
WPF
WWF
Archives
August 2008
(1)
May 2008
(6)
April 2008
(6)
March 2008
(2)
February 2008
(2)
January 2008
(5)
December 2007
(6)
Technology
Browse by Tags
All Tags
»
.NET 3.5
»
Code Better
(
RSS
)
ASP.NET
Extension Methods
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...
Posted
May 09 2008, 04:03 PM
by
raj
with | with
5 comment(s)
Filed under:
Code Better
,
ASP.NET
,
.NET 3.5
,
Extension Methods
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...
Posted
Apr 15 2008, 11:34 PM
by
raj
with | with
5 comment(s)
Filed under:
Code Better
,
.NET 3.5
,
Extension Methods