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
»
Code Better
(
RSS
)
.NET 3.5
Architecture
ASP.NET
Extension Methods
Performance
Tips And Tricks
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
Using Initial Capacity Constructor of StringBuilder for Extreme Performace
You must have come across plenty of articles on the internet which talk about using the StringBuilder class when computing large strings for performance gains. Nothing wrong with that. However I have not seen many coders using the Initial Capacity constructor...
Posted
May 08 2008, 01:13 PM
by
raj
with | with
3 comment(s)
Filed under:
Code Better
,
Performance
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
Tip/Trick: Making Non Themeable Properties of ASP.NET Controls Themeable
If you have been using ASP.NET themes feature in your ASP.NET projects, you surely must have come across situations where you wished you could set certain properties of controls via skins. For example, in all my ASP.NET projects, I always want to set...
Posted
Mar 29 2008, 02:56 PM
by
raj
with | with
2 comment(s)
Filed under:
Code Better
,
ASP.NET
,
Tips And Tricks
Handling ASP.NET Session Variables Efficiently
One of the most common mistakes ASP.NET developers make is while accessing session variables. Have a look at the code below: C#: // Writing to session variable Session["UserCountry"] = ddlUserCountry.SelectedValue; // Reading from session variable...
Posted
Dec 19 2007, 05:32 PM
by
raj
with | with
50 comment(s)
Filed under:
Code Better
,
ASP.NET
,
Architecture