Dot Net Tips & Tricks , C# (C Sharp)Tips & Tricks

Visual Studio .NET Tips and Tricks, VB.NET Code Samples, C# Code Snippets, ASP.NET Code Samples, .NET Tips and Tricks, C# Tips & Tricks, Visual Studio 2010, .NET Framework Code Samples, VB.NET Tips & Tricks

Friday, April 23, 2010

How to pass Database Field Name to SQLDataReader GetString Function

›
How to retrieve data from SQLDataReader using FieldNames in C# (.NET) It is always better practice to use Field names instead of Index. Yo...

Parametrized Query in C# / .NET

›
How to pass parameters in SQL Queries in .NET (C#) Parametrized queries are more secure (avoids SQL Injection etc) and easy to handle. The ...

SQLDataReader - Invalid attempt to read when no data is present

›
The error occurs when there no data is returned / the data has not been read. The first case can be checked using HasRows flag If the da...
Wednesday, April 21, 2010

How to Add Generic List Items to ListBox in C# / VB.NET

›
We have already seen How to Add an ArrayList to ListBox . The following code shows how to add a C# Generic List to ListBox         public...
1 comment:

How to assign an ArrayList to ListBox in .NET (C#)

›
How to add ArrayList items to ListBox (VB.NET/C#) / How to Add Objects to ListBox using C# (.NET) Let us consider an userform with a listb...

Items collection cannot be modified when the DataSource property is set.

›
Sorted property of ListBox Throws error {"Items collection cannot be modified when the DataSource property is set."} The error ...
Monday, April 19, 2010

How to iterate MultiSelect ListBox using C# (.NET)

›
C# - Get Selected Values from MultiSelect ListBox Here is a way of retrieving the selected values of Multiselect listbox for (int i1 = 0;...
3 comments:
‹
›
Home
View web version
Powered by Blogger.