Tuesday, January 6, 2015

How to post the data using HTTP Listener in asp.net

How to post the data using HTTP Listener in asp.net Step1:- Create once sample Empty project name it as “HTTPListener” Step2:- And add the new Generic Handler template and name it as “HandlerListener” This will create one default method is public void ProcessRequest(HttpContext context) This method will process the request and resend the request Step3:- Write below code public...
Read More »

Hot to Get the Image form the PDF file in WINDOWS C#

Hot to Get the Image form the PDF file in WINDOWS C# Step1:- Add the reference of the DLL using iTextSharp.text; using iTextSharp.text.pdf; Download the iTextSharp DLL from this link http://itextsharp.soft112.com/ The full name spaces will look like using System; using System.Collections.Generic; using System.Linq; using System.Text; using iTextSharp.text; using iTextSharp.text.pdf; using System.IO; using System.Drawing.Imaging; Step2:- Create one public...
Read More »

How to use simple PIVOT in SQL server(Static Columns)

How to use simple PIVOT in SQL server(Static Columns)  PIVOT: - Pivot is the concept of converting the rows to the columns & columns to the rows This is the static columns display (User manually write the columns names ) Declare @SampleTable as table (Sno int,Names nvarchar(50),Subjects nvarchar(50), Marks int,Location nvarchar(50)); insert into @SampleTable VALUES(1,'Lokesh','Maths',95,'Hyderabad'); insert into @SampleTable VALUES(2,'Lokesh','Science',25,'Hyderabad'); insert into...
Read More »