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
iPhoneKicks.com RSS Widget Launched
New Social Bookmarking Site for iPhone SDK launched
MSDTC on server '[SERVER NAME]' is unavailable
LINQ ElementAt and ElementAtOrDefault
T-SQL Function to Get Int From Varchar
Tags
.NET 3.5
AJAX
Architecture
ASP.NET
Bugs
C#
Code Better
Community Server
Extension Methods
Facebook
GoDaddy
Google
Humor
IIS
iPhone SDK
LINQ
Management
Mobile
Performance
Security
SharePoint
Silverlight
SQL Server
Tips And Tricks
VB.NET
Vista
Visual Studio
Windows Server
WinForms
WPF
WWF
Archives
December 2008
(3)
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
»
Extension Methods
(
RSS
)
.NET 3.5
ASP.NET
C#
Code Better
VB.NET
WinForms
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
9 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
7 comment(s)
Filed under:
Code Better
,
.NET 3.5
,
Extension Methods
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...
Posted
Mar 03 2008, 09:01 AM
by
raj
with | with
6 comment(s)
Filed under:
ASP.NET
,
WinForms
,
.NET 3.5
,
VB.NET
,
C#
,
Extension Methods