List/Grid

Tag Archives: .net

Upload a photo on Facebook and Tag it using C#

To upload a photo on Facebook, we need to issue a HTTP POST request to https://graph.facebook.com/[USERID]/photos url. and to tag a user we need to issue a normal HTTP GET… Read more »

Create Tiff Image from multiple images – C#

Create Tiff Image from multiple images – C#

The .NET framework provides very good support for generating and manipulating bitmap images. We can transform images from one form to another and .NET can also be use to generate… Read more »

Getting column names from NHibernate Query

To get the column names from NHibernate Query, we have to use NHibernate.Transform.IResultTransformer here is a small example I have created public class QueryTransformer : NHibernate.Transform.IResultTransformer { private List<string> result… Read more »

Basic Features Of .NET

.Net provides very user friendly environment for developing modern web, windows or any kind of application. 1. Easy development of web applications Provides ASP.NET for developing data driven web applications…. Read more »

Create PDF from HTML using Evo HTML To PDF Using C#

If you want to convert HTML to PDF in .NET, then I bet EVO HTML to PDF is one of the best paid tools available in market. In this you… Read more »

Merging Two Images in .NET

To merge two images what all we need to know is the what would be the final size of image. that is, equivalent to first image or second image or… Read more »

Simple Indexer Example In C#

In this example I will create a simple indexer in C# class indexer_class { List<int> index = new List<int>(); public void set_length(int length) { if (index.Count < length) { index.AddRange(new… Read more »

Authenticate User From LDAP – .NET

The following code will authenticate user from LDAP and is written in C#. string domainAndUsername = _domain + @”\” + userName; DirectoryEntry entry = new DirectoryEntry(_ldapConnectionString, domainAndUsername, userPassword); DirectorySearcher search… Read more »

Handle QueryString Using Reflection In .NET

Recently we encountered an instance where we are required to use the querystring. I created a small class, that will read the query string and return the properties based on… Read more »

Command line to publish an ASP.NET Web Application Using MSBUILD

To publish a web site from command line using Ms Build C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild [Path]\WebProject.csproj \”/t:_CopyWebApplication;ResolveReferences;publish\” /p:OutDir=D:\\Project\\Web\\Bin\\ /p:WebProjectOutputDir=D:\\Project\\Web\\ Similarly, To build a web application project from command line we can use C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBUILD… Read more »