<?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-06-13T23:52:00Z</updated><entry><title>AjaxDataControls V2 - Try it - Pre beta release!</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2009/03/17/ajaxdatacontrols-v2-try-it.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2009/03/17/ajaxdatacontrols-v2-try-it.aspx</id><published>2009-03-17T12:23:00Z</published><updated>2009-03-17T12:23:00Z</updated><content type="html">&lt;p&gt;I think it is time to let you guys try out or pre-beta release of the AjaxDataControls
Version 2. We have added several features and improved the code. Please
note that we are still testing the controls thoroughly and therefore I
am &lt;span style="text-decoration:underline;"&gt;&lt;b&gt;not recommending&lt;/b&gt;&lt;/span&gt; you to use these in a live
environment. There is no documentation yet either, however the project
contains examples of the new features and new examples will be added
shortly. The documentation will be updated within few days as well. The
main reason to get this out was to receive useful feedback from you so
that we improve the controls. Here is a list of features that we have
added or changed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Grouping: you can now group rows in the Gridview control (see Grouping.aspx in the /gridview folder)&lt;/li&gt;
&lt;li&gt;New Events:
&lt;ul&gt;
&lt;li&gt;onMouseover / onMouseout (see mouseover.aspx)&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;DataBoundEvent: called after the control(s) has been databound (see Basic.aspx in the /datalist folder)&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;InsertCommandEvent: Adds a new row at the bottom of the control to add a new row (see InsertRow.aspx in the /gridview folder)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;insertRows/insertItems method: You can also add new rows into the
gridview/datalist/repeater via the js insertRows/insertItems methods.
(see InsertRow-ClientSide.aspx in the /Gridview folder and /datalist
folder)&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Eval: You may now use the new Eval(&amp;quot;ColumnName&amp;quot;) expression instead
of using the ItemDataBound/RowDataBound (see Basic.aspx in the
/datalist folder)&lt;/li&gt;
&lt;li&gt;Drag/drop has been improved and is using jQuery instead of the
ASP.NET Ajax framework - the jQuery files are included in the sample
project.. &lt;br /&gt;&lt;/li&gt;
&lt;li&gt;New AutoCreateScriptVariable Property: The default value is true.
This will allow automatically create a javascript variable with the
same name as the server ADC control. &lt;/li&gt;
&lt;li&gt;The
GridViewCheckboxColumn will now add a checkbox to the header, which
when clicked will check/uncheck all rows. (see DifferentColumns.aspx in
the /Gridview folder).&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;New DropDownListColumn Column: This
column allows you to add a new column with a dropdownlist. (see
ComplexEditing.aspx in the /gridview folder)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Once again, I would like to mention that this is a pre beta release. &lt;/p&gt;
&lt;p&gt;You can get the source-code along with the binaries and the sample project from the below link:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;a href="https://www.assembla.com/wiki/show/AjaxDataControls"&gt;Assembla Project Homepage&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;a href="http://code.assembla.com/AjaxDataControls/subversion/nodes"&gt;Source-Code&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;a href="http://code.assembla.com/AjaxDataControls/subversion/nodes/Sample/Bin"&gt;Binaries&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;We are looking forward for your &lt;a href="http://dotnetslackers.com/Community/forums/asp.net-ajax-datacontrols/71.aspx"&gt;feedback&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=30949" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author></entry><entry><title>Team Foundation Server - Unable to checkin deleted files</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2009/02/23/team-foundation-server-unable-to-checkin-deleted-files.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2009/02/23/team-foundation-server-unable-to-checkin-deleted-files.aspx</id><published>2009-02-23T15:12:00Z</published><updated>2009-02-23T15:12:00Z</updated><content type="html">&lt;p&gt;The other day I added some files to my Visual Studio project, which I deleted later, however somehow they were not deleted from within TFS. Now I did continue with my coding of other files etc.. and when it was time to check-in my changes, TFS wanted to check-in the deleted files as well, which was very strange to me, since the files did not exist anymore - the change was marked as &amp;quot;add&amp;quot; instead of &amp;quot;deleted&amp;quot;. Due to that I was not able to check-in my other files. To overcome this issue you just need to &lt;b&gt;undo&lt;/b&gt; the changes of the deleted files, which will delete the files permanently and allow you to check-in your other files back in. Hope this helps someone.&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=30731" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author><category term="team foundation server" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/team+foundation+server/default.aspx" /><category term="tfs" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/tfs/default.aspx" /><category term="delete" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/delete/default.aspx" /></entry><entry><title>AjaxDataControls V2 - Feature Preview</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2009/01/30/ajaxdatacontrols-v2-feature-preview.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2009/01/30/ajaxdatacontrols-v2-feature-preview.aspx</id><published>2009-01-30T14:09:00Z</published><updated>2009-01-30T14:09:00Z</updated><content type="html">&lt;p&gt;I have working on and off on version 2 of the AjaxDataControls. One feature that I wanted to implement and use was the databind items to all controls via the Eval() method. With the help of Onur, one of our ADC developers, we have now this ability to do so. Now instead of using the ItemDataBound event you can use directly the Eval method in your markup, which will look something like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;AjaxData:Repeater ID=&amp;quot;Repeater1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;Name: {{ Eval(FirstName }}&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Last mame: {{ Eval(LastName }}&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age: {{ Eval (Age) }}&lt;/b&gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;/AjaxData:Repeater&amp;gt;&lt;/p&gt;
&lt;p&gt;More examples will be coming soon.&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=30574" 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>My jQuery impressions</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2009/01/29/my-jquery-impressions.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2009/01/29/my-jquery-impressions.aspx</id><published>2009-01-29T14:33:00Z</published><updated>2009-01-29T14:33:00Z</updated><content type="html">&lt;p&gt;&lt;a href="http://www.jquery.com"&gt;jQuery&lt;/a&gt; is a great library. I use jQuery in several of my projects and have to say that it is the best library I have ever used. Its a easily extendable as well. For the past, I have been using the drag and drop features, they perform much better than what the ASP.NET ajax library. Recently I also tried the &lt;a href="http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/"&gt;Table drag and drop plugin&lt;/a&gt;, which allows you to change the row positions of a table; and guess what it works like a charm. &lt;/p&gt;
&lt;p&gt;jQuery 1.3 was &lt;a href="http://blog.jquery.com/2009/01/21/jquery-131-released/"&gt;released&lt;/a&gt; just few days back and has lots of improvements as well as new features. &lt;a href="http://nettuts.com/tutorials/javascript-ajax/everything-you-need-to-know-about-jquery-13/"&gt;Nettus&lt;/a&gt; has a nice summary of the new features along with charts and other statistics to show the goodness of the latest release. Our very own member Xun Ding, has several jQuery articles to help you get started - checkout his blog: &lt;a href="http://dotnetslackers.com/Community/blogs/xun/default.aspx"&gt;http://dotnetslackers.com/Community/blogs/xun/default.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I strongly recommend the jQuery library.&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=30551" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author></entry><entry><title>Download Win7 Now</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2009/01/09/download-win7-now.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2009/01/09/download-win7-now.aspx</id><published>2009-01-09T03:18:00Z</published><updated>2009-01-09T03:18:00Z</updated><content type="html">&lt;p&gt;I just came to know&amp;nbsp;from &amp;nbsp;&lt;a href="http://guy.dotnet-expertise.com/PermaLink,guid,ea3d6f7e-05b0-440b-9bf9-521ed9ad1d93.aspx" class="null"&gt;Guy Barrett&lt;/a&gt;, that Windows7 is already available to download for MSDN and Technet subscribers. I am downloading it at this moment. &lt;/p&gt;
&lt;p&gt;Get it now, before&amp;nbsp;the first&amp;nbsp;2.5Million copies are gone and you can&amp;#39;t download it anymore. &lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=30408" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author><category term="windows7" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/windows7/default.aspx" /></entry><entry><title>Follow me on Twitter</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/12/04/follow-me-on-twitter.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/12/04/follow-me-on-twitter.aspx</id><published>2008-12-04T14:05:00Z</published><updated>2008-12-04T14:05:00Z</updated><content type="html">&lt;p&gt;I have finally joined the forces of twitter - first I didn&amp;#39;t really like it, but now I love it. I think its a great way to stay connected with others. In my twitter I will be posting about dotnetslackers, ajaxdatacontrols and my life :)&lt;/p&gt;
&lt;p&gt;Follow me: &lt;a title="Follow me!" href="http://twitter.com/dotnetslackers"&gt;http://twitter.com/dotnetslackers&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=30145" width="1" height="1"&gt;</content><author><name>sonu</name><uri>http://dotnetslackers.com/Community/members/sonu.aspx</uri></author><category term="twitter" scheme="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/tags/twitter/default.aspx" /></entry><entry><title>AjaxDataControls (ADC) FAQ - How to use an js array to bind a GridView?</title><link rel="alternate" type="text/html" href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/11/18/ajaxdatacontrols-adc-faq-how-to-use-an-js-array-to-bind-a-gridview.aspx" /><id>http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/11/18/ajaxdatacontrols-adc-faq-how-to-use-an-js-array-to-bind-a-gridview.aspx</id><published>2008-11-18T15:00:00Z</published><updated>2008-11-18T15:00:00Z</updated><content type="html">&lt;p&gt;A similar question was asked today in the &lt;a href="http://dotnetslackers.com/Community/forums/asp.net-ajax-datacontrols/71.aspx"&gt;ADC forums&lt;/a&gt;. Remember that the ADC controls can bind pure Javascript arrays without any problems. Here is a quick example:&lt;/p&gt;
&lt;p&gt;&amp;lt;AjaxData:Gridview ID=&amp;quot;ImagesList&amp;quot; runat=&amp;quot;server&amp;quot; Visible=True&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Columns&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;AjaxData:GridViewBoundColumn DataField=&amp;quot;Id&amp;quot; HeaderText=&amp;quot;Id&amp;quot;&amp;gt;&amp;lt;/AjaxData:GridViewBoundColumn&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;AjaxData:GridViewBoundColumn DataField=&amp;quot;Name&amp;quot; HeaderText=&amp;quot;Name&amp;quot;&amp;gt;&amp;lt;/AjaxData:GridViewBoundColumn&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Columns&amp;gt;&lt;br /&gt;&amp;lt;/AjaxData:Gridview&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function pageLoad(sender, e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var data = new Array();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data[0] = { Id: 1, Name: &amp;quot;Sonu Kapoor&amp;quot; };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data[1] = { Id: 2, Name: &amp;quot;Xun Ding&amp;quot; };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data[2] = { Id: 3, Name: &amp;quot;Gabriel&amp;quot; };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data[3] = { Id: 3, Name: &amp;quot;Onur&amp;quot; };&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; adc.set_dataSource(data);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; adc.dataBind();&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/06/14/ajaxdatacontrols-adc-faq-index.aspx"&gt;See other FAQ examples.&lt;/a&gt;&lt;/p&gt;&lt;img src="http://dotnetslackers.com/Community/aggbug.aspx?PostID=30001" 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>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;li&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/sonukapoor/archive/2008/11/18/ajaxdatacontrols-adc-faq-how-to-use-an-js-array-to-bind-a-gridview.aspx"&gt;How to use plain JS to bind the GridView?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/xun/archive/2009/01/13/itemcommandevent-of-adc-repeater-control.aspx"&gt;How to use the ItemCommandEvent of the ADC Repeater Control?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/xun/archive/2009/01/14/dynamic-adc-controls-master-child-nested-adc-controls.aspx"&gt;How to create nested ADC controls a.k.a parent/child?&lt;/a&gt;&lt;br /&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 me through the contact form. &lt;/p&gt;
&lt;p&gt;Please note that this page is under constriction.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Last Updated: 15-Jan-2009&lt;/b&gt;&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></feed>