<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server, SQL Server Express, and SqlDataSource Control</title><link>http://forums.asp.net/54.aspx</link><description>All about SQL Server, SQL Server Express, MSDE, and the SqlDataSource control.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Help assigning a datasource to the gmap control in C#</title><link>http://forums.asp.net/thread/3274714.aspx</link><pubDate>Sat, 04 Jul 2009 13:57:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274714</guid><dc:creator>liangchu</dc:creator><author>liangchu</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274714.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=54&amp;PostID=3274714</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello!&lt;/p&gt;
&lt;p&gt;I see that this post is a little bit old, for other readers it might be helpful.&lt;/p&gt;
&lt;p&gt;Here:&lt;/p&gt;
&lt;p&gt;&lt;font face="Lucida Console" size="2"&gt;&amp;lt;/P&amp;gt;
&amp;lt;P&amp;gt;fields.Add(new DataSourceField(45, 2, &amp;quot;hola&amp;quot;));&lt;br /&gt;fields.Add(new DataSourceField(46, 3));&amp;lt;/P&amp;gt;
&amp;lt;P&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Datasourucefield should be the actual name of the field in your dataset/datatable and not its value.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Help assigning a datasource to the gmap control in C#</title><link>http://forums.asp.net/thread/1915311.aspx</link><pubDate>Tue, 18 Sep 2007 22:36:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1915311</guid><dc:creator>iggabriel</dc:creator><author>iggabriel</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1915311.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=54&amp;PostID=1915311</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to assign a datasource to a gmap control in 2.0 so that i can get pushpins in the map for all the locations in the sql db. I&amp;#39;ve enclosed my code below as well as a link to the site that provides the control and their sample. Can anyone tell me why it won&amp;#39;t show the pins? What am I doing wrong?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My Code (sqllocations is a datasource):&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;GMap1.DataSource = sqllocations;&lt;/p&gt;
&lt;p&gt;GMap1.DataBind();&lt;/p&gt;
&lt;p&gt;Their site: &lt;a href="http://en.googlemaps.subgurim.net/ejemplos/ejemplo_991000_DataSource.aspx"&gt;http://en.googlemaps.subgurim.net/ejemplos/ejemplo_991000_DataSource.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Their example (part of their explanation is&amp;nbsp;not english, sorry):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;List&amp;lt;DataSourceField&amp;gt; fields = new List&amp;lt;DataSourceField&amp;gt;(); &lt;br /&gt;&lt;br /&gt;fields.Add(new DataSourceField(45, 2, &amp;quot;hola&amp;quot;));&lt;br /&gt;fields.Add(new DataSourceField(46, 3));&lt;br /&gt;&lt;br /&gt;// Lo comentamos porque al utilizar la clase DataSourceField, &lt;br /&gt;// pero si fuera un dataset o cualquier otra cosa, &lt;br /&gt;// le deberíamos dar los nombres correspondientes&lt;br /&gt;// GMap1.DataLatField = &amp;quot;lat&amp;quot;;&lt;br /&gt;// GMap1.DataLngField = &amp;quot;lng&amp;quot;;&lt;br /&gt;// GMap1.DataGInfoWindowTextField = &amp;quot;gInfoWindowText&amp;quot;;&lt;br /&gt;&lt;br /&gt;GMap1.DataSource = fields;&lt;br /&gt;GMap1.DataBind();&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>