1
Answer

i have a kml file and have to display tags of that kml file in asp.net using c# code behind. please help me.

I have this file. i have to display only name, longitude and latitude from kml file into asp.net page.

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2"

xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2"

xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
    <name>poi111.kml</name>
    <Style id="s_ylw-pushpin">
       

<IconStyle>
            <scale>1.1</scale>
            <Icon>
               

<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
            </Icon>
           

<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
        </IconStyle>
    </Style>
    <Style id="s_ylw-

pushpin_hl">
        <IconStyle>
            <scale>1.3</scale>
            <Icon>
               

<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
            </Icon>
           

<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
        </IconStyle>
    </Style>
    <StyleMap id="m_ylw-

pushpin">
        <Pair>
            <key>normal</key>
            <styleUrl>#s_ylw-pushpin</styleUrl>
   

    </Pair>
        <Pair>
            <key>highlight</key>
            <styleUrl>#s_ylw-

pushpin_hl</styleUrl>
        </Pair>
    </StyleMap>
    <Placemark>
                <LookAt>
    

<longitude>67.2302651511</longitude>
        <latitude>24.02362541</latitude>               

<altitude>0</altitude>
            <heading>-3.551731603903435</heading>
            <tilt>0</tilt>
           

<range>1061.257717069211</range>
            <gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>
       

</LookAt>
        <styleUrl>#m_ylw-pushpin</styleUrl>
        <Point>
           

<coordinates>67.03857407832709,24.82564747822379,0</coordinates>
        </Point>
    </Placemark>
</Document>

Answers (1)
0
Kunal Vaishya
NA 4.1k 266.1k 12y

Attachment moviedb.zip

0
Waqas Ali
NA 19 19.4k 12y
Thanks,
Can you tell me how to use this command with a textbox

regionTableAdapter.Insert(5, "NorthWestern");

can i write textbox1.text, textbox2.text instead of 5 and Northwestern. I tried it but it gave me error( I was explicitly converting the textboxes to int32)

????
0
Satyapriya Nayak
NA 53k 8m 12y
Hi Waqas,

Please refer the below links

http://www.c-sharpcorner.com/uploadfile/mimrantaj/connect-to-access-database-in-C-Sharp-and-ado-net/

http://msdn.microsoft.com/en-us/library/aa288452%28v=vs.71%29.aspx

http://www.codeproject.com/Articles/24043/Simple-Movie-Database-in-C-using-Microsoft-Access

Thanks