The principle In fact, to call a server-side method from Javascript code, there is only one method:...
Category - C#
Are You Throwing Exceptions Correctly?
We generally use exception and stack trace for tracking down to the problem in our code. But a lots...
How to force a file to download in ASP.NET
This article is about how we can force the user to dowload a particlar file or file type by adding...
What is thread pool? How can we create thread pool in C#
A thread pool is a collection of worker threads that efficiently execute asynchronous callbacks on...
Convert Image to Base64 String and Base64 String to Image
In this post, you will learn how to convert Image to Base64 String and Base64 String to Image...
Enum coversion operations (int to enum, enum to int, string to enum, enum to string)
This post describes how can we convert enum into different data types. These are very often used...
Implementing Cookieless Session – ASP.NET
Cookies are basically text data which a web site may store of the user’s machine. Cookies are...
RSS Feed Generator from Data in C#
In this example you will learn How to Create a Basic RSS Feed using C#. I don’t know any tool...
Web Crawler Sample Code C#
In this example, You will learn hot to crawl a web page or file using a virtual path and store the...
C# Get Current Assembly Version
To get the version of currently executing assembly, you can use Application.ProductVersion. Here is...
How to Pass Parameter to MySQL in C#
To connect to MySQL database you can use the System.Data.Odbc namespace in .net using...
How to Perform Page Output caching in ASP.NET
If your ASP.NET page contains processing and db calls and you know that it’s output is not...
Top 5 Small but Must have Extension Methods
In this post I want to cover some very basic and small extension methods which are very useful for...