Agha Usman

Lives in Karachi (Pakistan) and work for Ciber Strategies

Browse by Tags

All Tags » c# (RSS)
Custom Paging in Grid view
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...
Datatable to JSON
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 =...
Authenticated File Access using HTTP Handler.
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...
Posted: May 08 2009, 03:21 AM by aghausman12 | with 3 comment(s)
Filed under: , ,
Saving and Retrieving File Using FileStream SQL Server 2008
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...
Validate username using custom validation (AJAX)
In this post, I will explain you how to have an ajax call on custom validator control and check for the username in the database. This task will include two pages one is the form page (default.aspx in our case) in which we have the custom validator and...
Posted: Jan 05 2009, 12:08 PM by aghausman12 | with 7 comment(s)
Filed under: , , ,
Get list of installed printers using C# WMI
Well, almost about an year back I write an application which search for the available printer on the server and do some operation accordingly. Today while browsing my code library I found that small test application. So I thought it would be good to share...
Posted: Dec 30 2008, 02:57 PM by aghausman12 | with no comments
Filed under: , ,
ASP menu to show files in a folder
In this post, we will see how can we fill the Asp Menu by specifying folder instead of some other data source. Following is the folder structure which this code is supported Root -> Folder 1 -> Files -> Folder 2 -> Files -> Folder 3 ->...
Posted: Dec 19 2008, 06:47 PM by aghausman12 | with no comments
Filed under: , ,
More Posts