Browse by Tags

All Tags » .net (RSS)

Getting started with Unit Testing in C# by aghausman12

Introduction: In this post, I will explain you how can we write a unit test in c#. It is a basic guideline for those who wants a quick start. Unit testing is an integral part of any software that is developed. It is an advantage which most of us are either...

Get Countries Name in .Net by aghausman12

Introduction: In this post, I will explain you how can we get the countries name filled in any collection using .net without using any database. It is a regular task, which we all as developers did some past day but the difference is we used database...
Filed under: ,

Migrate from WordPress to BlogEngine.net by aghausman12

In this post, I will explain how to migrate a blog running on Word Press (Self Hosted) to BlogEngine. But before I start let me say, that Word Press simply rocks. The reason why I plan to switch my blog is customization. Since I am a dotnet geek, I really...
Filed under: , ,

Show images on Grid View from File Stream SQL Server 2008 by aghausman12

Background : In my last post about SQL Server 2008 new feature File Stream (Saving and Retrieving File Using FileStream SQL Server 2008) , we did an example of saving an image to the file stream and then retrieve it back and make it available for download...
Filed under: , ,

Custom Paging in Grid view by aghausman12

So, it takes too long for me to write this post. even though I completed the coding stuff a week back but it is really hard to manage time these days. In this post, I will explain and demonstrate you how to create custom paging in Grid view control. Paging...
Filed under: , , ,

Datatable to JSON by aghausman12

In this post I will explain you, how can we serialize Datatable to JSON. So that, it can easily pass to JavaScript to get the AJAX done. First of all fill a Datatable with some results. DataTable dt = new DataTable();   SqlConnection objSqlCon =...
Filed under: , , , ,

Authenticated File Access using HTTP Handler. by aghausman12

In this post I will explain you how authenticate the request directly coming to access a file that is downloadable. some thing like *.pdf or *.zip. Mostly, people make it working by creating an *.aspx page and then write binary of that file in Response...
Filed under: , ,

How to pass parameters to the dynamically added user control by aghausman12

In this post, I will explain how you can pass parameter to the dynamically added (from code behind) User Control. Most of you might aware of how we can achieve this in web application project. Following is the code for that 1: Dim objCon As Control =...
Filed under: , ,

Saving and Retrieving File Using FileStream SQL Server 2008 by aghausman12

FileStream data type is a very important feature of SQL Server 2008 and gradually getting popular amongst developer for it’s feasibility. And in the past few days specially after “ Configure SQL Server 2008 for File Stream ” post. I received several feedbacks...
Filed under: , , ,

Get Column name From Stored Procedure by aghausman12

The requirement of the day is to extract the name of the columns returned by procedures. Stored Procedures are dynamic that is why we need to create a function that takes Stored Procedure name as parameter and return the column names in string. So here...
Filed under: , ,
More Posts Next page »