<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://dotnetslackers.com/Community/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Sonu on .NET</title><subtitle type="html">DotNetSlackers blog</subtitle><id>http://dotnetslackers.com/Community/blogs/sonukapoor/atom.aspx</id><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/default.aspx" /><link rel="self" type="application/atom+xml" href="http://dotnetslackers.com/Community/blogs/sonukapoor/atom.aspx" /><generator uri="http://communityserver.org" version="3.1.30415.43">Community Server</generator><updated>2008-01-14T11:35:00Z</updated><entry><title>MVP award for 2009</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/10/01/mvp-award-for-2009.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/10/01/mvp-award-for-2009.aspx</id><published>2008-10-01T14:25:00Z</published><updated>2008-10-01T14:25:00Z</updated><content type="html">&lt;p&gt;I just received the notification from Microsoft that I have been re-awarded for the MVP 2009. Its a great feeling to get awarded from Microsoft. I truely appreciate that. &lt;/p&gt;
&lt;p&gt;Thanks MS.&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=29268" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author></entry><entry><title>Data Structures and Algorithms - First Draft</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/08/27/data-structures-and-algorithms-first-draft.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/08/27/data-structures-and-algorithms-first-draft.aspx</id><published>2008-08-27T18:17:00Z</published><updated>2008-08-27T18:17:00Z</updated><content type="html">&lt;p&gt;Today we launched a new project on which &lt;a href="http://msmvps.com/blogs/gbarnett/archive/2008/08/27/data-structures-and-algorithms-book-free-first-preview-available.aspx"&gt;Granville&lt;/a&gt; and &lt;a href="http://blogs.ugidotnet.org/WetBlog/archive/2008/08/27/download-gratuto-data-structure-and-algorithms-ebook.aspx"&gt;Luca&lt;/a&gt; have been working on. The result is a nice PDF e-book that you can download for free here on DotNetSlackers. &lt;/p&gt;
&lt;p&gt;For more info visit: &lt;a href="http://dotnetslackers.com/projects/Data-Structures-And-Algorithms/"&gt;http://dotnetslackers.com/projects/Data-Structures-And-Algorithms/&lt;/a&gt;&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=28724" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author></entry><entry><title>Ajax Futures Preview 4 is available</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/07/22/ajax-futures-preview-4-is-available.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/07/22/ajax-futures-preview-4-is-available.aspx</id><published>2008-07-22T14:00:00Z</published><updated>2008-07-22T14:00:00Z</updated><content type="html">&lt;p&gt;I just saw on &lt;a href="http://weblogs.asp.net/bleroy/archive/2008/07/21/asp-net-ajax-4-0-codeplex-preview-1-available.aspx"&gt;Bertrands blog&lt;/a&gt; (via DotNetSlackers), that the Ajax Futures Preview 1 is available. It also includes client-side template rendering. I have been waiting to try that feature out to see how it differs from the &lt;a href="http://codeplex.com/ajaxdatacontrols"&gt;AjaxDataControls&lt;/a&gt; project here at DotNetSlackers. Besides that, it also includes several other features. I will be looking into the client-side template rendering engine and let you know my thoughts.&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=27985" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author></entry><entry><title>Call to submit feedback for the AjaxDataControls</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/27/call-to-submit-feedback-for-the-ajaxdatacontrols.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/27/call-to-submit-feedback-for-the-ajaxdatacontrols.aspx</id><published>2008-06-27T13:41:00Z</published><updated>2008-06-27T13:41:00Z</updated><content type="html">&lt;p&gt;If you are one of the users that is using our AjaxDataControls, then
we need your help. We are planing to work on the AjaxDataControls to
fix current bugs and to add new features - this may be released as a SP
or as a new release. We are not sure about this yet. &lt;/p&gt;
&lt;p&gt;Nonetheless,
we need your help to submit feedback and feature requests to us. Please
visit our wish list forum and submit your feedback there:&lt;/p&gt;
&lt;p&gt;
http://dotnetslackers.com/Community/forums/wishlist/73.aspx&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=27428" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author><category term="AjaxDataControls" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/AjaxDataControls/default.aspx" /><category term="ADC" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/ADC/default.aspx" /></entry><entry><title>AjaxDataControls (ADC) FAQ - How to get started with the AjaxDataControls and Visual Studio 2008? </title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/24/ajaxdatacontrols-adc-faq-how-to-get-started-with-the-ajaxdatacontrols-and-visual-studio-2008.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/24/ajaxdatacontrols-adc-faq-how-to-get-started-with-the-ajaxdatacontrols-and-visual-studio-2008.aspx</id><published>2008-06-24T04:04:00Z</published><updated>2008-06-24T04:04:00Z</updated><content type="html">&lt;p&gt;This is a followup small how-to on my previous post:&lt;/p&gt;
&lt;p&gt;&lt;a target="_self" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/13/ajaxdatacontrols-adc-faq-how-to-get-started-with-the-ajaxdatacontrols-with-visual-studio-2005.aspx" class="null"&gt;AjaxDataControls (ADC) FAQ - How to get started with the AjaxDataControls with Visual Studio 2005?&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The basic idea is the same, however to make it easy to get started with VS2008 and ADC, I will repeat some steps that were used in my previous post. &lt;/p&gt;
&lt;p&gt;Fireup up Visual Studio 2008 and select File-&amp;gt;New Website. The first thing you will notice is that there is no &amp;quot;Ajax Enabled Website&amp;quot; template anymore. The reason is simple: ASP.NET Ajax is already built into .NET 3.5. Therefore we will go ahead and select &amp;quot;ASP.NET Web Site&amp;quot;. I will call my project simply ADCSampleWebsiteVS2008 - feel free to change this to whatever you like.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/ADC-VS2008-Step1.jpg"&gt;&lt;img border="0" src="http://dotnetslackers.com/Community/blogs/sonukapoor/ADC-VS2008-Step1.jpg" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have created the empty project, you need to make sure that you add the necessary AjaxDataControls.dll, which you can get from:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://codeplex.com/ajaxdatacontrols"&gt;http://codeplex.com/ajaxdatacontrols&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However make sure that you get the binaries that were compiled for .net 3.5.&lt;/p&gt;
&lt;p&gt;Once you have added the dll, we need to make some small changes to the web.config and add the following line between the &amp;lt;controls&amp;gt; section:&lt;/p&gt;
&lt;p&gt;&amp;lt;add tagPrefix=&amp;quot;AjaxData&amp;quot; namespace=&amp;quot;AjaxDataControls&amp;quot; assembly=&amp;quot;AjaxDataControls&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;Your section should look like this now:&lt;/p&gt;
&lt;p&gt;&amp;lt;pages&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;controls&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add tagPrefix=&amp;quot;AjaxData&amp;quot; namespace=&amp;quot;AjaxDataControls&amp;quot; assembly=&amp;quot;AjaxDataControls&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/controls&amp;gt;&lt;br /&gt;&amp;lt;/pages&amp;gt;&lt;br /&gt;&lt;br /&gt;If you want to return DataTables from your webservice or pageMethods you will also need to declare the following converters:&lt;/p&gt;
&lt;p&gt;&amp;lt;jsonSerialization maxJsonLength=&amp;quot;4194304&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;converters&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;DataSetConverter&amp;quot; type=&amp;quot;Microsoft.Web.Preview.Script.Serialization.Converters.DataSetConverter, Microsoft.Web.Preview&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;DataRowConverter&amp;quot; type=&amp;quot;Microsoft.Web.Preview.Script.Serialization.Converters.DataRowConverter, Microsoft.Web.Preview&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;DataTableConverter&amp;quot; type=&amp;quot;Microsoft.Web.Preview.Script.Serialization.Converters.DataTableConverter, Microsoft.Web.Preview&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/converters&amp;gt;&lt;br /&gt;&amp;lt;/jsonSerialization&amp;gt;&lt;/p&gt;
&lt;p&gt;Besides that you will need to download the ASP.NET Futures and add the binaries Microsoft.Web.Preview.dll to your website project - make sure that you use the .net 3.5 binaries here as well. &lt;/p&gt;
&lt;p&gt;This should go in between the &amp;lt;scripting&amp;gt;/&amp;lt;webServices&amp;gt; section. &lt;/p&gt;
&lt;p&gt;You are now done with the web.config.&lt;/p&gt;
&lt;p&gt;The rest is basically the same as described &lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/13/ajaxdatacontrols-adc-faq-how-to-get-started-with-the-ajaxdatacontrols-with-visual-studio-2005.aspx" class="null"&gt;here&lt;/a&gt;. You need to add the webservice - a test function and the script code. Follow the steps in the mentioned post and you should be ready to go. &lt;/p&gt;
&lt;p&gt;You can download the ADCSample VS2008&amp;nbsp;Website from &lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/ADCSampleWebsiteVS2008.zip"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=27364" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author><category term="AjaxDataControls" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/AjaxDataControls/default.aspx" /><category term="Visual Studio Team System 2008" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/Visual+Studio+Team+System+2008/default.aspx" /><category term="ADC" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/ADC/default.aspx" /></entry><entry><title>DotNetSlackers Ranking System - first beta</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/18/dotnetslackers-ranking-system-first-beta.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/18/dotnetslackers-ranking-system-first-beta.aspx</id><published>2008-06-18T13:25:00Z</published><updated>2008-06-18T13:25:00Z</updated><content type="html">&lt;p&gt;We have finally launched a new ranking system at DotNetSlackers. You can read about it here:&lt;/p&gt;
&lt;p&gt;http://dotnetslackers.com/ranks&lt;/p&gt;
&lt;p&gt;Any feedback is appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=27276" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author></entry><entry><title>AjaxDataControls (ADC) FAQ - INDEX</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/14/ajaxdatacontrols-adc-faq-index.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/14/ajaxdatacontrols-adc-faq-index.aspx</id><published>2008-06-14T02:58:00Z</published><updated>2008-06-14T02:58:00Z</updated><content type="html">&lt;p&gt;Welcome to the AjaxDataControls FAQ.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/13/ajaxdatacontrols-adc-faq-how-to-get-started-with-the-ajaxdatacontrols-with-visual-studio-2005.aspx" class="null"&gt;How to get started with the AjaxDataControls with Visual Studio 2005?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/24/ajaxdatacontrols-adc-faq-how-to-get-started-with-the-ajaxdatacontrols-and-visual-studio-2008.aspx" class="null"&gt;AjaxDataControls (ADC) FAQ - How to get started with the AjaxDataControls and Visual Studio 2008? &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/13/ajaxdatacontrols-adc-faq-loop-through-the-items.aspx" class="null"&gt;How to loop through all items?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/12/faq-ajaxdatacontrols-getitemindex.aspx" class="null"&gt;How to get the desired item from the control?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/12/ajaxdatacontrols-adc-faq-datalist.aspx" class="null"&gt;How to use the SelectedIndexChangedEvent in the DataList control?&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you feel there are questions missing in this FAQ, please feel free to email us through the contact form. &lt;/p&gt;
&lt;p&gt;Please note that this page is under constriction&lt;/p&gt;
&lt;p&gt;Last Updated: 24-June-2008&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=27211" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author><category term="AjaxDataControls" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/AjaxDataControls/default.aspx" /><category term="FAQ" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/FAQ/default.aspx" /></entry><entry><title>AjaxDataControls (ADC) FAQ - How to get started with the AjaxDataControls with Visual Studio 2005?</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/13/ajaxdatacontrols-adc-faq-how-to-get-started-with-the-ajaxdatacontrols-with-visual-studio-2005.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/13/ajaxdatacontrols-adc-faq-how-to-get-started-with-the-ajaxdatacontrols-with-visual-studio-2005.aspx</id><published>2008-06-14T01:52:00Z</published><updated>2008-06-14T01:52:00Z</updated><content type="html">&lt;p&gt;This is a&amp;nbsp;quick how to&amp;nbsp;post for everyone that would like to get started with the AjaxDataControls. I will cover all steps one by one to show you easy the controls can be used. &lt;/p&gt;
&lt;p&gt;Open Visual Studio 2005 and create a new ASP.NET Ajax Enabled Website:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/ADC1.jpg"&gt;&lt;img border="0" src="http://dotnetslackers.com/Community/blogs/sonukapoor/ADC1.jpg" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Add a reference to the AjaxDataControls.dll to your bin folder. You can download the binaries from &lt;a href="http://www.codeplex.com/AjaxDataControls/Release/ProjectReleases.aspx?ReleaseId=8312" class="null"&gt;here&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;Once you have added the dll, we need to make some small changes to the web.config and add the following line between the &amp;lt;controls&amp;gt; section:&lt;/p&gt;
&lt;p&gt;&amp;lt;add tagPrefix=&amp;quot;AjaxData&amp;quot; namespace=&amp;quot;AjaxDataControls&amp;quot; assembly=&amp;quot;AjaxDataControls&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;Your section should look like this now:&lt;/p&gt;
&lt;p&gt;&amp;lt;pages&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;controls&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add tagPrefix=&amp;quot;asp&amp;quot; namespace=&amp;quot;System.Web.UI&amp;quot; assembly=&amp;quot;System.Web.Extensions, Version=1.0.61025.0,&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Culture=neutral, PublicKeyToken=31bf3856ad364e35&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add tagPrefix=&amp;quot;AjaxData&amp;quot; namespace=&amp;quot;AjaxDataControls&amp;quot; assembly=&amp;quot;AjaxDataControls&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/controls&amp;gt;&lt;br /&gt;&amp;lt;/pages&amp;gt;&lt;br /&gt;&lt;br /&gt;If you want to return DataTables from your webservice or pageMethods you will also need to declare the following converters:&lt;/p&gt;
&lt;p&gt;&amp;lt;jsonSerialization maxJsonLength=&amp;quot;4194304&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;converters&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;DataSetConverter&amp;quot; type=&amp;quot;Microsoft.Web.Preview.Script.Serialization.Converters.DataSetConverter, Microsoft.Web.Preview&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;DataRowConverter&amp;quot; type=&amp;quot;Microsoft.Web.Preview.Script.Serialization.Converters.DataRowConverter, Microsoft.Web.Preview&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;DataTableConverter&amp;quot; type=&amp;quot;Microsoft.Web.Preview.Script.Serialization.Converters.DataTableConverter, Microsoft.Web.Preview&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/converters&amp;gt;&lt;br /&gt;&amp;lt;/jsonSerialization&amp;gt;&lt;/p&gt;
&lt;p&gt;Besides that you will need to download the ASP.NET Futures and add the binaries Microsoft.Web.Preview.dll to your website project. &lt;/p&gt;
&lt;p&gt;This should go in between the &amp;lt;scripting&amp;gt;/&amp;lt;webServices&amp;gt; section. &lt;/p&gt;
&lt;p&gt;You are now done with the web.config.&lt;/p&gt;
&lt;p&gt;Now let us start with a simple webservice that will return some test data. Right click on the project and select &amp;quot;Add New Item&amp;quot; and select &amp;quot;Web Service&amp;quot; and give it the name DataService.asmx. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/adc2.jpg"&gt;&lt;img border="0" src="http://dotnetslackers.com/Community/blogs/sonukapoor/adc2.jpg" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Open the DataService.vb and add the following namespace: &lt;/p&gt;
&lt;p&gt;Imports System.Web.Script.Services&lt;br /&gt;Imports System.Data&lt;/p&gt;
&lt;p&gt;Replace this line: &lt;/p&gt;
&lt;p&gt;&amp;lt;Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()&amp;gt; _&lt;/p&gt;
&lt;p&gt;with:&lt;/p&gt;
&lt;p&gt;&amp;lt;ScriptService()&amp;gt; _&lt;/p&gt;
&lt;p&gt;Add a test function that will return a DataTable with some test data:&lt;/p&gt;
&lt;p&gt;&amp;lt;WebMethod()&amp;gt; _&lt;br /&gt;Public Function TestData() As DataTable&lt;br /&gt;&amp;nbsp; Dim dt As New DataTable(&amp;quot;t1&amp;quot;)&lt;br /&gt;&amp;nbsp; dt.Columns.Add(&amp;quot;image&amp;quot;)&lt;br /&gt;&amp;nbsp; dt.Columns.Add(&amp;quot;title&amp;quot;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; For i As Integer = 0 To 10&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Rows.Add(New Object() {&amp;quot;c:\img&amp;quot; &amp;amp; i.ToString() &amp;amp; &amp;quot;.jpg&amp;quot;, &amp;quot;image-&amp;quot; &amp;amp; i.ToString()})&lt;br /&gt;&amp;nbsp; Next&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Return dt&lt;br /&gt;End Function&lt;/p&gt;
&lt;p&gt;Open the default.aspx and drop an AjaxData Gridview into the page and give it the id MyGrid. By default it will autogenerate the columns for you based on your datasource. Next we need to set the webservice that we created earlier into the ScriptManager:&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:ScriptManager ID=&amp;quot;ScriptManager1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;Services&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ServiceReference Path=&amp;quot;~/DataService.asmx&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/Services&amp;gt;&lt;br /&gt;&amp;lt;/asp:ScriptManager&amp;gt;&lt;/p&gt;
&lt;p&gt;Below the GridView markup add the following BLOCKED SCRIPT&lt;/p&gt;
&lt;p&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;var _grid = null;&lt;br /&gt;function pageLoad(sender, e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; _grid = $find(&amp;#39;&amp;lt;%= MyGrid.ClientID %&amp;gt;&amp;#39;);&lt;br /&gt;&amp;nbsp; DataService.TestData(onLoadSuccess);&lt;br /&gt;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;function onLoadSuccess(result)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; _grid.set_dataSource(result.rows);&lt;br /&gt;&amp;nbsp; _grid.dataBind();&lt;br /&gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;The first function is called automatically by the asp.net ajax framework whenever the page has loaded. In that function I retrieve an object of the Gridview control and store it into a local variable. Then I make a webservice call to the TestData function and pass the onLoadSuccess function to it, which will be called when the call has finished. &lt;/p&gt;
&lt;p&gt;The onLoadSuccess takes the returned data sets the datasource via the set_dataSource function and binds the grid. Here is the result:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/adc3.jpg"&gt;&lt;img border="0" src="http://dotnetslackers.com/Community/blogs/sonukapoor/adc3.jpg" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can download the ADCSample Website from &lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/ADCSampleWebsite.zip" class="null"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=27210" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author><category term="AjaxDataControls" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/AjaxDataControls/default.aspx" /><category term="ADC" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/ADC/default.aspx" /><category term="FAQ" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/FAQ/default.aspx" /><category term="gridview" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/gridview/default.aspx" /></entry><entry><title>AjaxDataControls (ADC) FAQ - Loop through the items</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/13/ajaxdatacontrols-adc-faq-loop-through-the-items.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/13/ajaxdatacontrols-adc-faq-loop-through-the-items.aspx</id><published>2008-06-13T14:03:00Z</published><updated>2008-06-13T14:03:00Z</updated><content type="html">&lt;p&gt;Sometimes you may want to loop through all the items in any of the ADCControls after it has been bound. The following code demonstrates this: &lt;/p&gt;
&lt;p&gt;function loopItems()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var items = dataList.get_items();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var item in items)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;Now in the case you are searching for a certain bound property inside the control you can add the following code section inside the loop:&lt;/p&gt;
&lt;p&gt;var dataItem = items[item].get_dataItem();&lt;br /&gt;// We are looking for the image where the image name is &amp;quot;img0&amp;quot;&lt;br /&gt;if (dataItem.image == &amp;quot;img0&amp;quot;)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; index = items[item].get_itemIndex();&lt;br /&gt;&amp;nbsp; break;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;Here is the completed function:&lt;/p&gt;
&lt;p&gt;function getItem()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var index = -1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var items = dataList.get_items();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var item in items)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dataItem = items[item].get_dataItem();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (dataItem.image == &amp;quot;img0&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; index = items[item].get_itemIndex();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(index);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return index;&lt;br /&gt;}&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=27196" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author></entry><entry><title>AjaxDataControls (ADC) FAQ - get_items()[index]</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/12/faq-ajaxdatacontrols-getitemindex.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/12/faq-ajaxdatacontrols-getitemindex.aspx</id><published>2008-06-12T13:45:00Z</published><updated>2008-06-12T13:45:00Z</updated><content type="html">&lt;p&gt;Remember that you can always use the the following javascript code to get the desired item from any of the data controls. &lt;/p&gt;
&lt;p&gt;var index = 3;&lt;br /&gt;var item = adcControl.get_items()[index];&lt;br /&gt;item.findControl(&amp;quot;your control&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=27185" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author><category term="AjaxDataControls" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/AjaxDataControls/default.aspx" /><category term="ADC" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/ADC/default.aspx" /><category term="FAQ" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/FAQ/default.aspx" /><category term="get_items()" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/get_5F00_items_28002900_/default.aspx" /><category term="findcontrol" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/findcontrol/default.aspx" /></entry><entry><title>AjaxDataControls (ADC) FAQ - DataList - SelectedIndexChangedEvent</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/12/ajaxdatacontrols-adc-faq-datalist.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/12/ajaxdatacontrols-adc-faq-datalist.aspx</id><published>2008-06-12T12:59:00Z</published><updated>2008-06-12T12:59:00Z</updated><content type="html">&lt;p&gt;I am going to start an &lt;a href="http://codeplex.com/ajaxdatacontrols"&gt;AjaxDataControls &lt;/a&gt;FAQ on my blog with the most knowen properties/events and show them how you can use them. The first series will cover the DataList control - an index will be added as soon as there are more FAQ&amp;#39;s posted. In this first post, I will show you how you can make use of the SelectedIndexChanged event inside the datalist control. &lt;/p&gt;
&lt;p&gt;Basically there are two steps that you need to do. &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;You need to define the &lt;b&gt;SelectedIndexChangedEvent&lt;/b&gt; in the properties of the DataList control.&lt;/li&gt;
&lt;li&gt;You need to define the&amp;nbsp;&lt;b&gt;commandName&lt;/b&gt;&amp;nbsp;property on the html elements.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Here is an example:&lt;/p&gt;
&lt;p&gt;&amp;lt;AjaxData:DataList ID=&amp;quot;ImagesList&amp;quot; runat=&amp;quot;server&amp;quot; Visible=True&lt;br /&gt;&amp;nbsp; ItemDataBoundEvent=&amp;quot;OnItemDataBoundEvent&amp;quot;&lt;br /&gt;&amp;nbsp; &lt;b&gt;SelectedIndexChangedEvent=&amp;quot;OnSelectedIndexChangedEvent&amp;quot;&lt;/b&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;span id=&amp;quot;spanPhoto&amp;quot; &lt;b&gt;commandName=&amp;quot;select&amp;quot;&lt;/b&gt;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;span id=&amp;quot;spanTitle&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;/AjaxData:DataList&amp;gt;&lt;/p&gt;
&lt;p&gt;You can even set the &lt;b&gt;commandName&lt;/b&gt; on both span&amp;#39;s if you want.&lt;/p&gt;
&lt;p&gt;In your JavaScript you would define the OnSelectedIndexChangedEvent in the following way:&lt;br /&gt;&amp;nbsp;&lt;br /&gt;function OnSelectedIndexChangedEvent(sender, e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; var item = _dataList.get_selectedItem();&lt;br /&gt;&amp;nbsp; var span = item.findControl(&amp;quot;spanPhoto&amp;quot;);&lt;br /&gt;&amp;nbsp; var inner = span.innerHTML;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; // now you could basically do whatever you want with the image. &lt;br /&gt;}&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=27184" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author><category term="AjaxDataControls" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/AjaxDataControls/default.aspx" /><category term="ADC" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/ADC/default.aspx" /><category term="FAQ" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/FAQ/default.aspx" /></entry><entry><title>Jason Gaylord joins the ADC team</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/09/jason-gaylord-joins-the-adc-team.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/09/jason-gaylord-joins-the-adc-team.aspx</id><published>2008-06-09T13:26:00Z</published><updated>2008-06-09T13:26:00Z</updated><content type="html">&lt;p&gt;I am very happy to announce that &lt;a href="http://weblogs.asp.net/jgaylord/archive/2008/06/09/need-quot-out-of-the-box-quot-ajax-functionality-for-your-data-controls.aspx"&gt;Jason Gaylord&lt;/a&gt; has joined the &lt;a href="http://www.codeplex.com/AjaxDataControls"&gt;Ajax Data Controls&lt;/a&gt; (ADC) team. Jason has tons of experience with AJAX and I am pretty sure that he will be a great benefit for the project. &lt;/p&gt;
&lt;p&gt;Jason has just uploaded the binaries for Visual Studio 2008 - you can grab them from &lt;a href="https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=AjaxDataControls&amp;amp;ReleaseId=8312"&gt;here&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;If you need Ajax Data Controls in your asp.net project - then ADC is the way to go :)&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=27140" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author><category term="AjaxDataControls" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/AjaxDataControls/default.aspx" /><category term="ADC" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/ADC/default.aspx" /></entry><entry><title>ASP.NET MVC - KIGG</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/02/19/asp-net-mvc-kigg.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/02/19/asp-net-mvc-kigg.aspx</id><published>2008-02-19T03:10:00Z</published><updated>2008-02-19T03:10:00Z</updated><content type="html">&lt;p&gt;&lt;a href="http://dotnetslackers.com/info/about.aspx"&gt;We &lt;/a&gt;are proud to announce the release of KIGG - a real world live application build with ASP.NET MVC. You can see the live application at the following link:&lt;/p&gt;&lt;p&gt;&lt;a href="http://kigg.dotnetslackers.com/"&gt;http://kigg.dotnetslackers.com&lt;/a&gt;&lt;/p&gt;&lt;p&gt;The source is released under open source and can be downloaded from &lt;a href="http://www.codeplex.com/Kigg"&gt;codeplex&lt;/a&gt;. As usual we would love to hear some comments from you. Take a look at it and let us know what you think about it. &lt;br /&gt;&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=17425" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author><category term="kigg" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/kigg/default.aspx" /><category term="mvc" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/mvc/default.aspx" /><category term="asp.net mvc" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/asp.net+mvc/default.aspx" /></entry><entry><title>AjaxDataControls on Ajaxian</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/02/13/ajaxdatacontrols-on-ajaxian.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/02/13/ajaxdatacontrols-on-ajaxian.aspx</id><published>2008-02-13T15:32:00Z</published><updated>2008-02-13T15:32:00Z</updated><content type="html">&lt;p&gt;I am happy to see that ADC got mentioned on Ajaxian.com (see &lt;a href="http://ajaxian.com/archives/ajaxdatacontrols-v10-ajax-extensison-for-net"&gt;here&lt;/a&gt;). Kazi and the other team members have been working very hard on the v1.0 release and I personally think that these are very robust components. I have been using them for a while without any problems. Why don&amp;#39;t you try it and let us know what you think about it? We would love to hear some feedback from you guys.  &lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=17245" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author><category term="AjaxDataControls" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/AjaxDataControls/default.aspx" /><category term="ADC" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/ADC/default.aspx" /></entry><entry><title>AjaxDataControls v1.0 Goes Live</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/01/14/ajaxdatacontrols-v1-0-goes-live.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/01/14/ajaxdatacontrols-v1-0-goes-live.aspx</id><published>2008-01-14T14:35:00Z</published><updated>2008-01-14T14:35:00Z</updated><content type="html">&lt;p&gt;As Kazi &lt;a href="http://weblogs.asp.net/rashid/archive/2008/01/14/ajaxdatacontrols-v1-0-goes-live.aspx"&gt;mentioned&lt;/a&gt; on his blog, we are finally live with the first release (1.0) of ADC. A big thanks goes to Kazi for creating these nice and easy to use controls along with all those fancy ajax features. I would also like to thank the developers and members that have submitted bug reports, fixes and suggestions to us. I strongly recommend the ADC. I have been using it for a while for an internal project and they work very nice - the learning curve is 0% if you have already worked with the standard Gridview, Repeater, Datalist controls.&amp;nbsp;&lt;/p&gt;&lt;p&gt;You can download the first release from here:&lt;br /&gt;&lt;a href="http://www.codeplex.com/AjaxDataControls/Release/ProjectReleases.aspx?ReleaseId=8312"&gt;http://www.codeplex.com/AjaxDataControls/Release/ProjectReleases.aspx?ReleaseId=8312&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Kazi&amp;#39;s blog post with some screenshots:&lt;br /&gt;&lt;a href="http://weblogs.asp.net/rashid/archive/2008/01/14/ajaxdatacontrols-v1-0-goes-live.aspx"&gt;http://weblogs.asp.net/rashid/archive/2008/01/14/ajaxdatacontrols-v1-0-goes-live.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Some live examples on DotNetSlackers:&lt;br /&gt;&lt;a href="http://dotnetslackers.com/projects/AjaxDataControls"&gt;http://dotnetslackers.com/projects/AjaxDataControls&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=14031" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author><category term="ADC" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/ADC/default.aspx" /></entry></feed>