title: How to Generate a kml through a handler while getting the points from sqlserver into a asp.net
body: <p>I am new in asp.net and I am not understanding how to generate a kml file using an Generic Handler file. I am able to create an handler file and confused where and how to connect database and get the latitude and longitude and define it in kml and should be able to generate the kml.</p>
  
  <p>I had a database table like <code>pmis_gpspoints</code> where in I have columns as <code>p_latitude,p_longitude,p_cd</code>.</p>
  
  <p>I would be passing the <code>p_cd</code> value to the generic handler file for the required kml file.</p>
  
  <p>Anybody please help me out with any code snippets or ideas or references so that I could work out ?</p>