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

Saturday, May 8, 2010

How to format Currency (Pound/Dollar/Euro etc) using C#/VB.NET/Csharp Writeline function

›
Formatting Currency in C#/VB.NET/Csharp Writeline function You can use .NET's Composite Formatting to format the currency as shown bel...

en-UK is an invalid culture identifier - VB.NET/C#/Csharp

›
Culture is not supported. Parameter name: name en-UK is an invalid culture identifier. en-UK is an invalid culture identifier - VB.NET/C#/...
Friday, May 7, 2010

How to pass an argument by reference in Csharp/C#/VB.NET

›
Pass by Reference/Pass by Value in VB.NET/C-Sharp/C# Here is an example of passing an argument to a function by Value: private static voi...

Input string was not in a correct format. - Csharp/VB.NET WriteLine Function

›
If you are using VB.NET/C# Writeline function and facing the following error, it has to do with formatting Input string was not in a corre...
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...
‹
›
Home
View web version
Powered by Blogger.