<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mohammed Osman &#187; ASP.NET</title>
	<atom:link href="http://osman.it/category/aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://osman.it</link>
	<description></description>
	<lastBuildDate>Mon, 05 Dec 2011 20:05:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Crystal Reports and Silverlight</title>
		<link>http://osman.it/aspnet/crystal-reports-and-silverlight/</link>
		<comments>http://osman.it/aspnet/crystal-reports-and-silverlight/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 16:39:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>

		<guid isPermaLink="false">http://osman.it/?p=573</guid>
		<description><![CDATA[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/20795 © admin for Mohammed Osman, 2011. &#124; Permalink &#124; No comment &#124; Add to del.icio.us Post tags: Feed enhanced by Better Feed from Ozh]]></description>
			<content:encoded><![CDATA[<p>http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/20795</p>
<img src="http://osman.it/?ak_action=api_record_view&id=573&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fosman.it%2Faspnet%2Fcrystal-reports-and-silverlight%2F&amp;title=Crystal%20Reports%20and%20Silverlight" id="wpa2a_2"><img src="http://osman.it/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><hr />
<p><small>© admin for <a href="http://osman.it">Mohammed Osman</a>, 2011. |
<a href="http://osman.it/aspnet/crystal-reports-and-silverlight/">Permalink</a> |
<a href="http://osman.it/aspnet/crystal-reports-and-silverlight/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://osman.it/aspnet/crystal-reports-and-silverlight/&title=Crystal Reports and Silverlight">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://osman.it/aspnet/crystal-reports-and-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jqGrid 3.5 is finally released</title>
		<link>http://osman.it/aspnet/jqgrid-3-5-is-finally-released/</link>
		<comments>http://osman.it/aspnet/jqgrid-3-5-is-finally-released/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 14:27:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Ajax-enabled]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jqGrid]]></category>

		<guid isPermaLink="false">http://osman.in/?p=504</guid>
		<description><![CDATA[jqGrid is an Ajax-enabled JavaScript control that provides solutions for representing and manipulating tabular data on the web. Since the grid is a client-side solution loading data dynamically through Ajax callbacks, it can be integrated with any server-side technology, including PHP, ASP, Java Servlets, JSP, ColdFusion, and Perl. © admin for Mohammed Osman, 2009. &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>jqGrid is an Ajax-enabled JavaScript control that provides solutions for representing and manipulating tabular data on the web. Since the grid is a client-side solution loading data dynamically through Ajax callbacks, it can be integrated with any server-side technology, including PHP, ASP, Java Servlets, JSP, ColdFusion, and Perl. </p>
<img src="http://osman.it/?ak_action=api_record_view&id=504&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fosman.it%2Faspnet%2Fjqgrid-3-5-is-finally-released%2F&amp;title=jqGrid%203.5%20is%20finally%20released" id="wpa2a_4"><img src="http://osman.it/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><hr />
<p><small>© admin for <a href="http://osman.it">Mohammed Osman</a>, 2009. |
<a href="http://osman.it/aspnet/jqgrid-3-5-is-finally-released/">Permalink</a> |
<a href="http://osman.it/aspnet/jqgrid-3-5-is-finally-released/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://osman.it/aspnet/jqgrid-3-5-is-finally-released/&title=jqGrid 3.5 is finally released">del.icio.us</a>
<br/>
Post tags: <a href="http://osman.it/tag/ajax-enabled/" rel="tag">Ajax-enabled</a>, <a href="http://osman.it/tag/javascript/" rel="tag">Javascript</a>, <a href="http://osman.it/tag/jqgrid/" rel="tag">jqGrid</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://osman.it/aspnet/jqgrid-3-5-is-finally-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET MVC ExtJS using LINQ</title>
		<link>http://osman.it/aspnet/aspnet-mvc-extjs-using-linq/</link>
		<comments>http://osman.it/aspnet/aspnet-mvc-extjs-using-linq/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 23:26:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET MVC ExtJS using LINQ]]></category>

		<guid isPermaLink="false">http://osman.in/?p=395</guid>
		<description><![CDATA[Someone recently requested me to send me the sample asp.net application using MVC ExtJS and LINQ. Here is the application with our infamous northwind database and Categories table. &#160; &#160; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Script.Serialization; &#160; using Northwind; &#160; namespace Controllers &#123; public class CategoryController : Controller &#123; [...]]]></description>
			<content:encoded><![CDATA[<p>Someone recently requested me to send me the sample asp.net application using MVC ExtJS and LINQ.</p>
<p>Here is the application with our infamous northwind database and Categories table.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Collections.Generic</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Linq</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Web</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Web.Mvc</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Web.Script.Serialization</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Northwind</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">namespace</span> Controllers
<span style="color: #008000;">&#123;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> CategoryController <span style="color: #008000;">:</span> Controller
    <span style="color: #008000;">&#123;</span>
    	<span style="color: #0600FF; font-weight: bold;">public</span> ActionResult Index<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
		<span style="color: #008000;">&#123;</span>
			ViewData<span style="color: #008000;">&#91;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>Title<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#93;</span> <span style="color: #008000;">=</span> <span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>Category Page<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;;</span>
            ViewData<span style="color: #008000;">&#91;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>Message<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#93;</span> <span style="color: #008000;">=</span> <span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>Welcome to Category Page<span style="color: #008000;">!&amp;</span>quot<span style="color: #008000;">;;</span>
&nbsp;
            <span style="color: #0600FF; font-weight: bold;">return</span> View<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		<span style="color: #008000;">&#125;</span>
		<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> LoadCategory<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #6666cc; font-weight: bold;">int</span> id <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">int</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parse</span><span style="color: #008000;">&#40;</span>Request<span style="color: #008000;">.</span><span style="color: #0000FF;">Form</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>id<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #6666cc; font-weight: bold;">string</span> message <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Empty</span><span style="color: #008000;">;</span>
            NorthwindDataContext db <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> NorthwindDataContext<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            var query <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">from</span> c <span style="color: #0600FF; font-weight: bold;">in</span> db<span style="color: #008000;">.</span><span style="color: #0000FF;">Categorys</span>
                        <span style="color: #0600FF; font-weight: bold;">where</span> c<span style="color: #008000;">.</span><span style="color: #0000FF;">CategoryID</span> <span style="color: #008000;">==</span> id
                        <span style="color: #0600FF; font-weight: bold;">select</span> <span style="color: #008000;">new</span>
                        <span style="color: #008000;">&#123;</span>
                        	c<span style="color: #008000;">.</span><span style="color: #0000FF;">CategoryID</span>,
							c<span style="color: #008000;">.</span><span style="color: #0000FF;">CategoryName</span>,
							c<span style="color: #008000;">.</span><span style="color: #0000FF;">Description</span>,
							c<span style="color: #008000;">.</span><span style="color: #0000FF;">Picture</span>
&nbsp;
                        <span style="color: #008000;">&#125;</span><span style="color: #008000;">;</span>
&nbsp;
            JavaScriptSerializer serializer <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> JavaScriptSerializer<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            message <span style="color: #008000;">=</span> <span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#123;</span>\<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>results\<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;:&amp;</span>quot<span style="color: #008000;">;</span> <span style="color: #008000;">+</span> serializer<span style="color: #008000;">.</span><span style="color: #0000FF;">Serialize</span><span style="color: #008000;">&#40;</span>query<span style="color: #008000;">.</span><span style="color: #0000FF;">ToList</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">+</span> <span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#125;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;;</span>
&nbsp;
            Response<span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span>message<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> ListCategory<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">int</span> limit, <span style="color: #6666cc; font-weight: bold;">int</span> start, <span style="color: #6666cc; font-weight: bold;">string</span> dir, <span style="color: #6666cc; font-weight: bold;">string</span> sort<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #6666cc; font-weight: bold;">string</span> message <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Empty</span><span style="color: #008000;">;</span>
            NorthwindDataContext db <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> NorthwindDataContext<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            var query <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">from</span> c <span style="color: #0600FF; font-weight: bold;">in</span> db<span style="color: #008000;">.</span><span style="color: #0000FF;">Categorys</span>
                        <span style="color: #0600FF; font-weight: bold;">select</span> <span style="color: #008000;">new</span>
                        <span style="color: #008000;">&#123;</span>
                        	c<span style="color: #008000;">.</span><span style="color: #0000FF;">CategoryID</span>,
							c<span style="color: #008000;">.</span><span style="color: #0000FF;">CategoryName</span>,
							c<span style="color: #008000;">.</span><span style="color: #0000FF;">Description</span>,
							c<span style="color: #008000;">.</span><span style="color: #0000FF;">Picture</span>
&nbsp;
                        <span style="color: #008000;">&#125;</span><span style="color: #008000;">;</span>
            <span style="color: #6666cc; font-weight: bold;">int</span> totalRecords <span style="color: #008000;">=</span> query<span style="color: #008000;">.</span><span style="color: #0000FF;">ToList</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Count</span><span style="color: #008000;">;</span>
            JavaScriptSerializer serializer <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> JavaScriptSerializer<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            var list <span style="color: #008000;">=</span> query<span style="color: #008000;">.</span><span style="color: #0000FF;">Skip</span><span style="color: #008000;">&#40;</span>start<span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Take</span><span style="color: #008000;">&#40;</span>limit<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            message <span style="color: #008000;">=</span> <span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#123;</span>\<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>total\<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;:</span> \<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;&amp;</span>quot<span style="color: #008000;">;</span> <span style="color: #008000;">+</span> totalRecords <span style="color: #008000;">+</span> <span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>\<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>, \<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>results\<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;:&amp;</span>quot<span style="color: #008000;">;</span> <span style="color: #008000;">+</span> serializer<span style="color: #008000;">.</span><span style="color: #0000FF;">Serialize</span><span style="color: #008000;">&#40;</span>list<span style="color: #008000;">.</span><span style="color: #0000FF;">ToList</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">+</span> <span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#125;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;;</span>
&nbsp;
            Response<span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span>message<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> <span style="color: #008000;">New</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            Category _Category <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Category<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
			<span style="color: #6666cc; font-weight: bold;">string</span> _CategoryID <span style="color: #008000;">=</span> Request<span style="color: #008000;">.</span><span style="color: #0000FF;">Form</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>CategoryID<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span>
			<span style="color: #0600FF; font-weight: bold;">if</span><span style="color: #008000;">&#40;</span>_CategoryID <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span> <span style="color: #008000;">&amp;</span>amp<span style="color: #008000;">;&amp;</span>amp<span style="color: #008000;">;</span> _CategoryID <span style="color: #008000;">!=</span> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Empty</span><span style="color: #008000;">&#41;</span>
			<span style="color: #008000;">&#123;</span>
				_Category<span style="color: #008000;">.</span><span style="color: #0000FF;">CategoryID</span> <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">int</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parse</span><span style="color: #008000;">&#40;</span>_CategoryID<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
			<span style="color: #008000;">&#125;</span>
&nbsp;
			<span style="color: #6666cc; font-weight: bold;">string</span> _CategoryName <span style="color: #008000;">=</span> Request<span style="color: #008000;">.</span><span style="color: #0000FF;">Form</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>CategoryName<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span>
			<span style="color: #0600FF; font-weight: bold;">if</span><span style="color: #008000;">&#40;</span>_CategoryName <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span> <span style="color: #008000;">&amp;</span>amp<span style="color: #008000;">;&amp;</span>amp<span style="color: #008000;">;</span> _CategoryName <span style="color: #008000;">!=</span> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Empty</span><span style="color: #008000;">&#41;</span>
			<span style="color: #008000;">&#123;</span>
				_Category<span style="color: #008000;">.</span><span style="color: #0000FF;">CategoryName</span> <span style="color: #008000;">=</span> _CategoryName<span style="color: #008000;">;</span>
			<span style="color: #008000;">&#125;</span>
&nbsp;
			<span style="color: #6666cc; font-weight: bold;">string</span> _Description <span style="color: #008000;">=</span> Request<span style="color: #008000;">.</span><span style="color: #0000FF;">Form</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>Description<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span>
			<span style="color: #0600FF; font-weight: bold;">if</span><span style="color: #008000;">&#40;</span>_Description <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span> <span style="color: #008000;">&amp;</span>amp<span style="color: #008000;">;&amp;</span>amp<span style="color: #008000;">;</span> _Description <span style="color: #008000;">!=</span> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Empty</span><span style="color: #008000;">&#41;</span>
			<span style="color: #008000;">&#123;</span>
				_Category<span style="color: #008000;">.</span><span style="color: #0000FF;">Description</span> <span style="color: #008000;">=</span> _Description<span style="color: #008000;">;</span>
			<span style="color: #008000;">&#125;</span>
&nbsp;
			<span style="color: #6666cc; font-weight: bold;">string</span> _Picture <span style="color: #008000;">=</span> Request<span style="color: #008000;">.</span><span style="color: #0000FF;">Form</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>Picture<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span>
			<span style="color: #0600FF; font-weight: bold;">if</span><span style="color: #008000;">&#40;</span>_Picture <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span> <span style="color: #008000;">&amp;</span>amp<span style="color: #008000;">;&amp;</span>amp<span style="color: #008000;">;</span> _Picture <span style="color: #008000;">!=</span> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Empty</span><span style="color: #008000;">&#41;</span>
			<span style="color: #008000;">&#123;</span>
				_Category<span style="color: #008000;">.</span><span style="color: #0000FF;">Picture</span> <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">;</span>
			<span style="color: #008000;">&#125;</span>
			NorthwindDataContext db <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> NorthwindDataContext<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">try</span>
            <span style="color: #008000;">&#123;</span>
                db<span style="color: #008000;">.</span><span style="color: #0000FF;">Categorys</span><span style="color: #008000;">.</span><span style="color: #0000FF;">InsertOnSubmit</span><span style="color: #008000;">&#40;</span>_Category<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                db<span style="color: #008000;">.</span><span style="color: #0000FF;">SubmitChanges</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
            <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#40;</span>Exception ex<span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                <span style="color: #6666cc; font-weight: bold;">string</span> error <span style="color: #008000;">=</span> ex<span style="color: #008000;">.</span><span style="color: #0000FF;">Message</span><span style="color: #008000;">;</span>
                <span style="color: #008080; font-style: italic;">//log the error here</span>
            <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008000;">&#125;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> Edit<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
        	<span style="color: #6666cc; font-weight: bold;">int</span> id <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">int</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parse</span><span style="color: #008000;">&#40;</span>Request<span style="color: #008000;">.</span><span style="color: #0000FF;">Form</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>id<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	        NorthwindDataContext db <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> NorthwindDataContext<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Category obj <span style="color: #008000;">=</span> db<span style="color: #008000;">.</span><span style="color: #0000FF;">Categorys</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Single</span><span style="color: #008000;">&lt;</span>category<span style="color: #008000;">&gt;&lt;/</span>category<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span>c <span style="color: #008000;">=&amp;</span>gt<span style="color: #008000;">;</span> c<span style="color: #008000;">.</span><span style="color: #0000FF;">CategoryID</span> <span style="color: #008000;">==</span> id<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
			<span style="color: #6666cc; font-weight: bold;">string</span> _CategoryName <span style="color: #008000;">=</span> Request<span style="color: #008000;">.</span><span style="color: #0000FF;">Form</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>CategoryName<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span>
			<span style="color: #0600FF; font-weight: bold;">if</span><span style="color: #008000;">&#40;</span>_CategoryName <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span> <span style="color: #008000;">&amp;</span>amp<span style="color: #008000;">;&amp;</span>amp<span style="color: #008000;">;</span> _CategoryName <span style="color: #008000;">!=</span> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Empty</span><span style="color: #008000;">&#41;</span>
			<span style="color: #008000;">&#123;</span>
				obj<span style="color: #008000;">.</span><span style="color: #0000FF;">CategoryName</span> <span style="color: #008000;">=</span> _CategoryName<span style="color: #008000;">;</span>
			<span style="color: #008000;">&#125;</span>
&nbsp;
			<span style="color: #6666cc; font-weight: bold;">string</span> _Description <span style="color: #008000;">=</span> Request<span style="color: #008000;">.</span><span style="color: #0000FF;">Form</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>Description<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span>
			<span style="color: #0600FF; font-weight: bold;">if</span><span style="color: #008000;">&#40;</span>_Description <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span> <span style="color: #008000;">&amp;</span>amp<span style="color: #008000;">;&amp;</span>amp<span style="color: #008000;">;</span> _Description <span style="color: #008000;">!=</span> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Empty</span><span style="color: #008000;">&#41;</span>
			<span style="color: #008000;">&#123;</span>
				obj<span style="color: #008000;">.</span><span style="color: #0000FF;">Description</span> <span style="color: #008000;">=</span> _Description<span style="color: #008000;">;</span>
			<span style="color: #008000;">&#125;</span>
&nbsp;
			<span style="color: #6666cc; font-weight: bold;">string</span> _Picture <span style="color: #008000;">=</span> Request<span style="color: #008000;">.</span><span style="color: #0000FF;">Form</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>Picture<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span>
			<span style="color: #0600FF; font-weight: bold;">if</span><span style="color: #008000;">&#40;</span>_Picture <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span> <span style="color: #008000;">&amp;</span>amp<span style="color: #008000;">;&amp;</span>amp<span style="color: #008000;">;</span> _Picture <span style="color: #008000;">!=</span> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Empty</span><span style="color: #008000;">&#41;</span>
			<span style="color: #008000;">&#123;</span>
				obj<span style="color: #008000;">.</span><span style="color: #0000FF;">Picture</span> <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">;</span>
			<span style="color: #008000;">&#125;</span>
&nbsp;
	  		<span style="color: #0600FF; font-weight: bold;">try</span>
            <span style="color: #008000;">&#123;</span>
                db<span style="color: #008000;">.</span><span style="color: #0000FF;">SubmitChanges</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
            <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#40;</span>Exception ex<span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                <span style="color: #6666cc; font-weight: bold;">string</span> error <span style="color: #008000;">=</span> ex<span style="color: #008000;">.</span><span style="color: #0000FF;">Message</span><span style="color: #008000;">;</span>
                <span style="color: #008080; font-style: italic;">//log the error here</span>
            <span style="color: #008000;">&#125;</span>
		<span style="color: #008000;">&#125;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> Delete<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
        	NorthwindDataContext db <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> NorthwindDataContext<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #6666cc; font-weight: bold;">string</span> data <span style="color: #008000;">=</span> Request<span style="color: #008000;">.</span><span style="color: #0000FF;">Form</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>data<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #0600FF; font-weight: bold;">foreach</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span> o <span style="color: #0600FF; font-weight: bold;">in</span> data<span style="color: #008000;">.</span><span style="color: #0000FF;">Split</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">','</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
            	<span style="color: #6666cc; font-weight: bold;">int</span> id <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">int</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parse</span><span style="color: #008000;">&#40;</span>o<span style="color: #008000;">.</span><span style="color: #0000FF;">ToString</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	            Category obj <span style="color: #008000;">=</span> db<span style="color: #008000;">.</span><span style="color: #0000FF;">Categorys</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Single</span><span style="color: #008000;">&lt;</span>category<span style="color: #008000;">&gt;&lt;/</span>category<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span>c <span style="color: #008000;">=&amp;</span>gt<span style="color: #008000;">;</span> c<span style="color: #008000;">.</span><span style="color: #0000FF;">CategoryID</span> <span style="color: #008000;">==</span> id<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                db<span style="color: #008000;">.</span><span style="color: #0000FF;">Categorys</span><span style="color: #008000;">.</span><span style="color: #0000FF;">DeleteOnSubmit</span><span style="color: #008000;">&#40;</span>obj<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
            db<span style="color: #008000;">.</span><span style="color: #0000FF;">SubmitChanges</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
	<span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">namespace</span> Northwind
<span style="color: #008000;">&#123;</span>
	<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Data.Linq</span><span style="color: #008000;">;</span>
	<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Data.Linq.Mapping</span><span style="color: #008000;">;</span>
	<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Data</span><span style="color: #008000;">;</span>
	<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Collections.Generic</span><span style="color: #008000;">;</span>
	<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Reflection</span><span style="color: #008000;">;</span>
	<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Linq</span><span style="color: #008000;">;</span>
	<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Linq.Expressions</span><span style="color: #008000;">;</span>
	<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.ComponentModel</span><span style="color: #008000;">;</span>
	<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
&nbsp;
	<span style="color: #008000;">&#91;</span><span style="color: #000000;">System.<span style="color: #0000FF;">Data</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Linq</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Mapping</span><span style="color: #008000;">.</span><span style="color: #0000FF;">DatabaseAttribute</span><span style="color: #008000;">&#40;</span>Name<span style="color: #008000;">=&amp;</span>quot<span style="color: #008000;">;</span>Northwind<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span>
	<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">partial</span> <span style="color: #6666cc; font-weight: bold;">class</span> NorthwindDataContext <span style="color: #008000;">:</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Data</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Linq</span><span style="color: #008000;">.</span><span style="color: #0000FF;">DataContext</span>
	<span style="color: #008000;">&#123;</span>
		<span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Data</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Linq</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Mapping</span><span style="color: #008000;">.</span><span style="color: #0000FF;">MappingSource</span> mappingSource <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> AttributeMappingSource<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
		<span style="color: #008080;">#region Extensibility Method Definitions</span>
	    <span style="color: #0600FF; font-weight: bold;">partial</span> <span style="color: #6666cc; font-weight: bold;">void</span> OnCreated<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
	    <span style="color: #0600FF; font-weight: bold;">partial</span> <span style="color: #6666cc; font-weight: bold;">void</span> InsertCategory<span style="color: #008000;">&#40;</span>Category instance<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	    <span style="color: #0600FF; font-weight: bold;">partial</span> <span style="color: #6666cc; font-weight: bold;">void</span> UpdateCategory<span style="color: #008000;">&#40;</span>Category instance<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	    <span style="color: #0600FF; font-weight: bold;">partial</span> <span style="color: #6666cc; font-weight: bold;">void</span> DeleteCategory<span style="color: #008000;">&#40;</span>Category instance<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	        <span style="color: #008080;">#endregion</span>
&nbsp;
	    <span style="color: #0600FF; font-weight: bold;">public</span> NorthwindDataContext<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">:</span>
				<span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">&#40;</span>global<span style="color: #008000;">::</span><span style="color: #000000;">System.<span style="color: #0000FF;">Configuration</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">ConfigurationManager</span><span style="color: #008000;">.</span><span style="color: #0000FF;">ConnectionStrings</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>NorthwindConnectionString<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">ConnectionString</span>, mappingSource<span style="color: #008000;">&#41;</span>
		<span style="color: #008000;">&#123;</span>
			OnCreated<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		<span style="color: #008000;">&#125;</span>
&nbsp;
		<span style="color: #0600FF; font-weight: bold;">public</span> NorthwindDataContext<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span> connection<span style="color: #008000;">&#41;</span> <span style="color: #008000;">:</span>
				<span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">&#40;</span>connection, mappingSource<span style="color: #008000;">&#41;</span>
		<span style="color: #008000;">&#123;</span>
			OnCreated<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		<span style="color: #008000;">&#125;</span>
&nbsp;
		<span style="color: #0600FF; font-weight: bold;">public</span> NorthwindDataContext<span style="color: #008000;">&#40;</span><span style="color: #000000;">System.<span style="color: #0000FF;">Data</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">IDbConnection</span> connection<span style="color: #008000;">&#41;</span> <span style="color: #008000;">:</span>
				<span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">&#40;</span>connection, mappingSource<span style="color: #008000;">&#41;</span>
		<span style="color: #008000;">&#123;</span>
			OnCreated<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		<span style="color: #008000;">&#125;</span>
&nbsp;
		<span style="color: #0600FF; font-weight: bold;">public</span> NorthwindDataContext<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span> connection, <span style="color: #000000;">System.<span style="color: #0000FF;">Data</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Linq</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Mapping</span><span style="color: #008000;">.</span><span style="color: #0000FF;">MappingSource</span> mappingSource<span style="color: #008000;">&#41;</span> <span style="color: #008000;">:</span>
				<span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">&#40;</span>connection, mappingSource<span style="color: #008000;">&#41;</span>
		<span style="color: #008000;">&#123;</span>
			OnCreated<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		<span style="color: #008000;">&#125;</span>
&nbsp;
		<span style="color: #0600FF; font-weight: bold;">public</span> NorthwindDataContext<span style="color: #008000;">&#40;</span><span style="color: #000000;">System.<span style="color: #0000FF;">Data</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">IDbConnection</span> connection, <span style="color: #000000;">System.<span style="color: #0000FF;">Data</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Linq</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Mapping</span><span style="color: #008000;">.</span><span style="color: #0000FF;">MappingSource</span> mappingSource<span style="color: #008000;">&#41;</span> <span style="color: #008000;">:</span>
				<span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">&#40;</span>connection, mappingSource<span style="color: #008000;">&#41;</span>
		<span style="color: #008000;">&#123;</span>
			OnCreated<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		<span style="color: #008000;">&#125;</span>
&nbsp;
		<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Data</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Linq</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Table</span><span style="color: #008000;">&lt;</span>category<span style="color: #008000;">&gt;&lt;/</span>category<span style="color: #008000;">&gt;</span> Categorys
		<span style="color: #008000;">&#123;</span>
			get
			<span style="color: #008000;">&#123;</span>
				<span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">GetTable</span><span style="color: #008000;">&lt;</span>category<span style="color: #008000;">&gt;&lt;/</span>category<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
			<span style="color: #008000;">&#125;</span>
		<span style="color: #008000;">&#125;</span>
&nbsp;
	<span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #006600; font-weight: bold;">&lt;</span>asp<span style="color: #006600; font-weight: bold;">:</span>content contentplaceholderid<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;MainContent&quot;</span> runat<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;server&quot;</span> id<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;indexContent&quot;</span><span style="color: #006600; font-weight: bold;">&gt;</span> <span style="color: #006600; font-weight: bold;">&lt;</span>h2<span style="color: #006600; font-weight: bold;">&gt;&lt;!</span>--Html.<span style="color: #9900cc;">Encode</span><span style="color: #006600; font-weight:bold;">&#40;</span>ViewData<span style="color: #006600; font-weight:bold;">&#91;</span><span style="color: #cc0000;">&quot;Message&quot;</span><span style="color: #006600; font-weight:bold;">&#93;</span><span style="color: #006600; font-weight:bold;">&#41;</span>--<span style="color: #006600; font-weight: bold;">&gt;&lt;/</span>h2<span style="color: #006600; font-weight: bold;">&gt;</span>  <span style="color: #006600; font-weight: bold;">&lt;</span>script type<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;text/javascript&quot;</span><span style="color: #006600; font-weight: bold;">&gt;</span>
&nbsp;
   Ext.<span style="color: #9900cc;">BLANK_IMAGE_URL</span> <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #008000;">'../../resources/images/default/s.gif';</span>
   Ext.<span style="color: #9900cc;">namespace</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'myNameSpace');</span>
&nbsp;
   myNameSpace.<span style="color: #9900cc;">myModule</span> <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
&nbsp;
   	<span style="color: #0000ff; font-weight: bold;">var</span> ds<span style="color: #006600; font-weight: bold;">;</span>
	<span style="color: #0000ff; font-weight: bold;">var</span> grid<span style="color: #006600; font-weight: bold;">;</span>
	<span style="color: #0000ff; font-weight: bold;">var</span> colModel<span style="color: #006600; font-weight: bold;">;</span>
	<span style="color: #0000ff; font-weight: bold;">var</span> myRecordObj<span style="color: #006600; font-weight: bold;">;</span>
	<span style="color: #0000ff; font-weight: bold;">var</span> myReader<span style="color: #006600; font-weight: bold;">;</span>
	<span style="color: #0000ff; font-weight: bold;">var</span> primaryKey<span style="color: #006600; font-weight: bold;">=</span><span style="color: #008000;">'CategoryID';</span>
&nbsp;
	<span style="color: #0000ff; font-weight: bold;">var</span> setupDataSource <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
		myRecordObj <span style="color: #006600; font-weight: bold;">=</span> Ext.<span style="color: #9900cc;">data</span>.<span style="color: #9900cc;">Record</span>.<span style="color: #9900cc;">create</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#91;</span>
			<span style="color: #006600; font-weight:bold;">&#123;</span>name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryID', type: 'int'},</span>
			<span style="color: #006600; font-weight:bold;">&#123;</span>name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryName', type: 'string'},</span>
			<span style="color: #006600; font-weight:bold;">&#123;</span>name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Description', type: 'string'},</span>
			<span style="color: #006600; font-weight:bold;">&#123;</span>name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Picture', type: 'string'}</span>
&nbsp;
		<span style="color: #006600; font-weight:bold;">&#93;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
		myReader <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">data</span>.<span style="color: #9900cc;">JsonReader</span><span style="color: #006600; font-weight:bold;">&#40;</span>
		<span style="color: #006600; font-weight:bold;">&#123;</span>
		  	root<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'results',</span>
		  	totalProperty<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'total',</span>
		  	id<span style="color: #006600; font-weight: bold;">:</span> primaryKey
		<span style="color: #006600; font-weight:bold;">&#125;</span>,
		  	myRecordObj
		<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
		ds <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">data</span>.<span style="color: #9900cc;">GroupingStore</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
			proxy<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">data</span>.<span style="color: #9900cc;">HttpProxy</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
		    url<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'/Category/ListCategory',</span>
		    method<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'POST'</span>
		    <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span>,
		    reader<span style="color: #006600; font-weight: bold;">:</span> myReader,
		    remoteSort<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>
		<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight: bold;">;</span><span style="color: #ff6600;">//end setupDataSource</span>
&nbsp;
	<span style="color: #0000ff; font-weight: bold;">var</span> getColumnModel <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
		<span style="color: #990099; font-weight: bold;">if</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight: bold;">!</span>colModel<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
&nbsp;
	        colModel <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">grid</span>.<span style="color: #9900cc;">ColumnModel</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#91;</span>
&nbsp;
		   	<span style="color: #006600; font-weight:bold;">&#123;</span>
		      header<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryID',</span>
		      dataIndex<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryID',</span>
		      sortable<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>,
		      width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">50</span>
		    <span style="color: #006600; font-weight:bold;">&#125;</span>,
		   	<span style="color: #006600; font-weight:bold;">&#123;</span>
		      header<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryName',</span>
		      dataIndex<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryName',</span>
		      sortable<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>,
		      width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">50</span>
		    <span style="color: #006600; font-weight:bold;">&#125;</span>,
		   	<span style="color: #006600; font-weight:bold;">&#123;</span>
		      header<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Description',</span>
		      dataIndex<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Description',</span>
		      sortable<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>,
		      width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">50</span>
		    <span style="color: #006600; font-weight:bold;">&#125;</span>,
		   	<span style="color: #006600; font-weight:bold;">&#123;</span>
		      header<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Picture',</span>
		      dataIndex<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Picture',</span>
		      sortable<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>,
		      width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">50</span>
		    <span style="color: #006600; font-weight:bold;">&#125;</span>
	        <span style="color: #006600; font-weight:bold;">&#93;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span><span style="color: #ff6600;">//end colModel</span>
		<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #ff6600;">//end if colModel</span>
		return colModel<span style="color: #006600; font-weight: bold;">;</span>
	<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #ff6600;">//end getColumnModel</span>
&nbsp;
	<span style="color: #0000ff; font-weight: bold;">var</span> buildGrid <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
&nbsp;
      	<span style="color: #0000ff; font-weight: bold;">function</span> addRecord<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
&nbsp;
	      	<span style="color: #0000ff; font-weight: bold;">var</span> c_CategoryID <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #330066;">form</span>.<span style="color: #9900cc;">NumberField</span>
			<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
				fieldLabel<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryID',</span>
				name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryID',</span>
				width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'180',</span>
				allowDecimals<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>,
				allowNegative<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">false</span>,
				blankText<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'0',</span>
				maxLength<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">19</span>
			<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
			<span style="color: #0000ff; font-weight: bold;">var</span> c_CategoryName <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #330066;">form</span>.<span style="color: #9900cc;">TextField</span>
			<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
				fieldLabel<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryName',</span>
				name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryName',</span>
				width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'180',</span>
				maskRe<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight: bold;">/</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#91;</span>a-zA-Z0-<span style="color: #800000;">9</span>\s<span style="color: #006600; font-weight:bold;">&#93;</span>+<span style="color: #006600; font-weight:bold;">&#41;</span>$<span style="color: #006600; font-weight: bold;">/</span>
			<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
			<span style="color: #0000ff; font-weight: bold;">var</span> c_Description <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #330066;">form</span>.<span style="color: #9900cc;">TextArea</span>
			<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
				fieldLabel<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Description',</span>
				name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Description',</span>
				width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'180',</span>
				hideLabel<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">false</span>
			<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
			<span style="color: #0000ff; font-weight: bold;">var</span> c_Picture <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #330066;">form</span>.<span style="color: #9900cc;">TextField</span>
			<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
				fieldLabel<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Picture',</span>
				name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Picture',</span>
				width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'180',</span>
				maskRe<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight: bold;">/</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#91;</span>a-zA-Z0-<span style="color: #800000;">9</span>\s<span style="color: #006600; font-weight:bold;">&#93;</span>+<span style="color: #006600; font-weight:bold;">&#41;</span>$<span style="color: #006600; font-weight: bold;">/</span>
			<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #0000ff; font-weight: bold;">var</span>	newForm <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">FormPanel</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
&nbsp;
			  bodyStyle<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'padding: 8px',</span>
			  url<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'/Category/New',</span>
			  items<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight:bold;">&#91;</span>
&nbsp;
			  	c_CategoryID,
			  	c_CategoryName,
			  	c_Description,
			  	c_Picture
			  <span style="color: #006600; font-weight:bold;">&#93;</span>
		    <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
		    <span style="color: #0000ff; font-weight: bold;">var</span>	newWin <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">Window</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
  				title<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Add a new Category',</span>
				width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">390</span>,
				height<span style="color: #006600; font-weight: bold;">:</span><span style="color: #800000;">500</span>,
				minWidth<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">300</span>,
				minHeight<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">250</span>,
				layout<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'fit',</span>
				plain<span style="color: #006600; font-weight: bold;">:</span><span style="color: #0000ff; font-weight: bold;">true</span>,
				bodyStyle<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'padding:5px;',</span>
				buttonAlign<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'center',</span>
			  	items<span style="color: #006600; font-weight: bold;">:</span> newForm,
			  	buttons<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight:bold;">&#91;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
					text<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Save',</span>
					handler<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
				  		<span style="color: #990099; font-weight: bold;">if</span> <span style="color: #006600; font-weight:bold;">&#40;</span>newForm.<span style="color: #330066;">form</span>.<span style="color: #9900cc;">isValid</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
				  			newForm.<span style="color: #330066;">form</span>.<span style="color: #9900cc;">submit</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
				  				waitMsg<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'In processing',</span>
				  				failure<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #330066;">form</span>, action<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
				  					Ext.<span style="color: #9900cc;">MessageBox</span>.<span style="color: #9900cc;">alert</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'Error Message', action.result.errorInfo);</span>
				  				<span style="color: #006600; font-weight:bold;">&#125;</span>,
				  				success<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #330066;">form</span>, action<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
				  					Ext.<span style="color: #9900cc;">MessageBox</span>.<span style="color: #9900cc;">alert</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'Success:', action.response.responseText);</span>
				  					refreshGrid<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
				  					newWin.<span style="color: #9900cc;">hide</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
				  				<span style="color: #006600; font-weight:bold;">&#125;</span>
				  			<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
				  		<span style="color: #006600; font-weight:bold;">&#125;</span>
				  		<span style="color: #990099; font-weight: bold;">else</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
				  			Ext.<span style="color: #9900cc;">MessageBox</span>.<span style="color: #9900cc;">alert</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'Errors', 'Please fix the errors noted.');</span>
				  		<span style="color: #006600; font-weight:bold;">&#125;</span>
				  	<span style="color: #006600; font-weight:bold;">&#125;</span>
				    <span style="color: #006600; font-weight:bold;">&#125;</span>,<span style="color: #006600; font-weight:bold;">&#123;</span>
				  	text<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Clear',</span>
				    handler<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
				     newForm.<span style="color: #9900cc;">getForm</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span>.<span style="color: #9900cc;">reset</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
				    <span style="color: #006600; font-weight:bold;">&#125;</span>
				<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#93;</span>
			 <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
  			newWin.<span style="color: #990099; font-weight: bold;">on</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'minimize', function(){</span>
  				newWin.<span style="color: #9900cc;">toggleCollapse</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
  			<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
  			newWin.<span style="color: #9900cc;">show</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
      	<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight: bold;">;</span><span style="color: #ff6600;">// end addRecord</span>
&nbsp;
		<span style="color: #0000ff; font-weight: bold;">function</span> deleteRecord<span style="color: #006600; font-weight:bold;">&#40;</span>btn<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
			<span style="color: #990099; font-weight: bold;">if</span><span style="color: #006600; font-weight:bold;">&#40;</span>btn<span style="color: #006600; font-weight: bold;">==</span><span style="color: #008000;">'yes') {</span>
		  		<span style="color: #0000ff; font-weight: bold;">var</span> selectedKeys <span style="color: #006600; font-weight: bold;">=</span> grid.<span style="color: #9900cc;">selModel</span>.<span style="color: #9900cc;">selections</span>.<span style="color: #9900cc;">keys</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
		  		Ext.<span style="color: #9900cc;">Ajax</span>.<span style="color: #990099; font-weight: bold;">request</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
		  			waitMsg<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Saving changes...',</span>
		  			url<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'/Category/Delete',</span>
		  			params<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
						data<span style="color: #006600; font-weight: bold;">:</span> selectedKeys
		  			<span style="color: #006600; font-weight:bold;">&#125;</span>,
		  			callback<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span> <span style="color: #006600; font-weight:bold;">&#40;</span>options, success, <span style="color: #990099; font-weight: bold;">response</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
		  				<span style="color: #990099; font-weight: bold;">if</span> <span style="color: #006600; font-weight:bold;">&#40;</span>success<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
		  					Ext.<span style="color: #9900cc;">MessageBox</span>.<span style="color: #9900cc;">alert</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'OK',response.responseText);</span>
		  					<span style="color: #0000ff; font-weight: bold;">var</span> json <span style="color: #006600; font-weight: bold;">=</span> Ext.<span style="color: #9900cc;">util</span>.<span style="color: #9900cc;">JSON</span>.<span style="color: #9900cc;">decode</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #990099; font-weight: bold;">response</span>.<span style="color: #9900cc;">responseText</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
		  					Ext.<span style="color: #9900cc;">MessageBox</span>.<span style="color: #9900cc;">alert</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'OK',json.del_count + ' record(s) deleted.');</span>
		  				<span style="color: #006600; font-weight:bold;">&#125;</span> <span style="color: #990099; font-weight: bold;">else</span><span style="color: #006600; font-weight:bold;">&#123;</span>
		  					Ext.<span style="color: #9900cc;">MessageBox</span>.<span style="color: #9900cc;">alert</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'Sorry, please try again. [Q304]',response.responseText);</span>
		  				<span style="color: #006600; font-weight:bold;">&#125;</span>
		  			<span style="color: #006600; font-weight:bold;">&#125;</span>,
		  			failure<span style="color: #006600; font-weight: bold;">:</span><span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #990099; font-weight: bold;">response</span>,options<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
		  				Ext.<span style="color: #9900cc;">MessageBox</span>.<span style="color: #9900cc;">alert</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'Warning','Oops...');</span>
		  			<span style="color: #006600; font-weight:bold;">&#125;</span>,
		  			success<span style="color: #006600; font-weight: bold;">:</span><span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #990099; font-weight: bold;">response</span>,options<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
		  				refreshGrid<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
		  			<span style="color: #006600; font-weight:bold;">&#125;</span>
		  		<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
			<span style="color: #006600; font-weight:bold;">&#125;</span>
		<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #0000ff; font-weight: bold;">function</span> handleDelete<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
&nbsp;
            <span style="color: #0000ff; font-weight: bold;">var</span> selectedKeys <span style="color: #006600; font-weight: bold;">=</span> grid.<span style="color: #9900cc;">selModel</span>.<span style="color: #9900cc;">selections</span>.<span style="color: #9900cc;">keys</span><span style="color: #006600; font-weight: bold;">;</span>
            <span style="color: #990099; font-weight: bold;">if</span><span style="color: #006600; font-weight:bold;">&#40;</span>selectedKeys.<span style="color: #9900cc;">length</span> <span style="color: #006600; font-weight: bold;">&gt;</span> <span style="color: #800000;">0</span><span style="color: #006600; font-weight:bold;">&#41;</span>
            <span style="color: #006600; font-weight:bold;">&#123;</span>
                Ext.<span style="color: #9900cc;">MessageBox</span>.<span style="color: #9900cc;">confirm</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'Message','Do you really want to delete selection?', deleteRecord);</span>
            <span style="color: #006600; font-weight:bold;">&#125;</span>
            <span style="color: #990099; font-weight: bold;">else</span>
            <span style="color: #006600; font-weight:bold;">&#123;</span>
                Ext.<span style="color: #9900cc;">MessageBox</span>.<span style="color: #9900cc;">alert</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'Message','Please select at least one item to delete');</span>
            <span style="color: #006600; font-weight:bold;">&#125;</span>
        <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight: bold;">;</span> <span style="color: #ff6600;">// end handleDelete </span>
&nbsp;
		<span style="color: #0000ff; font-weight: bold;">function</span> toggleDetails<span style="color: #006600; font-weight:bold;">&#40;</span>btn, pressed<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
&nbsp;
	        <span style="color: #0000ff; font-weight: bold;">var</span> view <span style="color: #006600; font-weight: bold;">=</span> grid.<span style="color: #9900cc;">getView</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
	        view.<span style="color: #9900cc;">showPreview</span> <span style="color: #006600; font-weight: bold;">=</span> pressed<span style="color: #006600; font-weight: bold;">;</span>
	        view.<span style="color: #9900cc;">refresh</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
	    <span style="color: #006600; font-weight:bold;">&#125;</span>
&nbsp;
	    <span style="color: #0000ff; font-weight: bold;">function</span> refreshGrid<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
            ds.<span style="color: #9900cc;">reload</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span> <span style="color: #ff6600;">//</span>
        <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
		grid <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">grid</span>.<span style="color: #9900cc;">GridPanel</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
        	clicksToEdit<span style="color: #006600; font-weight: bold;">:</span><span style="color: #800000;">2</span>,
        	colModel<span style="color: #006600; font-weight: bold;">:</span> getColumnModel<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span>,
        	height<span style="color: #006600; font-weight: bold;">:</span><span style="color: #800000;">350</span>,
        	<span style="color: #ff6600;">//iconCls: 'icon-grid',</span>
        	id<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'myGridID',</span>
        	loadMask<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>,
        	selModel<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">grid</span>.<span style="color: #9900cc;">RowSelectionModel</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>singleSelect<span style="color: #006600; font-weight: bold;">:</span><span style="color: #0000ff; font-weight: bold;">false</span><span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span>,
        	store<span style="color: #006600; font-weight: bold;">:</span> ds,
        	stripeRows<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>,
        	title<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'Category List',</span>
        	width<span style="color: #006600; font-weight: bold;">:</span><span style="color: #800000;">600</span>,
        	bbar<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">PagingToolbar</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
&nbsp;
                pageSize<span style="color: #006600; font-weight: bold;">:</span> myNameSpace.<span style="color: #9900cc;">myModule</span>.<span style="color: #9900cc;">perPage</span>,
                store<span style="color: #006600; font-weight: bold;">:</span> ds,
                displayInfo<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>,
                displayMsg<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Displaying topics {0} - {1} of {2}',</span>
                emptyMsg<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #cc0000;">&quot;No data to display&quot;</span>,
                items<span style="color: #006600; font-weight: bold;">:</span><span style="color: #006600; font-weight:bold;">&#91;</span>
                    <span style="color: #008000;">'-', {</span>
                    pressed<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>,
                    enableToggle<span style="color: #006600; font-weight: bold;">:</span><span style="color: #0000ff; font-weight: bold;">true</span>,
                    text<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Show Preview',</span>
                    cls<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'x-btn-text-icon details',</span>
                    toggleHandler<span style="color: #006600; font-weight: bold;">:</span> toggleDetails
                <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#93;</span>
            <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span>,
            tbar<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight:bold;">&#91;</span>
                <span style="color: #006600; font-weight:bold;">&#123;</span>
                    text<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Add',</span>
                    tooltip<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Click to Add a row',</span>
&nbsp;
					<span style="color: #ff6600;">//iconCls:'add',</span>
                    handler<span style="color: #006600; font-weight: bold;">:</span> addRecord
                <span style="color: #006600; font-weight:bold;">&#125;</span>, <span style="color: #008000;">'-', //add a separator</span>
                <span style="color: #006600; font-weight:bold;">&#123;</span>
                    text<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Delete',</span>
                    tooltip<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Click to Delete selected row(s)',</span>
&nbsp;
                    <span style="color: #ff6600;">//function to call when user clicks on button</span>
                    <span style="color: #ff6600;">//iconCls:'remove',</span>
                    handler<span style="color: #006600; font-weight: bold;">:</span> handleDelete
&nbsp;
                <span style="color: #006600; font-weight:bold;">&#125;</span>, <span style="color: #008000;">'-',</span>
                <span style="color: #006600; font-weight:bold;">&#123;</span>
                    text<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Refresh',</span>
                    tooltip<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Click to Refresh the table',</span>
                    <span style="color: #ff6600;">//iconCls:'refresh',</span>
                    handler<span style="color: #006600; font-weight: bold;">:</span> refreshGrid
&nbsp;
                <span style="color: #006600; font-weight:bold;">&#125;</span>
            <span style="color: #006600; font-weight:bold;">&#93;</span>,
            view<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">grid</span>.<span style="color: #9900cc;">GroupingView</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
                forceFit<span style="color: #006600; font-weight: bold;">:</span><span style="color: #0000ff; font-weight: bold;">true</span>,
                groupTextTpl<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'{text} ({[values.rs.length]} {[values.rs.length &gt; 1 ? &quot;Items&quot; : &quot;Item&quot;]})'</span>
            <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span>
        <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span><span style="color: #ff6600;">//end grid</span>
&nbsp;
  		grid.<span style="color: #990099; font-weight: bold;">on</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'rowdblclick', function(grid, rowIndex, e) {</span>
        	<span style="color: #0000ff; font-weight: bold;">var</span> id <span style="color: #006600; font-weight: bold;">=</span> ds.<span style="color: #9900cc;">data</span>.<span style="color: #9900cc;">items</span><span style="color: #006600; font-weight:bold;">&#91;</span>rowIndex<span style="color: #006600; font-weight:bold;">&#93;</span>.<span style="color: #9900cc;">id</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
        	<span style="color: #0000ff; font-weight: bold;">var</span> u_CategoryID <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #330066;">form</span>.<span style="color: #9900cc;">NumberField</span>
			<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
				fieldLabel<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryID',</span>
				name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryID',</span>
				width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'180',</span>
				allowDecimals<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>,
				allowNegative<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">false</span>,
				blankText<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'0',</span>
				maxLength<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">19</span>
			<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
			<span style="color: #0000ff; font-weight: bold;">var</span> u_CategoryName <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #330066;">form</span>.<span style="color: #9900cc;">TextField</span>
			<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
				fieldLabel<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryName',</span>
				name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryName',</span>
				width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'180',</span>
				maskRe<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight: bold;">/</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#91;</span>a-zA-Z0-<span style="color: #800000;">9</span>\s<span style="color: #006600; font-weight:bold;">&#93;</span>+<span style="color: #006600; font-weight:bold;">&#41;</span>$<span style="color: #006600; font-weight: bold;">/</span>
			<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
			<span style="color: #0000ff; font-weight: bold;">var</span> u_Description <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #330066;">form</span>.<span style="color: #9900cc;">TextArea</span>
			<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
				fieldLabel<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Description',</span>
				name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Description',</span>
				width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'180',</span>
				hideLabel<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">false</span>
			<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
			<span style="color: #0000ff; font-weight: bold;">var</span> u_Picture <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #330066;">form</span>.<span style="color: #9900cc;">TextField</span>
			<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
				fieldLabel<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Picture',</span>
				name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Picture',</span>
				width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'180',</span>
				maskRe<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight: bold;">/</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#91;</span>a-zA-Z0-<span style="color: #800000;">9</span>\s<span style="color: #006600; font-weight:bold;">&#93;</span>+<span style="color: #006600; font-weight:bold;">&#41;</span>$<span style="color: #006600; font-weight: bold;">/</span>
			<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #0000ff; font-weight: bold;">var</span>	updateForm <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">FormPanel</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
&nbsp;
				  bodyStyle<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'padding: 8px',</span>
  				  url<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'/Category/Edit',</span>
  				  reader<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">data</span>.<span style="color: #9900cc;">JsonReader</span><span style="color: #006600; font-weight:bold;">&#40;</span>
				  <span style="color: #006600; font-weight:bold;">&#123;</span> root<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'results'},</span>
				  <span style="color: #006600; font-weight:bold;">&#91;</span>
				  	<span style="color: #006600; font-weight:bold;">&#123;</span>name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryID', type: 'int'},</span>
					<span style="color: #006600; font-weight:bold;">&#123;</span>name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'CategoryName', type: 'string'},</span>
					<span style="color: #006600; font-weight:bold;">&#123;</span>name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Description', type: 'string'},</span>
					<span style="color: #006600; font-weight:bold;">&#123;</span>name<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Picture', type: 'string'}</span>
&nbsp;
				  <span style="color: #006600; font-weight:bold;">&#93;</span><span style="color: #006600; font-weight:bold;">&#41;</span>,
				  items<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight:bold;">&#91;</span>
&nbsp;
				  	u_CategoryID,
				  	u_CategoryName,
				  	u_Description,
				  	u_Picture
				  <span style="color: #006600; font-weight:bold;">&#93;</span>
			  <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
			  updateForm.<span style="color: #330066;">form</span>.<span style="color: #9900cc;">load</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
		  		url<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'/Category/LoadCategory',</span>
		  		params<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight:bold;">&#123;</span> id<span style="color: #006600; font-weight: bold;">:</span> id <span style="color: #006600; font-weight:bold;">&#125;</span>,
		  		waitMsg<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'Loading'</span>
			  <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
			  <span style="color: #0000ff; font-weight: bold;">var</span> window <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">Window</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
				  title<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Edit Existing Category',</span>
				  width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">390</span>,
				  height<span style="color: #006600; font-weight: bold;">:</span><span style="color: #800000;">500</span>,
				  minWidth<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">300</span>,
				  minHeight<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">250</span>,
				  layout<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'fit',</span>
				  plain<span style="color: #006600; font-weight: bold;">:</span><span style="color: #0000ff; font-weight: bold;">true</span>,
				  bodyStyle<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'padding:5px;',</span>
				  buttonAlign<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'center',</span>
				  items<span style="color: #006600; font-weight: bold;">:</span> updateForm,
				  buttons<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight:bold;">&#91;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
					text<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Save',</span>
					 handler<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
					  <span style="color: #990099; font-weight: bold;">if</span> <span style="color: #006600; font-weight:bold;">&#40;</span>updateForm.<span style="color: #330066;">form</span>.<span style="color: #9900cc;">isValid</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
					  	updateForm.<span style="color: #330066;">form</span>.<span style="color: #9900cc;">submit</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
					  		params<span style="color: #006600; font-weight: bold;">:</span><span style="color: #006600; font-weight:bold;">&#123;</span>id <span style="color: #006600; font-weight: bold;">:</span> id<span style="color: #006600; font-weight:bold;">&#125;</span>,
					  		waitMsg<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'In processing',</span>
					  		failure<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #330066;">form</span>, action<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
					  			Ext.<span style="color: #9900cc;">MessageBox</span>.<span style="color: #9900cc;">alert</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'Error Message', action.result.errorInfo);</span>
					  		<span style="color: #006600; font-weight:bold;">&#125;</span>,
					  		success<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #330066;">form</span>, action<span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
					  			Ext.<span style="color: #9900cc;">MessageBox</span>.<span style="color: #9900cc;">alert</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'Confirm', action.response.responseText);</span>
					  			window.<span style="color: #9900cc;">hide</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
					  			ds.<span style="color: #9900cc;">load</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>params<span style="color: #006600; font-weight: bold;">:</span><span style="color: #006600; font-weight:bold;">&#123;</span>start<span style="color: #006600; font-weight: bold;">:</span><span style="color: #800000;">0</span>, limit<span style="color: #006600; font-weight: bold;">:</span><span style="color: #800000;">10</span><span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
					  		<span style="color: #006600; font-weight:bold;">&#125;</span>
					  	<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
					  <span style="color: #006600; font-weight:bold;">&#125;</span>
					  <span style="color: #990099; font-weight: bold;">else</span><span style="color: #006600; font-weight:bold;">&#123;</span>
					  	Ext.<span style="color: #9900cc;">MessageBox</span>.<span style="color: #9900cc;">alert</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'Errors', 'Please fix the errors noted.');</span>
					  <span style="color: #006600; font-weight:bold;">&#125;</span>
				    <span style="color: #006600; font-weight:bold;">&#125;</span>
					<span style="color: #006600; font-weight:bold;">&#125;</span>,
					<span style="color: #006600; font-weight:bold;">&#123;</span>
					text<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Cancel',</span>
					  handler<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#123;</span>window.<span style="color: #9900cc;">hide</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span><span style="color: #006600; font-weight:bold;">&#125;</span>
				<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#93;</span>
			<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
			window.<span style="color: #9900cc;">show</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
		<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
	<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #ff6600;">//end function buildGrid</span>
&nbsp;
	<span style="color: #0000ff; font-weight: bold;">var</span> renderGrid <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
	    grid.<span style="color: #9900cc;">render</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'CustomersList');</span>
	<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight: bold;">;</span> <span style="color: #ff6600;">//end function renderGrid</span>
&nbsp;
	<span style="color: #0000ff; font-weight: bold;">var</span> loadStore <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
	  ds.<span style="color: #9900cc;">load</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
	  params<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
	  start<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">0</span>,
	  limit<span style="color: #006600; font-weight: bold;">:</span> myNameSpace.<span style="color: #9900cc;">myModule</span>.<span style="color: #9900cc;">perPage</span>
	  <span style="color: #006600; font-weight:bold;">&#125;</span>
	  <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
	  grid.<span style="color: #9900cc;">getSelectionModel</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span>.<span style="color: #9900cc;">selectFirstRow</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
	<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
   	return <span style="color: #006600; font-weight:bold;">&#123;</span>
		perPage<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">10</span>,
		init <span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
			this.<span style="color: #9900cc;">getMyGrid</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
		<span style="color: #006600; font-weight:bold;">&#125;</span>, <span style="color: #ff6600;">//end of init method</span>
		getMyGrid<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
&nbsp;
			Ext.<span style="color: #9900cc;">QuickTips</span>.<span style="color: #9900cc;">init</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
			setupDataSource<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
			buildGrid<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
			renderGrid<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
			loadStore<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
		<span style="color: #006600; font-weight:bold;">&#125;</span>,
		getDataSource<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
	        return ds<span style="color: #006600; font-weight: bold;">;</span>
	    <span style="color: #006600; font-weight:bold;">&#125;</span>
	<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #ff6600;">//end of return</span>
   <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
   Ext.<span style="color: #9900cc;">onReady</span><span style="color: #006600; font-weight:bold;">&#40;</span>myNameSpace.<span style="color: #9900cc;">myModule</span>.<span style="color: #9900cc;">init</span>, myNameSpace.<span style="color: #9900cc;">myModule</span>, <span style="color: #0000ff; font-weight: bold;">true</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
<span style="color: #006600; font-weight: bold;">&lt;/</span>script<span style="color: #006600; font-weight: bold;">&gt;</span> <span style="color: #006600; font-weight: bold;">&lt;/</span>asp<span style="color: #006600; font-weight: bold;">:</span>content<span style="color: #006600; font-weight: bold;">&gt;</span></pre></div></div>

<p>&nbsp;</p>
<p>Northwind.Category.model.cs</p>
<p>&nbsp;</p>
<p>Northwind.Category.Controller.cs</p>
<p>&nbsp;</p>
<p>Northwind.Category.view.aspx</p>
<img src="http://osman.it/?ak_action=api_record_view&id=395&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fosman.it%2Faspnet%2Faspnet-mvc-extjs-using-linq%2F&amp;title=ASP.NET%20MVC%20ExtJS%20using%20LINQ" id="wpa2a_6"><img src="http://osman.it/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><hr />
<p><small>© admin for <a href="http://osman.it">Mohammed Osman</a>, 2009. |
<a href="http://osman.it/aspnet/aspnet-mvc-extjs-using-linq/">Permalink</a> |
<a href="http://osman.it/aspnet/aspnet-mvc-extjs-using-linq/#comments">4 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://osman.it/aspnet/aspnet-mvc-extjs-using-linq/&title=ASP.NET MVC ExtJS using LINQ">del.icio.us</a>
<br/>
Post tags: <a href="http://osman.it/tag/aspnet-mvc-extjs-using-linq/" rel="tag">ASP.NET MVC ExtJS using LINQ</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://osman.it/aspnet/aspnet-mvc-extjs-using-linq/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>AutoComplete using jQuery, ASP.NET &amp; C#</title>
		<link>http://osman.it/aspnet/autocomplete-using-jquery-aspnet-c/</link>
		<comments>http://osman.it/aspnet/autocomplete-using-jquery-aspnet-c/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 17:38:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ASP.NET & C#]]></category>
		<category><![CDATA[AutoComplete using jQuery]]></category>

		<guid isPermaLink="false">http://mdosman.us/?p=331</guid>
		<description><![CDATA[I took J&#246;rn Zaffaerer jquery plugin PHP demo and changed to ASP.NET C#. Autocomplete an input field to enable users quickly finding and selecting some value, leveraging searching and filtering. By giving an autocompleted field focus or entering something into it, the plugin starts searching for matching entries and displays a list of values to [...]]]></description>
			<content:encoded><![CDATA[<p>I took <a href="http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/">J&ouml;rn Zaffaerer </a>jquery plugin PHP demo and changed to ASP.NET C#.</p>
<p>Autocomplete an input field to enable users quickly finding and selecting some value, leveraging searching and filtering.</p>
<p>By giving an autocompleted field focus or entering something into it, the plugin starts searching for matching entries and displays a list of values to choose from. By entering more characters, the user can filter down the list to better matches.</p>
<p>This can be used to enter previous selected values, eg. for tags, to complete an address, eg. enter a city name and get the zip code, or maybe enter email addresses from an addressbook.</p>
<p><strong>Current version:</strong> 1.0.2<br />
<strong>Compressed filesize:</strong> 7596 bytes<br />
<strong>License:</strong> MIT/GPL<br />
<strong>Tested in:</strong> Firefox 2, IE 6 &amp; 7, Opera 9, Safari 3</p>
<h3>Files:</h3>
<p><a href="http://jquery.bassistance.de/autocomplete/jquery.autocomplete.zip">Download</a><br />
<a href="http://jquery.bassistance.de/autocomplete/changelog.txt">Changelog</a><br />
<a href="http://jquery.bassistance.de/autocomplete/demo/">Demos</a><br />
<a href="http://docs.jquery.com/Plugins/Autocomplete">Documentation</a> (<a href="http://docs.jquery.com/Plugins/Autocomplete/autocomplete#url_or_dataoptions">Plugin Options</a>)</p>
<h4>Required</h4>
<ul>
<li><a href="http://jquery.com/">jQuery 1.2.6</a></li>
</ul>
<p>ASPX Page:</p>
<hr />
<p>&nbsp;</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;%</span><span style="color: #006600; font-weight: bold;">@</span> Page Language<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;C#&quot;</span> AutoEventWireup<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;true&quot;</span> CodeBehind<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;AutoCompleteJquery.aspx.cs&quot;</span> Inherits<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;jQueryAndAspNetDemo.AutoCompleteJquery&quot;</span> <span style="color: #000000; font-weight: bold;">%&gt;</span>
&nbsp;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&nbsp;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head id=&quot;Head1&quot; runat=&quot;server&quot;&gt;
    &lt;title&gt;Auto complete Demo&lt;/title&gt;
  &lt;link href=&quot;styles/style1.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&nbsp;
  &lt;script src=&quot;js/jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
&nbsp;
      /*
      * Autocomplete - jQuery plugin 1.1pre
      *
      * Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, JÃ¶rn Zaefferer
      *
      * Dual licensed under the MIT and GPL licenses:
      *   http://www.opensource.org/licenses/mit-license.php
      *   http://www.gnu.org/licenses/gpl.html
      *
      * Revision: $Id: jquery.autocomplete.js 5785 2008-07-12 10:37:33Z joern.zaefferer $
      *
      */
&nbsp;
      ; (function($) {
&nbsp;
          $.fn.extend({
              autocomplete: function(urlOrData, options) {
                  var isUrl = typeof urlOrData == &quot;string&quot;;
                  options = $.extend({}, $.Autocompleter.defaults, {
                      url: isUrl ? urlOrData : null,
                      data: isUrl ? null : urlOrData,
                      delay: isUrl ? $.Autocompleter.defaults.delay : 10,
                      max: options &amp;&amp; !options.scroll ? 10 : 150
                  }, options);
&nbsp;
                  // if highlight is set to false, replace it with a do-nothing function
                  options.highlight = options.highlight || function(value) { return value; };
&nbsp;
                  // if the formatMatch option is not specified, then use formatItem for backwards compatibility
                  options.formatMatch = options.formatMatch || options.formatItem;
&nbsp;
                  return this.each(function() {
                      new $.Autocompleter(this, options);
                  });
              },
              result: function(handler) {
                  return this.bind(&quot;result&quot;, handler);
              },
              search: function(handler) {
                  return this.trigger(&quot;search&quot;, [handler]);
              },
              flushCache: function() {
                  return this.trigger(&quot;flushCache&quot;);
              },
              setOptions: function(options) {
                  return this.trigger(&quot;setOptions&quot;, [options]);
              },
              unautocomplete: function() {
                  return this.trigger(&quot;unautocomplete&quot;);
              }
          });
&nbsp;
          $.Autocompleter = function(input, options) {
&nbsp;
              var KEY = {
                  UP: 38,
                  DOWN: 40,
                  DEL: 46,
                  TAB: 9,
                  RETURN: 13,
                  ESC: 27,
                  COMMA: 188,
                  PAGEUP: 33,
                  PAGEDOWN: 34,
                  BACKSPACE: 8
              };
&nbsp;
              // Create $ object for input element
              var $input = $(input).attr(&quot;autocomplete&quot;, &quot;off&quot;).addClass(options.inputClass);
&nbsp;
              var timeout;
              var previousValue = &quot;&quot;;
              var cache = $.Autocompleter.Cache(options);
              var hasFocus = 0;
              var lastKeyPressCode;
              var config = {
                  mouseDownOnSelect: false
              };
              var select = $.Autocompleter.Select(options, input, selectCurrent, config);
&nbsp;
              var blockSubmit;
&nbsp;
              // prevent form submit in opera when selecting with return key
              $.browser.opera &amp;&amp; $(input.form).bind(&quot;submit.autocomplete&quot;, function() {
                  if (blockSubmit) {
                      blockSubmit = false;
                      return false;
                  }
              });
&nbsp;
              // only opera doesn't trigger keydown multiple times while pressed, others don't work with keypress at all
              $input.bind(($.browser.opera ? &quot;keypress&quot; : &quot;keydown&quot;) + &quot;.autocomplete&quot;, function(event) {
                  // track last key pressed
                  lastKeyPressCode = event.keyCode;
                  switch (event.keyCode) {
&nbsp;
                      case KEY.UP:
                          event.preventDefault();
                          if (select.visible()) {
                              select.prev();
                          } else {
                              onChange(0, true);
                          }
                          break;
&nbsp;
                      case KEY.DOWN:
                          event.preventDefault();
                          if (select.visible()) {
                              select.next();
                          } else {
                              onChange(0, true);
                          }
                          break;
&nbsp;
                      case KEY.PAGEUP:
                          event.preventDefault();
                          if (select.visible()) {
                              select.pageUp();
                          } else {
                              onChange(0, true);
                          }
                          break;
&nbsp;
                      case KEY.PAGEDOWN:
                          event.preventDefault();
                          if (select.visible()) {
                              select.pageDown();
                          } else {
                              onChange(0, true);
                          }
                          break;
&nbsp;
                      // matches also semicolon
                      case options.multiple &amp;&amp; $.trim(options.multipleSeparator) == &quot;,&quot; &amp;&amp; KEY.COMMA:
                      case KEY.TAB:
                      case KEY.RETURN:
                          if (selectCurrent()) {
                              // stop default to prevent a form submit, Opera needs special handling
                              event.preventDefault();
                              blockSubmit = true;
                              return false;
                          }
                          break;
&nbsp;
                      case KEY.ESC:
                          select.hide();
                          break;
&nbsp;
                      default:
                          clearTimeout(timeout);
                          timeout = setTimeout(onChange, options.delay);
                          break;
                  }
              }).focus(function() {
                  // track whether the field has focus, we shouldn't process any
                  // results if the field no longer has focus
                  hasFocus++;
              }).blur(function() {
                  hasFocus = 0;
                  if (!config.mouseDownOnSelect) {
                      hideResults();
                  }
              }).click(function() {
                  // show select when clicking in a focused field
                  if (hasFocus++ &gt; 1 &amp;&amp; !select.visible()) {
                      onChange(0, true);
                  }
              }).bind(&quot;search&quot;, function() {
                  // TODO why not just specifying both arguments?
                  var fn = (arguments.length &gt; 1) ? arguments[1] : null;
                  function findValueCallback(q, data) {
                      var result;
                      if (data &amp;&amp; data.length) {
                          for (var i = 0; i &lt; data.length; i++) {
                              if (data[i].result.toLowerCase() == q.toLowerCase()) {
                                  result = data[i];
                                  break;
                              }
                          }
                      }
                      if (typeof fn == &quot;function&quot;) fn(result);
                      else $input.trigger(&quot;result&quot;, result &amp;&amp; [result.data, result.value]);
                  }
                  $.each(trimWords($input.val()), function(i, value) {
                      request(value, findValueCallback, findValueCallback);
                  });
              }).bind(&quot;flushCache&quot;, function() {
                  cache.flush();
              }).bind(&quot;setOptions&quot;, function() {
                  $.extend(options, arguments[1]);
                  // if we've updated the data, repopulate
                  if (&quot;data&quot; in arguments[1])
                      cache.populate();
              }).bind(&quot;unautocomplete&quot;, function() {
                  select.unbind();
                  $input.unbind();
                  $(input.form).unbind(&quot;.autocomplete&quot;);
              });
&nbsp;
              function selectCurrent() {
                  var selected = select.selected();
                  if (!selected)
                      return false;
&nbsp;
                  var v = selected.result;
                  previousValue = v;
&nbsp;
                  if (options.multiple) {
                      var words = trimWords($input.val());
                      if (words.length &gt; 1) {
                          v = words.slice(0, words.length - 1).join(options.multipleSeparator) + options.multipleSeparator + v;
                      }
                      v += options.multipleSeparator;
                  }
&nbsp;
                  $input.val(v);
                  hideResultsNow();
                  $input.trigger(&quot;result&quot;, [selected.data, selected.value]);
                  return true;
              }
&nbsp;
              function onChange(crap, skipPrevCheck) {
                  if (lastKeyPressCode == KEY.DEL) {
                      select.hide();
                      return;
                  }
&nbsp;
                  var currentValue = $input.val();
&nbsp;
                  if (!skipPrevCheck &amp;&amp; currentValue == previousValue)
                      return;
&nbsp;
                  previousValue = currentValue;
&nbsp;
                  currentValue = lastWord(currentValue);
                  if (currentValue.length &gt;= options.minChars) {
                      $input.addClass(options.loadingClass);
                      if (!options.matchCase)
                          currentValue = currentValue.toLowerCase();
                      request(currentValue, receiveData, hideResultsNow);
                  } else {
                      stopLoading();
                      select.hide();
                  }
              };
&nbsp;
              function trimWords(value) {
                  if (!value) {
                      return [&quot;&quot;];
                  }
                  var words = value.split(options.multipleSeparator);
                  var result = [];
                  $.each(words, function(i, value) {
                      if ($.trim(value))
                          result[i] = $.trim(value);
                  });
                  return result;
              }
&nbsp;
              function lastWord(value) {
                  if (!options.multiple)
                      return value;
                  var words = trimWords(value);
                  return words[words.length - 1];
              }
&nbsp;
              // fills in the input box w/the first match (assumed to be the best match)
              // q: the term entered
              // sValue: the first matching result
              function autoFill(q, sValue) {
                  // autofill in the complete box w/the first match as long as the user hasn't entered in more data
                  // if the last user key pressed was backspace, don't autofill
                  if (options.autoFill &amp;&amp; (lastWord($input.val()).toLowerCase() == q.toLowerCase()) &amp;&amp; lastKeyPressCode != KEY.BACKSPACE) {
                      // fill in the value (keep the case the user has typed)
                      $input.val($input.val() + sValue.substring(lastWord(previousValue).length));
                      // select the portion of the value not typed by the user (so the next character will erase)
                      $.Autocompleter.Selection(input, previousValue.length, previousValue.length + sValue.length);
                  }
              };
&nbsp;
              function hideResults() {
                  clearTimeout(timeout);
                  timeout = setTimeout(hideResultsNow, 200);
              };
&nbsp;
              function hideResultsNow() {
                  var wasVisible = select.visible();
                  select.hide();
                  clearTimeout(timeout);
                  stopLoading();
                  if (options.mustMatch) {
                      // call search and run callback
                      $input.search(
				function(result) {
				    // if no value found, clear the input box
				    if (!result) {
				        if (options.multiple) {
				            var words = trimWords($input.val()).slice(0, -1);
				            $input.val(words.join(options.multipleSeparator) + (words.length ? options.multipleSeparator : &quot;&quot;));
				        }
				        else
				            $input.val(&quot;&quot;);
				    }
				}
			);
                  }
                  if (wasVisible)
                  // position cursor at end of input field
                      $.Autocompleter.Selection(input, input.value.length, input.value.length);
              };
&nbsp;
              function receiveData(q, data) {
                  if (data &amp;&amp; data.length &amp;&amp; hasFocus) {
                      stopLoading();
                      select.display(data, q);
                      autoFill(q, data[0].value);
                      select.show();
                  } else {
                      hideResultsNow();
                  }
              };
&nbsp;
              function request(term, success, failure) {
                  if (!options.matchCase)
                      term = term.toLowerCase();
                  var data = cache.load(term);
                  // recieve the cached data
                  if (data &amp;&amp; data.length) {
                      success(term, data);
                      // if an AJAX url has been supplied, try loading the data now
                  } else if ((typeof options.url == &quot;string&quot;) &amp;&amp; (options.url.length &gt; 0)) {
&nbsp;
                      var extraParams = {
                          timestamp: +new Date()
                      };
                      $.each(options.extraParams, function(key, param) {
                          extraParams[key] = typeof param == &quot;function&quot; ? param() : param;
                      });
&nbsp;
                      $.ajax({
                          // try to leverage ajaxQueue plugin to abort previous requests
                          mode: &quot;abort&quot;,
                          // limit abortion to this input
                          port: &quot;autocomplete&quot; + input.name,
                          dataType: options.dataType,
                          url: options.url,
                          data: $.extend({
                              q: lastWord(term),
                              limit: options.max
                          }, extraParams),
                          success: function(data) {
                              var parsed = options.parse &amp;&amp; options.parse(data) || parse(data);
                              cache.add(term, parsed);
                              success(term, parsed);
                          }
                      });
                  } else {
                      // if we have a failure, we need to empty the list -- this prevents the the [TAB] key from selecting the last successful match
                      select.emptyList();
                      failure(term);
                  }
              };
&nbsp;
              function parse(data) {
                  var parsed = [];
                  var rows = data.split(&quot;\n&quot;);
                  for (var i = 0; i &lt; rows.length; i++) {
                      var row = $.trim(rows[i]);
                      if (row) {
                          row = row.split(&quot;|&quot;);
                          parsed[parsed.length] = {
                              data: row,
                              value: row[0],
                              result: options.formatResult &amp;&amp; options.formatResult(row, row[0]) || row[0]
                          };
                      }
                  }
                  return parsed;
              };
&nbsp;
              function stopLoading() {
                  $input.removeClass(options.loadingClass);
              };
&nbsp;
          };
&nbsp;
          $.Autocompleter.defaults = {
              inputClass: &quot;ac_input&quot;,
              resultsClass: &quot;ac_results&quot;,
              loadingClass: &quot;ac_loading&quot;,
              minChars: 1,
              delay: 400,
              matchCase: false,
              matchSubset: true,
              matchContains: false,
              cacheLength: 10,
              max: 100,
              mustMatch: false,
              extraParams: {},
              selectFirst: true,
              formatItem: function(row) { return row[0]; },
              formatMatch: null,
              autoFill: false,
              width: 0,
              multiple: false,
              multipleSeparator: &quot;, &quot;,
              highlight: function(value, term) {
                  return value.replace(new RegExp(&quot;(?![^&amp;;]+;)(?!&lt;[^&lt;&gt;]*)(&quot; + term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, &quot;\\$1&quot;) + &quot;)(?![^&lt;&gt;]*&gt;)(?![^&amp;;]+;)&quot;, &quot;gi&quot;), &quot;&lt;strong&gt;$1&lt;/strong&gt;&quot;);
              },
              scroll: true,
              scrollHeight: 180
          };
&nbsp;
          $.Autocompleter.Cache = function(options) {
&nbsp;
              var data = {};
              var length = 0;
&nbsp;
              function matchSubset(s, sub) {
                  if (!options.matchCase)
                      s = s.toLowerCase();
                  var i = s.indexOf(sub);
                  if (options.matchContains == &quot;word&quot;) {
                      i = s.toLowerCase().search(&quot;\\b&quot; + sub.toLowerCase());
                  }
                  if (i == -1) return false;
                  return i == 0 || options.matchContains;
              };
&nbsp;
              function add(q, value) {
                  if (length &gt; options.cacheLength) {
                      flush();
                  }
                  if (!data[q]) {
                      length++;
                  }
                  data[q] = value;
              }
&nbsp;
              function populate() {
                  if (!options.data) return false;
                  // track the matches
                  var stMatchSets = {},
			nullData = 0;
&nbsp;
                  // no url was specified, we need to adjust the cache length to make sure it fits the local data store
                  if (!options.url) options.cacheLength = 1;
&nbsp;
                  // track all options for minChars = 0
                  stMatchSets[&quot;&quot;] = [];
&nbsp;
                  // loop through the array and create a lookup structure
                  for (var i = 0, ol = options.data.length; i &lt; ol; i++) {
                      var rawValue = options.data[i];
                      // if rawValue is a string, make an array otherwise just reference the array
                      rawValue = (typeof rawValue == &quot;string&quot;) ? [rawValue] : rawValue;
&nbsp;
                      var value = options.formatMatch(rawValue, i + 1, options.data.length);
                      if (value === false)
                          continue;
&nbsp;
                      var firstChar = value.charAt(0).toLowerCase();
                      // if no lookup array for this character exists, look it up now
                      if (!stMatchSets[firstChar])
                          stMatchSets[firstChar] = [];
&nbsp;
                      // if the match is a string
                      var row = {
                          value: value,
                          data: rawValue,
                          result: options.formatResult &amp;&amp; options.formatResult(rawValue) || value
                      };
&nbsp;
                      // push the current match into the set list
                      stMatchSets[firstChar].push(row);
&nbsp;
                      // keep track of minChars zero items
                      if (nullData++ &lt; options.max) {
                          stMatchSets[&quot;&quot;].push(row);
                      }
                  };
&nbsp;
                  // add the data items to the cache
                  $.each(stMatchSets, function(i, value) {
                      // increase the cache size
                      options.cacheLength++;
                      // add to the cache
                      add(i, value);
                  });
              }
&nbsp;
              // populate any existing data
              setTimeout(populate, 25);
&nbsp;
              function flush() {
                  data = {};
                  length = 0;
              }
&nbsp;
              return {
                  flush: flush,
                  add: add,
                  populate: populate,
                  load: function(q) {
                      if (!options.cacheLength || !length)
                          return null;
                      /*
                      * if dealing w/local data and matchContains than we must make sure
                      * to loop through all the data collections looking for matches
                      */
                      if (!options.url &amp;&amp; options.matchContains) {
                          // track all matches
                          var csub = [];
                          // loop through all the data grids for matches
                          for (var k in data) {
                              // don't search through the stMatchSets[&quot;&quot;] (minChars: 0) cache
                              // this prevents duplicates
                              if (k.length &gt; 0) {
                                  var c = data[k];
                                  $.each(c, function(i, x) {
                                      // if we've got a match, add it to the array
                                      if (matchSubset(x.value, q)) {
                                          csub.push(x);
                                      }
                                  });
                              }
                          }
                          return csub;
                      } else
                      // if the exact item exists, use it
                          if (data[q]) {
                          return data[q];
                      } else
                          if (options.matchSubset) {
                          for (var i = q.length - 1; i &gt;= options.minChars; i--) {
                              var c = data[q.substr(0, i)];
                              if (c) {
                                  var csub = [];
                                  $.each(c, function(i, x) {
                                      if (matchSubset(x.value, q)) {
                                          csub[csub.length] = x;
                                      }
                                  });
                                  return csub;
                              }
                          }
                      }
                      return null;
                  }
              };
          };
&nbsp;
          $.Autocompleter.Select = function(options, input, select, config) {
              var CLASSES = {
                  ACTIVE: &quot;ac_over&quot;
              };
&nbsp;
              var listItems,
		active = -1,
		data,
		term = &quot;&quot;,
		needsInit = true,
		element,
		list;
&nbsp;
              // Create results
              function init() {
                  if (!needsInit)
                      return;
                  element = $(&quot;&lt;div/&gt;&quot;)
		.hide()
		.addClass(options.resultsClass)
		.css(&quot;position&quot;, &quot;absolute&quot;)
		.appendTo(document.body);
&nbsp;
                  list = $(&quot;&lt;ul/&gt;&quot;).appendTo(element).mouseover(function(event) {
                      if (target(event).nodeName &amp;&amp; target(event).nodeName.toUpperCase() == 'LI') {
                          active = $(&quot;li&quot;, list).removeClass(CLASSES.ACTIVE).index(target(event));
                          $(target(event)).addClass(CLASSES.ACTIVE);
                      }
                  }).click(function(event) {
                      $(target(event)).addClass(CLASSES.ACTIVE);
                      select();
                      // TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus
                      input.focus();
                      return false;
                  }).mousedown(function() {
                      config.mouseDownOnSelect = true;
                  }).mouseup(function() {
                      config.mouseDownOnSelect = false;
                  });
&nbsp;
                  if (options.width &gt; 0)
                      element.css(&quot;width&quot;, options.width);
&nbsp;
                  needsInit = false;
              }
&nbsp;
              function target(event) {
                  var element = event.target;
                  while (element &amp;&amp; element.tagName != &quot;LI&quot;)
                      element = element.parentNode;
                  // more fun with IE, sometimes event.target is empty, just ignore it then
                  if (!element)
                      return [];
                  return element;
              }
&nbsp;
              function moveSelect(step) {
                  listItems.slice(active, active + 1).removeClass(CLASSES.ACTIVE);
                  movePosition(step);
                  var activeItem = listItems.slice(active, active + 1).addClass(CLASSES.ACTIVE);
                  if (options.scroll) {
                      var offset = 0;
                      listItems.slice(0, active).each(function() {
                          offset += this.offsetHeight;
                      });
                      if ((offset + activeItem[0].offsetHeight - list.scrollTop()) &gt; list[0].clientHeight) {
                          list.scrollTop(offset + activeItem[0].offsetHeight - list.innerHeight());
                      } else if (offset &lt; list.scrollTop()) {
                          list.scrollTop(offset);
                      }
                  }
              };
&nbsp;
              function movePosition(step) {
                  active += step;
                  if (active &lt; 0) {
                      active = listItems.size() - 1;
                  } else if (active &gt;= listItems.size()) {
                      active = 0;
                  }
              }
&nbsp;
              function limitNumberOfItems(available) {
                  return options.max &amp;&amp; options.max &lt; available
			? options.max
			: available;
              }
&nbsp;
              function fillList() {
                  list.empty();
                  var max = limitNumberOfItems(data.length);
                  for (var i = 0; i &lt; max; i++) {
                      if (!data[i])
                          continue;
                      var formatted = options.formatItem(data[i].data, i + 1, max, data[i].value, term);
                      if (formatted === false)
                          continue;
                      var li = $(&quot;&lt;li/&gt;&quot;).html(options.highlight(formatted, term)).addClass(i % 2 == 0 ? &quot;ac_even&quot; : &quot;ac_odd&quot;).appendTo(list)[0];
                      $.data(li, &quot;ac_data&quot;, data[i]);
                  }
                  listItems = list.find(&quot;li&quot;);
                  if (options.selectFirst) {
                      listItems.slice(0, 1).addClass(CLASSES.ACTIVE);
                      active = 0;
                  }
                  // apply bgiframe if available
                  if ($.fn.bgiframe)
                      list.bgiframe();
              }
&nbsp;
              return {
                  display: function(d, q) {
                      init();
                      data = d;
                      term = q;
                      fillList();
                  },
                  next: function() {
                      moveSelect(1);
                  },
                  prev: function() {
                      moveSelect(-1);
                  },
                  pageUp: function() {
                      if (active != 0 &amp;&amp; active - 8 &lt; 0) {
                          moveSelect(-active);
                      } else {
                          moveSelect(-8);
                      }
                  },
                  pageDown: function() {
                      if (active != listItems.size() - 1 &amp;&amp; active + 8 &gt; listItems.size()) {
                          moveSelect(listItems.size() - 1 - active);
                      } else {
                          moveSelect(8);
                      }
                  },
                  hide: function() {
                      element &amp;&amp; element.hide();
                      listItems &amp;&amp; listItems.removeClass(CLASSES.ACTIVE);
                      active = -1;
                  },
                  visible: function() {
                      return element &amp;&amp; element.is(&quot;:visible&quot;);
                  },
                  current: function() {
                      return this.visible() &amp;&amp; (listItems.filter(&quot;.&quot; + CLASSES.ACTIVE)[0] || options.selectFirst &amp;&amp; listItems[0]);
                  },
                  show: function() {
                      var offset = $(input).offset();
                      element.css({
                          width: typeof options.width == &quot;string&quot; || options.width &gt; 0 ? options.width : $(input).width(),
                          top: offset.top + input.offsetHeight,
                          left: offset.left
                      }).show();
                      if (options.scroll) {
                          list.scrollTop(0);
                          list.css({
                              maxHeight: options.scrollHeight,
                              overflow: 'auto'
                          });
&nbsp;
                          if ($.browser.msie &amp;&amp; typeof document.body.style.maxHeight === &quot;undefined&quot;) {
                              var listHeight = 0;
                              listItems.each(function() {
                                  listHeight += this.offsetHeight;
                              });
                              var scrollbarsVisible = listHeight &gt; options.scrollHeight;
                              list.css('height', scrollbarsVisible ? options.scrollHeight : listHeight);
                              if (!scrollbarsVisible) {
                                  // IE doesn't recalculate width when scrollbar disappears
                                  listItems.width(list.width() - parseInt(listItems.css(&quot;padding-left&quot;)) - parseInt(listItems.css(&quot;padding-right&quot;)));
                              }
                          }
&nbsp;
                      }
                  },
                  selected: function() {
                      var selected = listItems &amp;&amp; listItems.filter(&quot;.&quot; + CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);
                      return selected &amp;&amp; selected.length &amp;&amp; $.data(selected[0], &quot;ac_data&quot;);
                  },
                  emptyList: function() {
                      list &amp;&amp; list.empty();
                  },
                  unbind: function() {
                      element &amp;&amp; element.remove();
                  }
              };
          };
&nbsp;
          $.Autocompleter.Selection = function(field, start, end) {
              if (field.createTextRange) {
                  var selRange = field.createTextRange();
                  selRange.collapse(true);
                  selRange.moveStart(&quot;character&quot;, start);
                  selRange.moveEnd(&quot;character&quot;, end);
                  selRange.select();
              } else if (field.setSelectionRange) {
                  field.setSelectionRange(start, end);
              } else {
                  if (field.selectionStart) {
                      field.selectionStart = start;
                      field.selectionEnd = end;
                  }
              }
              field.focus();
          };
&nbsp;
      })(jQuery);
&nbsp;
  &lt;/script&gt;
  &lt;style type=&quot;text/css&quot;&gt;
        .ac_input {
	        width: 200px;
        }
        .ac_results {
	        padding: 0px;
	        border: 1px solid WindowFrame;
	        background-color: Window;
	        overflow: hidden;
        }
&nbsp;
        .ac_results ul {
	        width: 100%;
	        list-style-position: outside;
	        list-style: none;
	        padding: 0;
	        margin: 0;
        }
&nbsp;
        .ac_results iframe {
	        display:none;/*sorry for IE5*/
	        display/**/:block;/*sorry for IE5*/
	        position:absolute;
	        top:0;
	        left:0;
	        z-index:-1;
	        filter:mask();
	        width:3000px;
	        height:3000px;
        }
&nbsp;
        .ac_results li {
	        margin: 0px;
	        padding: 2px 5px;
	        cursor: pointer;
	        display: block;
	        width: 100%;
	        font: menu;
	        font-size: 12px;
	        overflow: hidden;
        }
        .ac_loading {
	        background : url('img/indicator.gif') right center no-repeat;
        }
        .ac_odd {
	        background-color: #eee;
        }
&nbsp;
        .ac_over {
	        background-color: #0A246A;
	        color: white;
        }
&nbsp;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
    &lt;div&gt;
    &lt;p&gt;&lt;asp:TextBox ID=&quot;txtAutoComplete&quot; runat=&quot;server&quot;&gt;&lt;/asp:TextBox&gt; (autocomplete box)&lt;/p&gt;
    &lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&nbsp;
    $(document).ready(function() {
    $(&quot;#txtAutoComplete&quot;).autocomplete(&quot;AutoComplete.ashx&quot;, {
        width: 260,
        selectFirst: false,
        scroll: false
        });
&nbsp;
    });
&nbsp;
&lt;/script&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>HttpHandler:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Collections.Generic</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Linq</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Web</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Web.Services</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.IO</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Text.RegularExpressions</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">namespace</span> jQueryAndAspNetDemo
<span style="color: #008000;">&#123;</span>
    <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;    /// Summary description for $codebehindclassname$    /// &lt;/summary&gt;</span>
    <span style="color: #008000;">&#91;</span>WebService<span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">Namespace</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;http://tempuri.org/&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span>
    <span style="color: #008000;">&#91;</span>WebServiceBinding<span style="color: #008000;">&#40;</span>ConformsTo <span style="color: #008000;">=</span> WsiProfiles<span style="color: #008000;">.</span><span style="color: #0000FF;">BasicProfile1_1</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> AutoComplete <span style="color: #008000;">:</span> IHttpHandler
    <span style="color: #008000;">&#123;</span>
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> ProcessRequest<span style="color: #008000;">&#40;</span>HttpContext context<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #6666cc; font-weight: bold;">string</span> strJSON <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Empty</span><span style="color: #008000;">;</span>
            StreamReader reader <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">;</span>
            List<span style="color: #008000;">&lt;</span><span style="color: #6666cc; font-weight: bold;">String</span><span style="color: #008000;">&gt;</span> itemList <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> List<span style="color: #008000;">&lt;</span><span style="color: #6666cc; font-weight: bold;">String</span><span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>context<span style="color: #008000;">.</span><span style="color: #0000FF;">Request</span><span style="color: #008000;">.</span><span style="color: #0000FF;">QueryString</span><span style="color: #008000;">&#91;</span><span style="color: #666666;">&quot;q&quot;</span><span style="color: #008000;">&#93;</span> <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                <span style="color: #6666cc; font-weight: bold;">string</span> q <span style="color: #008000;">=</span> context<span style="color: #008000;">.</span><span style="color: #0000FF;">Request</span><span style="color: #008000;">.</span><span style="color: #0000FF;">QueryString</span><span style="color: #008000;">&#91;</span><span style="color: #666666;">&quot;q&quot;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span>
                <span style="color: #6666cc; font-weight: bold;">string</span> limit <span style="color: #008000;">=</span> context<span style="color: #008000;">.</span><span style="color: #0000FF;">Request</span><span style="color: #008000;">.</span><span style="color: #0000FF;">QueryString</span><span style="color: #008000;">&#91;</span><span style="color: #666666;">&quot;limit&quot;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span>
                <span style="color: #008080; font-style: italic;">//For example purpose , i'm reading from Text file.</span>
                <span style="color: #0600FF; font-weight: bold;">try</span>
                <span style="color: #008000;">&#123;</span>
                    <span style="color: #6666cc; font-weight: bold;">string</span> strFilePath <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;~/TestJSON.txt&quot;</span><span style="color: #008000;">;</span>
                    reader <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> StreamReader<span style="color: #008000;">&#40;</span>context<span style="color: #008000;">.</span><span style="color: #0000FF;">Server</span><span style="color: #008000;">.</span><span style="color: #0000FF;">MapPath</span><span style="color: #008000;">&#40;</span>strFilePath<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #6666cc; font-weight: bold;">string</span> strMatchText <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">;</span>
                    <span style="color: #0600FF; font-weight: bold;">while</span> <span style="color: #008000;">&#40;</span><span style="color: #008000;">&#40;</span>strMatchText <span style="color: #008000;">=</span> reader<span style="color: #008000;">.</span><span style="color: #0000FF;">ReadLine</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span>
                    <span style="color: #008000;">&#123;</span>
                        <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>Regex<span style="color: #008000;">.</span><span style="color: #0000FF;">IsMatch</span><span style="color: #008000;">&#40;</span>strMatchText, q, RegexOptions<span style="color: #008000;">.</span><span style="color: #0000FF;">IgnoreCase</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
                        <span style="color: #008000;">&#123;</span>
                            itemList<span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span>strMatchText<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                        <span style="color: #008000;">&#125;</span>
                    <span style="color: #008000;">&#125;</span>
                    strJSON <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">String</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Join</span><span style="color: #008000;">&#40;</span><span style="color: #000000;">System</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Environment</span><span style="color: #008000;">.</span><span style="color: #0000FF;">NewLine</span>, itemList<span style="color: #008000;">.</span><span style="color: #0000FF;">Take</span><span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">int</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Parse</span><span style="color: #008000;">&#40;</span>limit<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">ToArray</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                <span style="color: #008000;">&#125;</span>
                <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#123;</span> <span style="color: #008000;">&#125;</span>
                <span style="color: #0600FF; font-weight: bold;">finally</span>
                <span style="color: #008000;">&#123;</span>
                    <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>reader <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span>
                    <span style="color: #008000;">&#123;</span>
                        reader<span style="color: #008000;">.</span><span style="color: #0000FF;">Close</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #008000;">&#125;</span>
                <span style="color: #008000;">&#125;</span>
            <span style="color: #008000;">&#125;</span>
            context<span style="color: #008000;">.</span><span style="color: #0000FF;">Response</span><span style="color: #008000;">.</span><span style="color: #0000FF;">ContentType</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;text/plain&quot;</span><span style="color: #008000;">;</span>
            context<span style="color: #008000;">.</span><span style="color: #0000FF;">Response</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span>strJSON<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">bool</span> IsReusable
        <span style="color: #008000;">&#123;</span>
            get
            <span style="color: #008000;">&#123;</span>
                <span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #0600FF; font-weight: bold;">false</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
        <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<img src="http://osman.it/?ak_action=api_record_view&id=331&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fosman.it%2Faspnet%2Fautocomplete-using-jquery-aspnet-c%2F&amp;title=AutoComplete%20using%20jQuery%2C%20ASP.NET%20%26%23038%3B%20C%23" id="wpa2a_8"><img src="http://osman.it/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><hr />
<p><small>© admin for <a href="http://osman.it">Mohammed Osman</a>, 2009. |
<a href="http://osman.it/aspnet/autocomplete-using-jquery-aspnet-c/">Permalink</a> |
<a href="http://osman.it/aspnet/autocomplete-using-jquery-aspnet-c/#comments">7 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://osman.it/aspnet/autocomplete-using-jquery-aspnet-c/&title=AutoComplete using jQuery, ASP.NET &#038; C#">del.icio.us</a>
<br/>
Post tags: <a href="http://osman.it/tag/aspnet-c/" rel="tag">ASP.NET &amp; C#</a>, <a href="http://osman.it/tag/autocomplete-using-jquery/" rel="tag">AutoComplete using jQuery</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://osman.it/aspnet/autocomplete-using-jquery-aspnet-c/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Using ExtJS Grid with ASP.NET Ajax WCF WebServices &amp; C#</title>
		<link>http://osman.it/aspnet/using-extjs-grid-with-aspnet-ajax-wcf-webservices-c/</link>
		<comments>http://osman.it/aspnet/using-extjs-grid-with-aspnet-ajax-wcf-webservices-c/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 21:28:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ExtJS Grid ASP.NET Ajax WCF C#]]></category>

		<guid isPermaLink="false">http://mdosman.us/?p=317</guid>
		<description><![CDATA[I have been using ExtJS Javascript framework from long time and it is Intuitive, very very extensive, great DOM manipulation, solid effects. The fastest to get things done when puzzling out on the commandline. As in one of my earlier post I talked about Coolite. Coolite Toolkit is an Ext official suite of ASP.NET Web Controls built on [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using ExtJS Javascript framework from long time and it is Intuitive, very very extensive, great DOM manipulation, solid effects. The fastest to get things done when puzzling out on the commandline. As in one of my earlier post I talked about Coolite. Coolite Toolkit is an Ext official suite of ASP.NET Web Controls built on the Ext JavaScript Framework. I would really recommend to use the above instead of using ExtJS seperately with ASP.NET Framework. But, if for any reason here is the sample. <strong>Step 1: Create aspx page</strong> Simple ASPX page which enables to search by last name or first name</p>

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;%</span><span style="color: #006600; font-weight: bold;">@</span> Page Language<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;C#&quot;</span> MasterPageFile<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;~/MasterPages/MasterPage.master&quot;</span> AutoEventWireup<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;true&quot;</span> CodeFile<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;UserSearch.aspx.cs&quot;</span> Inherits<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;Webforms_UserSearch&quot;</span> Title<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;Search User&quot;</span> <span style="color: #000000; font-weight: bold;">%&gt;</span><span style="color: #000000; font-weight: bold;">&lt;%</span><span style="color: #006600; font-weight: bold;">@</span> Register    Assembly<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;AjaxControlToolkit&quot;</span>    Namespace<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;AjaxControlToolkit&quot;</span>    TagPrefix<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;ajaxToolkit&quot;</span> <span style="color: #000000; font-weight: bold;">%&gt;</span>
&lt;asp:Content ID=&quot;Content1&quot; ContentPlaceHolderID=&quot;ContentPlaceHolder1&quot; Runat=&quot;Server&quot;&gt;
&lt;asp:ScriptManager runat=&quot;server&quot; ID=&quot;scriptManagerId&quot;&gt;
    &lt;Scripts&gt;
        &lt;asp:ScriptReference Path=&quot;~/Scripts/UserSearch.js&quot; /&gt;
    &lt;/Scripts&gt;
    &lt;Services&gt;
        &lt;asp:ServiceReference  Path=&quot;~/WebServices/ExtJSWebService.asmx&quot; /&gt;
    &lt;/Services&gt;
&lt;/asp:ScriptManager&gt;
    &lt;div class=&quot;x-box-blue&quot; style=&quot;width:500px;&quot;&gt;
	&lt;div class=&quot;x-box-tl&quot;&gt;&lt;div class=&quot;x-box-tr&quot;&gt;&lt;div class=&quot;x-box-tc&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
	&lt;div class=&quot;x-box-ml&quot;&gt;&lt;div class=&quot;x-box-mr&quot;&gt;&lt;div class=&quot;x-box-mc&quot; id=&quot;boxContent&quot;&gt;
    &lt;asp:Label ID=&quot;lblForm&quot; runat=&quot;Server&quot; CssClass=&quot;FormLabel&quot; Text=&quot;User Search&quot;&gt;&lt;/asp:Label&gt;
	&lt;div id=&quot;thePanel&quot; class=&quot;FormPanel&quot;&gt;
		&lt;div id=&quot;theData&quot;&gt;
			&lt;table align=&quot;center&quot; &gt;
                    &lt;tr&gt;
                        &lt;td  colspan=&quot;12&quot; height=&quot;4px&quot;&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;
                    &lt;tr&gt;
                        &lt;td align=&quot;right&quot;&gt;
                            &lt;asp:Label ID=&quot;lblLastName&quot; runat=&quot;server&quot; AssociatedControlID=&quot;txtLastName&quot; CssClass=&quot;Label&quot; &gt;Last Name&lt;/asp:Label&gt;
                        &lt;/td&gt;
                        &lt;td width=&quot;4px&quot;&gt;
                        &lt;/td&gt;
                        &lt;td&gt;
                            &lt;asp:TextBox ID=&quot;txtLastName&quot; runat=&quot;server&quot; CssClass=&quot;TextBox&quot; MaxLength=&quot;50&quot; &gt;&lt;/asp:TextBox&gt;
                        &lt;/td&gt;
                        &lt;td width=&quot;14px&quot;&gt;
                        &lt;/td&gt;
                        &lt;td align=&quot;right&quot;&gt;
                            &lt;asp:Label ID=&quot;lblFirstName&quot; runat=&quot;server&quot; AssociatedControlID=&quot;txtFirstName&quot; CssClass=&quot;Label&quot;  &gt;First Name&lt;/asp:Label&gt;
                        &lt;/td&gt;
                        &lt;td width=&quot;4px&quot;&gt;
                        &lt;/td&gt;
                        &lt;td&gt;
                            &lt;asp:TextBox ID=&quot;txtFirstName&quot; runat=&quot;server&quot; CssClass=&quot;TextBox&quot; MaxLength=&quot;50&quot;&gt;&lt;/asp:TextBox&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;
&nbsp;
                    &lt;tr&gt;
                        &lt;td  colspan=&quot;12&quot; height=&quot;4px&quot;&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;
                 &lt;/table&gt;
		&lt;/div&gt;
	&lt;/div&gt;
	&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
	&lt;div class=&quot;x-box-bl&quot;&gt;&lt;div class=&quot;x-box-br&quot;&gt;&lt;div class=&quot;x-box-bc&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;div style=&quot;width:500px;&quot;&gt;
    &lt;table align=&quot;center&quot;&gt;
    &lt;tr&gt;
        &lt;td height=&quot;5px&quot; colspan=&quot;12&quot;&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td colSpan=&quot;3&quot; height=&quot;10&quot;&gt;
             &lt;asp:label id=&quot;lblWarn&quot; runat=&quot;server&quot; CssClass=&quot;Warning&quot; Visible=&quot;False&quot;&gt;&lt;/asp:label&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
    &lt;table align=&quot;Center&quot;&gt;
    &lt;tr&gt;
        &lt;td&gt;
            &lt;asp:Button ID=&quot;btnSearch&quot; runat=&quot;Server&quot; Text=&quot;Search&quot;  OnClientClick=&quot;return BindGrid();&quot;/&gt;
       &lt;/td&gt;
       &lt;td width=&quot;10px&quot;&gt;
       &lt;/td&gt;
       &lt;td&gt;
            &lt;asp:Button ID=&quot;btnAdd&quot; runat=&quot;Server&quot; Text=&quot;Add&quot;  OnClick=&quot;btnAdd_Click&quot; CausesValidation=&quot;false&quot;/&gt;
       &lt;/td&gt;
     &lt;/tr&gt;
         &lt;tr&gt;
        &lt;td height=&quot;5px&quot; colspan=&quot;12&quot;&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
     &lt;/table&gt;
    &lt;/div&gt;
&nbsp;
    &lt;div id=&quot;grid-win&quot; class=&quot;x-hidden&quot;&gt;
        &lt;div class=&quot;x-window-header&quot;&gt;User Search&lt;/div&gt;
        &lt;div id=&quot;grid-user&quot;&gt;
&nbsp;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/asp:Content&gt;</pre></div></div>

<p><strong>Step 2 :  Creating Web Service ( If you look at aspx page, i called it ExtJSWebService.asmx</strong></p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Text</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Runtime.Serialization.Formatters.Binary</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Security.Principal</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Data.Common</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.IO</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Configuration</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Collections.Generic</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Collections.Specialized</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Collections</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Data</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #008080; font-style: italic;">/// &lt;summary&gt; </span>
<span style="color: #008080; font-style: italic;">/// Summary description for WebService </span>
<span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
<span style="color: #008000;">&#91;</span><span style="color: #000000;">System.<span style="color: #0000FF;">Web</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Services</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">WebService</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">Namespace</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;MR&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span>
<span style="color: #008000;">&#91;</span>WebServiceBinding<span style="color: #008000;">&#40;</span>ConformsTo <span style="color: #008000;">=</span> WsiProfiles<span style="color: #008000;">.</span><span style="color: #0000FF;">BasicProfile1_1</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span>
<span style="color: #008000;">&#91;</span>ScriptService<span style="color: #008000;">&#93;</span>
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> ExtJSWebService <span style="color: #008000;">:</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Web</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Services</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">WebService</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #6666cc; font-weight: bold;">string</span> strResponse <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Empty</span><span style="color: #008000;">;</span>
&nbsp;
    <span style="color: #0600FF; font-weight: bold;">public</span> ExtJSWebService<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
        <span style="color: #008080; font-style: italic;">//Uncomment the following line if using designed components        //InitializeComponent(); </span>
    <span style="color: #008000;">&#125;</span>
&nbsp;
    <span style="color: #008000;">&#91;</span>WebMethod<span style="color: #008000;">&#93;</span>
    <span style="color: #008000;">&#91;</span>ScriptMethod<span style="color: #008000;">&#40;</span>ResponseFormat <span style="color: #008000;">=</span> ResponseFormat<span style="color: #008000;">.</span><span style="color: #0000FF;">Json</span>, UseHttpGet <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">true</span>, XmlSerializeString <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">false</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> JSONCollection<span style="color: #008000;">&lt;</span>MembershipUserCollection<span style="color: #008000;">&gt;</span> GetUserCollectionJSON<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">int</span> start, <span style="color: #6666cc; font-weight: bold;">int</span> limit, <span style="color: #6666cc; font-weight: bold;">string</span> i_Params, <span style="color: #6666cc; font-weight: bold;">string</span> sort, <span style="color: #6666cc; font-weight: bold;">string</span> dir<span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
&nbsp;
        UserDataSource objDS <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> UserDataSource<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        MembershipUserCollection objCollection <span style="color: #008000;">=</span> objDS<span style="color: #008000;">.</span><span style="color: #0000FF;">GetUserCollection</span><span style="color: #008000;">&#40;</span>i_Params, start, limit, sort <span style="color: #008000;">+</span> <span style="color: #666666;">&quot; &quot;</span> <span style="color: #008000;">+</span> dir<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        JSONCollection<span style="color: #008000;">&lt;</span>MembershipUserCollection<span style="color: #008000;">&gt;</span> objJSON <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> JSONCollection<span style="color: #008000;">&lt;</span>MembershipUserCollection<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        objJSON<span style="color: #008000;">.</span><span style="color: #0000FF;">List</span> <span style="color: #008000;">=</span> objCollection<span style="color: #008000;">;</span>
        objJSON<span style="color: #008000;">.</span><span style="color: #0000FF;">TotalCount</span> <span style="color: #008000;">=</span> objDS<span style="color: #008000;">.</span><span style="color: #0000FF;">GetUsersCount</span><span style="color: #008000;">&#40;</span>i_Params<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">return</span> objJSON<span style="color: #008000;">;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> JSONCollection<span style="color: #008000;">&lt;</span>T<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #0600FF; font-weight: bold;">private</span> T m_value<span style="color: #008000;">;</span>
    <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">int</span> intCount<span style="color: #008000;">;</span>
&nbsp;
    <span style="color: #0600FF; font-weight: bold;">public</span> T List
    <span style="color: #008000;">&#123;</span>
        get
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> m_value<span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
        set
        <span style="color: #008000;">&#123;</span>
            m_value <span style="color: #008000;">=</span> value<span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
&nbsp;
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">int</span> TotalCount
    <span style="color: #008000;">&#123;</span>
        get
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">intCount</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
        set
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">intCount</span> <span style="color: #008000;">=</span> value<span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> MembershipUserCollection <span style="color: #008000;">:</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Collections</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">ObjectModel</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Collection</span><span style="color: #008000;">&lt;</span>MembershipUser<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&#123;</span>
&nbsp;
<span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #008000;">&#91;</span>Serializable<span style="color: #008000;">&#93;</span>
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> MembershipUser
<span style="color: #008000;">&#123;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> MembershipUser<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">string</span> ErrorMessage <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">string</span> FirstName <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">string</span> LastName <span style="color: #008000;">&#123;</span> get<span style="color: #008000;">;</span> set<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<p><strong>Step 3:  Javascript by name UserSearch.js (as reference in aspx)</strong></p>
<hr /> </p>

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #0000ff; font-weight: bold;">var</span> usWin<span style="color: #006600; font-weight: bold;">;</span>
<span style="color: #0000ff; font-weight: bold;">function</span> BindGrid<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
        Ext.<span style="color: #9900cc;">lib</span>.<span style="color: #9900cc;">Ajax</span>.<span style="color: #9900cc;">defaultPostHeader</span> <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #008000;">'application/json';</span>
         <span style="color: #0000ff; font-weight: bold;">var</span> gridDiv <span style="color: #006600; font-weight: bold;">=</span> $get<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'grid-user');</span>
         gridDiv.<span style="color: #9900cc;">innerHTML</span> <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #008000;">'';</span>
         <span style="color: #0000ff; font-weight: bold;">var</span> fieldMap <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">data</span>.<span style="color: #9900cc;">Record</span>.<span style="color: #9900cc;">create</span><span style="color: #006600; font-weight:bold;">&#40;</span>
                    <span style="color: #006600; font-weight:bold;">&#91;</span>
                        <span style="color: #006600; font-weight:bold;">&#123;</span>name <span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'LastName'},</span>
                        <span style="color: #006600; font-weight:bold;">&#123;</span>name <span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'FirstName'}</span>
&nbsp;
                    <span style="color: #006600; font-weight:bold;">&#93;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
                    <span style="color: #0000ff; font-weight: bold;">var</span> usDataStore <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">data</span>.<span style="color: #9900cc;">Store</span><span style="color: #006600; font-weight:bold;">&#40;</span>
                    <span style="color: #006600; font-weight:bold;">&#123;</span>
                        <span style="color: #ff6600;">//Note that I have renamed the web service proxy class</span>
                        proxy<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">ux</span>.<span style="color: #9900cc;">AspWebServiceProxy</span><span style="color: #006600; font-weight:bold;">&#40;</span>
                        <span style="color: #006600; font-weight:bold;">&#123;</span>
                            webServiceProxy<span style="color: #006600; font-weight: bold;">:</span> ExtJSWebService,
                            webServiceProxyMethod<span style="color: #006600; font-weight: bold;">:</span> ExtJSWebService.<span style="color: #9900cc;">GetUserCollectionJSON</span>
                        <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span>,
                        reader<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">data</span>.<span style="color: #9900cc;">JsonReader</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
                                    root<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'List',</span>
                                    totalProperty<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'TotalCount',</span>
                                    id<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'LastName'</span>
                        <span style="color: #006600; font-weight:bold;">&#125;</span>,fieldMap<span style="color: #006600; font-weight:bold;">&#41;</span>,
&nbsp;
                        remoteSort<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>
                    <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
                    usDataStore.<span style="color: #9900cc;">setDefaultSort</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'LastName', 'desc');</span>
            <span style="color: #ff6600;">// 5. Now you can bind this ExtJS based “Store” to any ExtJS based “GridPanel” or Select list or can use the store as a temporary data place holder for further manipulation later on.</span>
            <span style="color: #0000ff; font-weight: bold;">var</span> usColModel <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">grid</span>.<span style="color: #9900cc;">ColumnModel</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#91;</span>
&nbsp;
                <span style="color: #006600; font-weight:bold;">&#123;</span>header<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #cc0000;">&quot;Last Name&quot;</span>, width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">105</span>, sortable<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>, dataIndex<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'LastName'},</span>
                <span style="color: #006600; font-weight:bold;">&#123;</span>header<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #cc0000;">&quot;First Name&quot;</span>, width<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">105</span>, sortable<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>, dataIndex<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'FirstName'},</span>
            <span style="color: #006600; font-weight:bold;">&#93;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
            <span style="color: #0000ff; font-weight: bold;">var</span> usGrid <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">grid</span>.<span style="color: #9900cc;">GridPanel</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
                el<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'grid-user',</span>
                ds<span style="color: #006600; font-weight: bold;">:</span> usDataStore,
                cm<span style="color: #006600; font-weight: bold;">:</span> usColModel,
                sm<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">grid</span>.<span style="color: #9900cc;">RowSelectionModel</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
                   singleSelect<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>
               <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span>,
                stripeRows<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>,
                bbar<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">PagingToolbar</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
                    pageSize<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #800000;">10</span>,
                    store<span style="color: #006600; font-weight: bold;">:</span> usDataStore,
                    displayInfo<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>,
                    displayMsg<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Displaying Users {0} - {1} of {2}',</span>
                    emptyMsg<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #cc0000;">&quot;No topics to display&quot;</span>
                    <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span>,
                viewConfig<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
                    emptyText<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'&amp;lt;&lt;span class=&quot;tag&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;attr&quot;&gt; style=&lt;/span&gt;&lt;span class=&quot;attrv&quot;&gt;&quot;color:Red;&quot;&lt;/span&gt;&lt;span class=&quot;attr&quot;&gt; align=&lt;/span&gt;&lt;span class=&quot;attrv&quot;&gt;&quot;center&quot;&lt;/span&gt;&amp;gt;No Users found...&amp;lt;/&lt;span class=&quot;tag&quot;&gt;div&lt;/span&gt;&amp;gt;'</span>
                <span style="color: #006600; font-weight:bold;">&#125;</span>,
                autoHeight<span style="color: #006600; font-weight: bold;">:</span><span style="color: #0000ff; font-weight: bold;">true</span>,
                plugins<span style="color: #006600; font-weight: bold;">:</span><span style="color: #006600; font-weight:bold;">&#91;</span><span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">ux</span>.<span style="color: #9900cc;">grid</span>.<span style="color: #9900cc;">Search</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
                             mode<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'local'</span>
                            ,iconCls<span style="color: #006600; font-weight: bold;">:</span><span style="color: #0000ff; font-weight: bold;">false</span>
                            ,dateFormat<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'m/d/Y'</span>
                        <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#93;</span>
            <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
            usGrid.<span style="color: #9900cc;">render</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
           usGrid.<span style="color: #990099; font-weight: bold;">on</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'rowclick', function (grid, rowIndex, e){</span>
                <span style="color: #0000ff; font-weight: bold;">var</span> record <span style="color: #006600; font-weight: bold;">=</span> grid.<span style="color: #9900cc;">getStore</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span>.<span style="color: #9900cc;">getAt</span><span style="color: #006600; font-weight:bold;">&#40;</span>rowIndex<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>  <span style="color: #ff6600;">// Get the Record</span>
                <span style="color: #0000ff; font-weight: bold;">var</span> userID <span style="color: #006600; font-weight: bold;">=</span> record.<span style="color: #9900cc;">data</span><span style="color: #006600; font-weight:bold;">&#91;</span><span style="color: #008000;">'LastName'];</span>
                window.<span style="color: #9900cc;">location</span><span style="color: #006600; font-weight: bold;">=</span><span style="color: #008000;">'ManageUser.aspx?Mode=Update&amp;amp;LastName='+LastName;</span>
             <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
            <span style="color: #0000ff; font-weight: bold;">var</span> paramXML <span style="color: #006600; font-weight: bold;">=</span> PrepareParamXML<span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
            usDataStore.<span style="color: #990099; font-weight: bold;">on</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'beforeload', function() {</span>
                        usDataStore.<span style="color: #9900cc;">baseParams</span> <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
                        i_Params<span style="color: #006600; font-weight: bold;">:</span> paramXML
                      <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight: bold;">;</span>
             <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
            usDataStore.<span style="color: #9900cc;">load</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>params<span style="color: #006600; font-weight: bold;">:</span><span style="color: #006600; font-weight:bold;">&#123;</span>start<span style="color: #006600; font-weight: bold;">:</span><span style="color: #800000;">0</span>, limit<span style="color: #006600; font-weight: bold;">:</span><span style="color: #800000;">10</span><span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
            usDataStore.<span style="color: #990099; font-weight: bold;">on</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'loadexception', function(a,conn,resp) {</span>
                     <span style="color: #990099; font-weight: bold;">if</span> <span style="color: #006600; font-weight:bold;">&#40;</span>resp.<span style="color: #330066;">status</span> <span style="color: #006600; font-weight: bold;">==</span> <span style="color: #008000;">'304') {</span>
                                <span style="color: #ff6600;">//Ext.Msg.alert('Content has not changed');</span>
                            <span style="color: #006600; font-weight:bold;">&#125;</span> <span style="color: #990099; font-weight: bold;">else</span> <span style="color: #990099; font-weight: bold;">if</span> <span style="color: #006600; font-weight:bold;">&#40;</span>resp.<span style="color: #330066;">status</span> <span style="color: #006600; font-weight: bold;">==</span> <span style="color: #008000;">'401') {</span>
                                <span style="color: #ff6600;">//Ext.Msg.alert('Authentication required - You need to Login');</span>
                            <span style="color: #006600; font-weight:bold;">&#125;</span>
                <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
        <span style="color: #ff6600;">// create the window on the first click and reuse on subsequent clicks</span>
        <span style="color: #990099; font-weight: bold;">if</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight: bold;">!</span>usWin<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
            usWin <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">new</span> Ext.<span style="color: #9900cc;">Window</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
                el<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'grid-win',</span>
                layout<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'fit',</span>
                width<span style="color: #006600; font-weight: bold;">:</span><span style="color: #800000;">600</span>,
                modal<span style="color: #006600; font-weight: bold;">:</span><span style="color: #0000ff; font-weight: bold;">true</span>,
                autoHeight<span style="color: #006600; font-weight: bold;">:</span><span style="color: #0000ff; font-weight: bold;">true</span>,
                closeAction<span style="color: #006600; font-weight: bold;">:</span><span style="color: #008000;">'hide',</span>
                plain<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">true</span>,
                items<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight:bold;">&#91;</span>usGrid<span style="color: #006600; font-weight:bold;">&#93;</span>,
                buttons<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #006600; font-weight:bold;">&#91;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
                    text<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #008000;">'Close',</span>
                    handler<span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight:bold;">&#123;</span>
                        usWin.<span style="color: #9900cc;">hide</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
                           <span style="color: #0000ff; font-weight: bold;">var</span> button <span style="color: #006600; font-weight: bold;">=</span> Ext.<span style="color: #990099; font-weight: bold;">get</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'ctl00_ContentPlaceHolder1_btnSearch');</span>
                           button.<span style="color: #9900cc;">dom</span>.<span style="color: #9900cc;">focus</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
                           <span style="color: #0000ff; font-weight: bold;">var</span> txt <span style="color: #006600; font-weight: bold;">=</span> Ext.<span style="color: #990099; font-weight: bold;">get</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'ctl00_ContentPlaceHolder1_txtLastName');</span>
                           txt.<span style="color: #9900cc;">dom</span>.<span style="color: #9900cc;">focus</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
                    <span style="color: #006600; font-weight:bold;">&#125;</span>
                <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#93;</span>
            <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
        <span style="color: #006600; font-weight:bold;">&#125;</span>
        usWin.<span style="color: #9900cc;">show</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
        return <span style="color: #0000ff; font-weight: bold;">false</span><span style="color: #006600; font-weight: bold;">;</span>
<span style="color: #006600; font-weight:bold;">&#125;</span>
&nbsp;
Ext.<span style="color: #9900cc;">namespace</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #008000;">'Ext.ux');</span>
&nbsp;
Ext.<span style="color: #9900cc;">ux</span>.<span style="color: #9900cc;">AspWebServiceProxy</span> <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span>conn<span style="color: #006600; font-weight:bold;">&#41;</span>
           <span style="color: #006600; font-weight:bold;">&#123;</span>
              Ext.<span style="color: #9900cc;">ux</span>.<span style="color: #9900cc;">AspWebServiceProxy</span>.<span style="color: #9900cc;">superclass</span>.<span style="color: #9900cc;">constructor</span>.<span style="color: #990099; font-weight: bold;">call</span><span style="color: #006600; font-weight:bold;">&#40;</span>this<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
              Ext.<span style="color: #9900cc;">apply</span><span style="color: #006600; font-weight:bold;">&#40;</span>this, conn<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
           <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
Ext.<span style="color: #9900cc;">extend</span><span style="color: #006600; font-weight:bold;">&#40;</span>Ext.<span style="color: #9900cc;">ux</span>.<span style="color: #9900cc;">AspWebServiceProxy</span>, Ext.<span style="color: #9900cc;">data</span>.<span style="color: #9900cc;">DataProxy</span>,
<span style="color: #006600; font-weight:bold;">&#123;</span>
     load <span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span> <span style="color: #006600; font-weight:bold;">&#40;</span>params, reader, callback, scope, arg<span style="color: #006600; font-weight:bold;">&#41;</span>
            <span style="color: #006600; font-weight:bold;">&#123;</span>
               <span style="color: #0000ff; font-weight: bold;">var</span> userContext <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #006600; font-weight:bold;">&#123;</span>
                                    callback<span style="color: #006600; font-weight: bold;">:</span> callback,
                                    reader<span style="color: #006600; font-weight: bold;">:</span> reader,
                                    arg<span style="color: #006600; font-weight: bold;">:</span> arg,
                                    scope<span style="color: #006600; font-weight: bold;">:</span> scope
                                 <span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
               <span style="color: #0000ff; font-weight: bold;">var</span> proxyWrapper <span style="color: #006600; font-weight: bold;">=</span> this<span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
               <span style="color: #ff6600;">//debugger;</span>
               <span style="color: #ff6600;">//Handles the response we get back from the web service call</span>
               <span style="color: #0000ff; font-weight: bold;">var</span> webServiceCallback <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #990099; font-weight: bold;">response</span>, context, methodName<span style="color: #006600; font-weight:bold;">&#41;</span>
                                        <span style="color: #006600; font-weight:bold;">&#123;</span>
                                            proxyWrapper.<span style="color: #9900cc;">loadResponse</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #990099; font-weight: bold;">response</span>, userContext, methodName<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
                                        <span style="color: #006600; font-weight:bold;">&#125;</span>
&nbsp;
               <span style="color: #0000ff; font-weight: bold;">var</span> serviceParams <span style="color: #006600; font-weight: bold;">=</span> <span style="color: #006600; font-weight:bold;">&#91;</span><span style="color: #006600; font-weight:bold;">&#93;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
               <span style="color: #ff6600;">//Convert the params into an array of values so that they can be used in the call (note assumes that the properties on the object are in the correct order)</span>
               <span style="color: #990099; font-weight: bold;">for</span> <span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #0000ff; font-weight: bold;">var</span> <span style="color: #330066;">property</span> <span style="color: #990099; font-weight: bold;">in</span> params<span style="color: #006600; font-weight:bold;">&#41;</span>
               <span style="color: #006600; font-weight:bold;">&#123;</span>
                  serviceParams.<span style="color: #9900cc;">push</span><span style="color: #006600; font-weight:bold;">&#40;</span>params<span style="color: #006600; font-weight:bold;">&#91;</span><span style="color: #330066;">property</span><span style="color: #006600; font-weight:bold;">&#93;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
               <span style="color: #006600; font-weight:bold;">&#125;</span>
&nbsp;
               <span style="color: #ff6600;">//Add the webservice callback handlers</span>
               serviceParams.<span style="color: #9900cc;">push</span><span style="color: #006600; font-weight:bold;">&#40;</span>webServiceCallback<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
               serviceParams.<span style="color: #9900cc;">push</span><span style="color: #006600; font-weight:bold;">&#40;</span>this.<span style="color: #9900cc;">handleErrorResponse</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
&nbsp;
               <span style="color: #ff6600;">//Make the actual ASP.Net web service call</span>
               this.<span style="color: #9900cc;">webServiceProxyMethod</span>.<span style="color: #9900cc;">apply</span><span style="color: #006600; font-weight:bold;">&#40;</span>this.<span style="color: #9900cc;">webServiceProxy</span>, serviceParams<span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
            <span style="color: #006600; font-weight:bold;">&#125;</span>,
&nbsp;
     handleErrorResponse <span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #990099; font-weight: bold;">response</span>, userContext, methodName<span style="color: #006600; font-weight:bold;">&#41;</span>
                           <span style="color: #006600; font-weight:bold;">&#123;</span>
                               window.<span style="color: #9900cc;">location</span>.<span style="color: #9900cc;">reload</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
<span style="color: #ff6600;">//                               Ext.MessageBox.show({</span>
<span style="color: #ff6600;">//                                       title: 'Error',</span>
<span style="color: #ff6600;">//                                       msg: response.get_message(),</span>
<span style="color: #ff6600;">//                                       buttons: Ext.MessageBox.OK,</span>
<span style="color: #ff6600;">//                                       icon: Ext.MessageBox.ERROR</span>
<span style="color: #ff6600;">//                                   });</span>
                              <span style="color: #ff6600;">//alert(&quot;Error while calling method: &quot; + methodName + &quot;n&quot; + response.get_message());</span>
                           <span style="color: #006600; font-weight:bold;">&#125;</span>,
&nbsp;
     loadResponse <span style="color: #006600; font-weight: bold;">:</span> <span style="color: #0000ff; font-weight: bold;">function</span> <span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #990099; font-weight: bold;">response</span>, userContext, methodName<span style="color: #006600; font-weight:bold;">&#41;</span>
                    <span style="color: #006600; font-weight:bold;">&#123;</span>
                        <span style="color: #0000ff; font-weight: bold;">var</span> result <span style="color: #006600; font-weight: bold;">=</span> userContext.<span style="color: #9900cc;">reader</span>.<span style="color: #9900cc;">readRecords</span><span style="color: #006600; font-weight:bold;">&#40;</span><span style="color: #990099; font-weight: bold;">response</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
                        userContext.<span style="color: #9900cc;">callback</span>.<span style="color: #990099; font-weight: bold;">call</span><span style="color: #006600; font-weight:bold;">&#40;</span>userContext.<span style="color: #9900cc;">scope</span>, result, userContext.<span style="color: #9900cc;">arg</span>, <span style="color: #0000ff; font-weight: bold;">true</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span>
                    <span style="color: #006600; font-weight:bold;">&#125;</span>
&nbsp;
<span style="color: #006600; font-weight:bold;">&#125;</span><span style="color: #006600; font-weight:bold;">&#41;</span><span style="color: #006600; font-weight: bold;">;</span></pre></div></div>

<p>I&#8217;m assuming you have master page and it has reference to javascript</p>
<hr /> </p>
<pre class="coloredcode">    &lt;<span class="tag">script</span><span class="attr"> type=</span><span class="attrv">"text/javascript"</span><span class="attr"> src=</span><span class="attrv">"../Scripts/ext-2.0/adapter/ext/ext-base.js"</span>&gt;&lt;/<span class="tag">script</span>&gt;
    <span class="cmt">&lt;!-- ENDLIBS --&gt;</span>

    &lt;<span class="tag">script</span><span class="attr"> type=</span><span class="attrv">"text/javascript"</span><span class="attr"> src=</span><span class="attrv">"../Scripts/ext-2.0/ext-all.js"</span>&gt;&lt;/<span class="tag">script</span>&gt;
    &lt;<span class="tag">script</span><span class="attr"> type=</span><span class="attrv">"text/javascript"</span><span class="attr"> src=</span><span class="attrv">"../Scripts/Ext.ux.AspWebServiceProxy.js"</span>&gt;&lt;/<span class="tag">script</span>&gt;</pre>
<img src="http://osman.it/?ak_action=api_record_view&id=317&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fosman.it%2Faspnet%2Fusing-extjs-grid-with-aspnet-ajax-wcf-webservices-c%2F&amp;title=Using%20ExtJS%20Grid%20with%20ASP.NET%20Ajax%20WCF%20WebServices%20%26%23038%3B%20C%23" id="wpa2a_10"><img src="http://osman.it/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><hr />
<p><small>© admin for <a href="http://osman.it">Mohammed Osman</a>, 2009. |
<a href="http://osman.it/aspnet/using-extjs-grid-with-aspnet-ajax-wcf-webservices-c/">Permalink</a> |
<a href="http://osman.it/aspnet/using-extjs-grid-with-aspnet-ajax-wcf-webservices-c/#comments">18 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://osman.it/aspnet/using-extjs-grid-with-aspnet-ajax-wcf-webservices-c/&title=Using ExtJS Grid with ASP.NET Ajax WCF WebServices &#038; C#">del.icio.us</a>
<br/>
Post tags: <a href="http://osman.it/tag/extjs-grid-aspnet-ajax-wcf-c/" rel="tag">ExtJS Grid ASP.NET Ajax WCF C#</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://osman.it/aspnet/using-extjs-grid-with-aspnet-ajax-wcf-webservices-c/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Ajax file upload using jQuery, ASP.NET &amp; C#</title>
		<link>http://osman.it/aspnet/jquery-ajax-file-upload/</link>
		<comments>http://osman.it/aspnet/jquery-ajax-file-upload/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 16:29:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Ajax file upload using jQuery ASP.NET C#]]></category>

		<guid isPermaLink="false">http://mdosman.us/?p=290</guid>
		<description><![CDATA[&#160; This plugin allows users to easily upload multiple files without refreshing the page.   Ajax file upload plugin allows users to easily upload multiple files without refreshing the page. In addition, you can use any element to show file selection window. Demo View an usage examples with various options. This is a PHP version, [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p class="scriptdescinner" title="jQuery: Ajax file upload ">This plugin allows users to easily upload multiple files without refreshing the page.</p>
<div class="clear" style="margin-bottom: 5px;"> <a title="jQuery: Ajax file upload " href="http://valums.com/projects/ajax-upload/" target="_blank"><img class="img_bor" src="http://www.ajaxrain.com/rainImage/dec0800.JPG" alt="" width="325" height="100" border="0" /></a></div>
<p>Ajax file upload plugin allows users to easily upload multiple files without refreshing the page. In addition, you can use any element to show file selection window.</p>
<h2>Demo</h2>
<p>View an usage <a href="http://valums.com/s/p/ajax-upload/demo.htm" rel="nofollow">examples</a> with various options. This is a PHP version,</p>
<h2>Download</h2>
<p>Latest version &#8211; 0.6 (8 December 2008) Fixed bug in the &#8220;disable&#8221; method. <a href="http://valums.com/s/p/ajax-upload/jquery.ajax_upload.0.6.js" rel="nofollow">Full</a> (7KB) <a href="http://valums.com/s/p/ajax-upload/jquery.ajax_upload.0.6.min.js" rel="nofollow">Minified</a> (3KB)</p>
<h2>How to use?</h2>
<h3>Dependencies</h3>
<p>Plugin requires <a href="http://jquery.com/" rel="nofollow">jQuery 1.2</a> or above.</p>
<h4>Creating ASPX Page</h4>
<hr />
<p>&nbsp;</p>
<pre class="coloredcode"><span class="dir">&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %&gt;</span>

&lt;<span class="tag">html</span><span class="attr"> xmlns=</span><span class="attrv">"http://www.w3.org/1999/xhtml"</span> &gt;
&lt;<span class="tag">head</span><span class="attr"> runat=</span><span class="attrv">"server"</span>&gt;
    &lt;<span class="tag">title</span>&gt;Demo Page&lt;/<span class="tag">title</span>&gt;
    &lt;<span class="tag">script</span><span class="attr"> type=</span><span class="attrv">"text/javascript"</span><span class="attr"> src=</span><span class="attrv">"Scripts/jquery-1.2.6.min.js"</span>&gt;&lt;/<span class="tag">script</span>&gt;
    &lt;<span class="tag">script</span><span class="attr"> type=</span><span class="attrv">"text/javascript"</span><span class="attr"> src=</span><span class="attrv">"Scripts/jquery.ajax_upload.0.6.min.js"</span>&gt;&lt;/<span class="tag">script</span>&gt;
&lt;<span class="tag">script</span><span class="attr"> type=</span><span class="attrv">"text/javascript"</span>&gt;/*&lt;<span class="tag">![CDATA[*/</span>
$(document).ready(function(){
	var button = $('#button1'), interval;
	$.ajax_upload(button,{
		action: 'FileHandler.ashx',
		name: 'myfile',
		onSubmit : function(file, ext){
			// change button text, when user selects file
			button.text('Uploading');

			// If you want to allow uploading only 1 file at time,
			// you can disable upload button
			this.disable();

			// Uploding -&gt; Uploading. -&gt; Uploading...
			interval = window.setInterval(function(){
				var text = button.text();
				if (button.text().length &lt; 13){
					button.text(button.text() + '.');
				} else {
					button.text('Uploading');
				}
			}, 200);
		},
		onComplete: function(file, response){
			button.text('Upload');

			// Although plugins emulates hover effect automatically,
			// it doens't work when button is disabled
			button.removeClass('hover');

			window.clearInterval(interval);

			// enable upload button
			this.enable();

			// add file to the list
			$('&lt;<span class="tag">li</span>&gt;&lt;/<span class="tag">li</span>&gt;').appendTo('#example1 .files').text(file);
		}
	});

});/*]]&gt;*/&lt;/<span class="tag">script</span>&gt;

&lt;/<span class="tag">head</span>&gt;
&lt;<span class="tag">body</span>&gt;
    &lt;<span class="tag">form</span><span class="attr"> id=</span><span class="attrv">"form1"</span><span class="attr"> runat=</span><span class="attrv">"server"</span>&gt;
&lt;<span class="tag">ul</span>&gt;
	&lt;<span class="tag">li</span><span class="attr"> id=</span><span class="attrv">"example1"</span><span class="attr"> class=</span><span class="attrv">"example"</span>&gt;
		&lt;<span class="tag">p</span>&gt;You can style button as you want&lt;/<span class="tag">p</span>&gt;
		&lt;<span class="tag">div</span><span class="attr"> class=</span><span class="attrv">"wrapper"</span>&gt;
			&lt;<span class="tag">div</span><span class="attr"> id=</span><span class="attrv">"button1"</span><span class="attr"> class=</span><span class="attrv">"button"</span>&gt;Upload&lt;/<span class="tag">div</span>&gt;
		&lt;/<span class="tag">div</span>&gt;
		&lt;<span class="tag">p</span>&gt;Uploaded files:&lt;/<span class="tag">p</span>&gt;
		&lt;<span class="tag">ol</span><span class="attr"> class=</span><span class="attrv">"files"</span>&gt;&lt;/<span class="tag">ol</span>&gt;
	&lt;/<span class="tag">li</span>&gt;
&lt;/<span class="tag">ul</span>&gt;
    &lt;/<span class="tag">form</span>&gt;
&lt;/<span class="tag">body</span>&gt;
&lt;/<span class="tag">html</span>&gt;</pre>
<h4>Server Side Code</h4>
<p>If you look at javascript, I&#8217;m posting to HttpHandler called &#8220;FileHandler.ashx&#8221;. Here is the code</p>
<hr />
<p>&nbsp;</p>
<pre class="coloredcode"><span class="kwd">using</span> System;
<span class="kwd">using</span> System.Web;
<span class="kwd">using</span> System.IO;

<span class="kwd">public class</span> FileHandler : IHttpHandler
{

    <span class="kwd">public void</span> ProcessRequest(HttpContext context)
    {
        <span class="kwd">string</span> strResponse = <span class="st">"error"</span>;
        <span class="kwd">try</span>
        {

            <span class="kwd">string</span> strFileName = Path.GetFileName(context.Request.Files[0].FileName);
            <span class="kwd">string</span> strExtension = Path.GetExtension(context.Request.Files[0].FileName).ToLower();
            <span class="kwd">string</span> strSaveLocation = context.Server.MapPath(<span class="st">"Upload"</span>) + <span class="st">"\\"</span> + strFileName;
            context.Request.Files[0].SaveAs(strSaveLocation);
            strResponse = <span class="st">"success"</span>;
        }
        <span class="kwd">catch</span>
        {

        }

        context.Response.ContentType = <span class="st">"text/plain"</span>;
        context.Response.Write(strResponse);
    }

    <span class="kwd">public bool</span> IsReusable
    {
        <span class="kwd">get</span>
        {
            <span class="kwd">return false</span>;
        }
    }

}</pre>
<p><a href="http://osman.it/wp-content/uploads/2011/07/jQueryDemo.zip">jQueryDemo</a></p>
<img src="http://osman.it/?ak_action=api_record_view&id=290&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fosman.it%2Faspnet%2Fjquery-ajax-file-upload%2F&amp;title=Ajax%20file%20upload%20using%20jQuery%2C%20ASP.NET%20%26%23038%3B%20C%23" id="wpa2a_12"><img src="http://osman.it/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><hr />
<p><small>© admin for <a href="http://osman.it">Mohammed Osman</a>, 2009. |
<a href="http://osman.it/aspnet/jquery-ajax-file-upload/">Permalink</a> |
<a href="http://osman.it/aspnet/jquery-ajax-file-upload/#comments">58 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://osman.it/aspnet/jquery-ajax-file-upload/&title=Ajax file upload using jQuery, ASP.NET &#038; C#">del.icio.us</a>
<br/>
Post tags: <a href="http://osman.it/tag/ajax-file-upload-using-jquery-aspnet-c/" rel="tag">Ajax file upload using jQuery ASP.NET C#</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://osman.it/aspnet/jquery-ajax-file-upload/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
		<item>
		<title>Ajax Data Controls from DotNetSlackers</title>
		<link>http://osman.it/aspnet/ajax-data-controls-from-dotnetslackers/</link>
		<comments>http://osman.it/aspnet/ajax-data-controls-from-dotnetslackers/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 17:33:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Controls]]></category>
		<category><![CDATA[Data]]></category>

		<guid isPermaLink="false">http://mdosman.us/?p=257</guid>
		<description><![CDATA[&#160; This looked interesting so I thought I would share it. Please let me know what you think&#8230;.. From the CodePlex Description. The Ajax Data Controls is a DotNetSlackers project. Developed on top of Asp.net Ajax Extension, the main goal of this project is to provide rich set of data controls for Client Centric Development [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="logo.png" src="http://www.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=AjaxDataControls&amp;DownloadId=23627" /> <br />
&nbsp;</p>
<p>This looked interesting so I thought I would share it.</p>
<p>Please let me know what you think&#8230;..</p>
<p>From the CodePlex Description.</p>
<p>The Ajax Data Controls is a <a href="http://www.misfitgeek.com/ct.ashx?id=17b7e748-3d95-4dad-821a-8fe4434e9cd7&amp;url=http%3a%2f%2fDotNetSlackers.com"><font color="#000099">DotNetSlackers</font></a> project. Developed on top of <b>Asp.net Ajax Extension</b>, the main goal of this project is to provide rich set of data controls for <b>Client Centric Development Model</b>. Since the data controls of Asp.net like <i>GridView</i>, <i>DataList</i>, <i>Repeater</i> etc does not have any Client Side Object Model thus it is not possible to work with these controls with Web Service / Page Methods call. The included controls exposes same API in the client side as the Asp.net version with few more enhancements. Currently the project contains the following controls:</p>
<ul>
<li>Repeater</li>
<li>GridView</li>
<li>DataList</li>
<li>Pager</li>
</ul>
<p><a title="http://www.codeplex.com/AjaxDataControls" href="http://www.misfitgeek.com/ct.ashx?id=17b7e748-3d95-4dad-821a-8fe4434e9cd7&amp;url=http%3a%2f%2fwww.codeplex.com%2fAjaxDataControls"><font color="#000099">http://www.codeplex.com/AjaxDataControls</font></a></p>
<img src="http://osman.it/?ak_action=api_record_view&id=257&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fosman.it%2Faspnet%2Fajax-data-controls-from-dotnetslackers%2F&amp;title=Ajax%20Data%20Controls%20from%20DotNetSlackers" id="wpa2a_14"><img src="http://osman.it/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><hr />
<p><small>© admin for <a href="http://osman.it">Mohammed Osman</a>, 2009. |
<a href="http://osman.it/aspnet/ajax-data-controls-from-dotnetslackers/">Permalink</a> |
<a href="http://osman.it/aspnet/ajax-data-controls-from-dotnetslackers/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://osman.it/aspnet/ajax-data-controls-from-dotnetslackers/&title=Ajax Data Controls from DotNetSlackers">del.icio.us</a>
<br/>
Post tags: <a href="http://osman.it/tag/ajax/" rel="tag">ajax</a>, <a href="http://osman.it/tag/controls/" rel="tag">Controls</a>, <a href="http://osman.it/tag/data/" rel="tag">Data</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://osman.it/aspnet/ajax-data-controls-from-dotnetslackers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Custom JavaScript Intellisense</title>
		<link>http://osman.it/aspnet/add-custom-javascript-intellisense/</link>
		<comments>http://osman.it/aspnet/add-custom-javascript-intellisense/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 17:29:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Intellisense]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://mdosman.us/?p=255</guid>
		<description><![CDATA[If you reference an ASP.NET page that contains a scriptmanager in your js file like below you get intellisense for the entire Microsoft AJAX Library plus any additional scripts ref&#8217;d by the scriptmanager.&#160; The easiest way to get the /// &#60;reference/&#62; entry in your js file is to drag n drop your .aspx page from [...]]]></description>
			<content:encoded><![CDATA[<p>If you reference an ASP.NET page that contains a scriptmanager in your js file like below you get intellisense for the entire Microsoft AJAX Library plus any additional scripts ref&rsquo;d by the scriptmanager.&nbsp; The easiest way to get the /// &lt;reference/&gt; entry in your js file is to drag n drop your .aspx page from solution explorer into&nbsp; the contents of your js file.&nbsp; VS magically adds the refJ</p>
<p>Since I tend to use stand-alone .js files I can just add this.</p>
<p>/// &lt;reference name=&quot;MicrosoftAjax.debug.js&quot; /&gt;</p>
<p>to my consuming page and intellisense is wired to my JavaScript code.</p>
<p><a href="http://www.misfitgeek.com/ct.ashx?id=bf8d4a56-64cd-4c0b-8f93-aca104239d13&amp;url=http%3a%2f%2fjoeon.net%2fimage.axd%3fpicture%3dWindowsLiveWriter%2fAddCustomJavaScriptIntellisense_96D3%2fimage001_2.png"><img height="302" alt="image001" width="428" border="0" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://joeon.net/image.axd?picture=WindowsLiveWriter/AddCustomJavaScriptIntellisense_96D3/image001_thumb.png" /></a>&nbsp;</p>
<img src="http://osman.it/?ak_action=api_record_view&id=255&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fosman.it%2Faspnet%2Fadd-custom-javascript-intellisense%2F&amp;title=Add%20Custom%20JavaScript%20Intellisense" id="wpa2a_16"><img src="http://osman.it/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><hr />
<p><small>© admin for <a href="http://osman.it">Mohammed Osman</a>, 2009. |
<a href="http://osman.it/aspnet/add-custom-javascript-intellisense/">Permalink</a> |
<a href="http://osman.it/aspnet/add-custom-javascript-intellisense/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://osman.it/aspnet/add-custom-javascript-intellisense/&title=Add Custom JavaScript Intellisense">del.icio.us</a>
<br/>
Post tags: <a href="http://osman.it/tag/intellisense/" rel="tag">Intellisense</a>, <a href="http://osman.it/tag/javascript/" rel="tag">Javascript</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://osman.it/aspnet/add-custom-javascript-intellisense/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>REST in WCF Series</title>
		<link>http://osman.it/aspnet/rest-in-wcf-series/</link>
		<comments>http://osman.it/aspnet/rest-in-wcf-series/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 21:28:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[REST in WCF Series]]></category>

		<guid isPermaLink="false">http://mdosman.us/?p=209</guid>
		<description><![CDATA[Rob Bagby is in the midst of a blog series on REST in WCF and been building a series of screencasts on the same subject (in conjunction with Ron Jacobs). Since it&#8217;s such an interesting topic, especially to AJAX developers I thought I&#8217;d share them here. Blog Series: REST in WCF &#8211; Part I (REST [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://blogs.msdn.com/bags/default.aspx"><font color="#000099">Rob Bagby</font></a> is in the midst of a blog series on REST in WCF and been building a series of screencasts on the same subject (in conjunction with Ron Jacobs).</p>
<p>Since it&#8217;s such an interesting topic, especially to AJAX developers I thought I&#8217;d share them here.</p>
<p>Blog Series:</p>
<ul>
<li><a href="http://blogs.msdn.com/bags/archive/2008/05/28/rest-in-wcf-part-i-rest-overview.aspx"><font color="#000099">REST in WCF &#8211; Part I (REST Overview)</font></a></li>
<li><a href="http://blogs.msdn.com/bags/archive/2008/05/29/rest-in-wcf-part-ii-ajax-friendly-services-creating-the-service.aspx"><font color="#000099">REST in WCF &#8211; Part II (AJAX Friendly Services, Creating The Service)</font></a></li>
<li><a href="http://blogs.msdn.com/bags/archive/2008/05/30/rest-in-wcf-part-iii-ajax-friendly-services-consuming-the-service.aspx"><font color="#000099">REST in WCF &#8211; Part III (AJAX Friendly Services, Consuming The Service)</font></a></li>
<li><a href="http://blogs.msdn.com/bags/archive/2008/06/09/rest-in-wcf-part-iv-hi-rest-exposing-a-service-via-get-configuring-the-service.aspx"><font color="#000099">REST in WCF &#8211; Part IV (HI-REST &#8211; Exposing a service via GET &#8211; Configuring the service)</font></a></li>
<li><a href="http://blogs.msdn.com/bags/archive/2008/06/10/rest-in-wcf-part-v-hi-rest-exposing-a-service-via-get-the-servicecontract-and-implementation.aspx"><font color="#000099">REST in WCF &#8211; Part V (HI-REST &#8211; Exposing a service via GET &#8211; The ServiceContract and Implementation)</font></a></li>
<li><a href="http://blogs.msdn.com/bags/archive/2008/06/12/rest-in-wcf-part-vi-hi-rest-consuming-our-get-service-via-ajax.aspx"><font color="#000099">REST in WCF &#8211; Part VI (HI-REST &#8211; Consuming our GET service via AJAX)</font></a></li>
<li><a href="http://blogs.msdn.com/bags/archive/2008/06/12/rest-in-wcf-part-vii-hi-rest-implementing-insert-and-update.aspx"><font color="#000099">REST in WCF &#8211; Part VII (HI-REST &#8211; Implementing Insert and Update</font></a></li>
<li><a href="http://blogs.msdn.com/bags/archive/2008/06/14/rest-in-wcf-part-viii-hi-rest-implementing-delete.aspx"><font color="#000099">REST in WCF &#8211; Part VIII (HI-REST &#8211; Implementing Delete)</font></a></li>
<li><a href="http://blogs.msdn.com/bags/archive/2008/08/22/rest-in-wcf-part-ix-controlling-the-uri.aspx"><font color="#000099">REST in WCF &#8211; Part IX &#8211; Controlling the URI</font></a></li>
<li><a href="http://blogs.msdn.com/bags/archive/2008/08/28/rest-in-wcf-part-x-supporting-caching-and-conditional-get.aspx"><font color="#000099">REST in WCF &#8211; Part X &#8211; Supporting Caching and Conditional GET</font></a></li>
</ul>
<p>Screencast Series:</p>
<ul>
<li><a href="http://channel9.msdn.com/posts/rojacobs/endpointtv-Controlling-the-URI-in-RESTful-WCF-with-Rob-Bagby/"><font color="#000099">endpoint.tv &#8211; Controlling the URI in RESTful WCF with Rob Bagby</font></a></li>
<li><a href="http://channel9.msdn.com/posts/RobBagby/deCast-Creating-a-HI-REST-GET-Service-with-WCF-35/"><font color="#000099">deCast &#8211; Creating a HI-REST GET Service with WCF 3.5</font></a></li>
<li><a href="http://channel9.msdn.com/posts/RobBagby/deCast-Consuming-a-HI-REST-GET-Service-From-Silverlight-2-Beta-2/"><font color="#000099">deCast &#8211; Consuming a HI-REST GET Service From Silverlight 2 (Beta 2)</font></a></li>
<li><a href="http://channel9.msdn.com/posts/rojacobs/endpointtv-Caching-and-Conditional-Get-with-Rob-Bagby/"><font color="#000099">endpoint.tv &#8211; Caching and Conditional Get with Rob Bagby</font></a></li>
<li><a href="http://channel9.msdn.com/posts/RobBagby/Building-an-AJAX-Friendly-WCF-Service/"><font color="#000099">deCast &#8211; Creating an AJAX-Friendly WCF Service</font></a></li>
<li><a href="http://channel9.msdn.com/posts/RobBagby/deCast-Creating-a-HI-REST-PUT-Service-That-Exposes-Insert-and-Update/"><font color="#000099">deCast &#8211; Creating a HI-REST PUT Service That Exposes Insert and Update</font></a></li>
<li><a href="http://channel9.msdn.com/posts/rojacobs/endpointtv-Securing-RESTful-services-with-ASPNET-Membership/"><font color="#000099">endpoint.tv &#8211; Securing RESTful services with ASP.NET Membership</font></a></li>
</ul>
<p>&nbsp;</p>
<img src="http://osman.it/?ak_action=api_record_view&id=209&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fosman.it%2Faspnet%2Frest-in-wcf-series%2F&amp;title=REST%20in%20WCF%20Series" id="wpa2a_18"><img src="http://osman.it/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><hr />
<p><small>© admin for <a href="http://osman.it">Mohammed Osman</a>, 2008. |
<a href="http://osman.it/aspnet/rest-in-wcf-series/">Permalink</a> |
<a href="http://osman.it/aspnet/rest-in-wcf-series/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://osman.it/aspnet/rest-in-wcf-series/&title=REST in WCF Series">del.icio.us</a>
<br/>
Post tags: <a href="http://osman.it/tag/rest-in-wcf-series/" rel="tag">REST in WCF Series</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://osman.it/aspnet/rest-in-wcf-series/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coolite Studio: Ext Web Controls for ASP.Net</title>
		<link>http://osman.it/aspnet/coolite-studio-ext-web-controls-for-aspnet/</link>
		<comments>http://osman.it/aspnet/coolite-studio-ext-web-controls-for-aspnet/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 14:50:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Ext Web Controls for ASP.Net]]></category>

		<guid isPermaLink="false">http://mdosman.us/?p=150</guid>
		<description><![CDATA[With Microsoft&#8217;s .Net development platform increasing in both popularity and features, we&#8217;re receiving more inquiries than ever as to how clients can leverage the Ext framework within .Net web applications. While Ext, being a client-side framework, has always worked with ASP.Net applications, the team at Coolite has taken Ext &#38; .Net integration a step further. [...]]]></description>
			<content:encoded><![CDATA[<p>With Microsoft&rsquo;s .Net development platform increasing in both popularity and features, we&rsquo;re receiving more inquiries than ever as to how clients can leverage the Ext framework within .Net web applications. While Ext, being a client-side framework, has always worked with ASP.Net applications, the team at <a href="http://www.coolite.com/">Coolite</a> has taken <a href="http://extjs.com/">Ext</a> &amp; .Net integration a step further.</p>
<h3>Introducing Coolite Studio</h3>
<p>Coolite, the same team that brought you the very cool <a href="http://www.datejs.com/">DateJS</a> date parsing library, have really embraced the <a href="http://extjs.com/">Ext framework</a> creating a suite of ASP.Net controls name <a href="http://www.coolite.com/">Coolite Studio</a> that are based on Ext and integrate with Visual Studio 2008:</p>
<blockquote style="margin-left: 10px">
<p>&ldquo;The suite of web controls were built with a focus on bringing full Visual Studio Design-Time support to the Ext JavaScript Framework. A marriage of server-side and client-side frameworks.&rdquo;</p>
</blockquote>
<p><a href="http://www.coolite.com/examples/"><img alt="" src="http://extjs.com/playpen/screenshots/coolite/coolite_windownestedpanel.jpg" /></a></p>
<h3>Tight Integration, Extensive Features, Support</h3>
<p>The suite of controls will include the following:</p>
<ul>
<li>Powerful integration of the Ext JavaScript Framework.</li>
<li>Full Design-Time support in Microsoft Visual Studio 2005 &amp; 2008 and Visual Web Developer 2005 &amp; 2008.</li>
<li>Drag-and-drop ease of use.</li>
<li>Current support for Window, Panel and a many Form Controls including DatePicker, Calendar and HtmlEditor.</li>
<li>New Controls being added weekly.</li>
<li>Dual Licensed (LGPL 3.0 and Coolite Commercial License).</li>
<li>Professional support options available shortly.</li>
</ul>
<p>Coolite has setup a <a href="http://www.coolite.com/forums/">community forum</a> to help get developers introduced to Coolite Studio and plans to expand their <a href="http://www.coolite.com/support/">support options</a> in the future.</p>
<p><a href="http://www.coolite.com/">Coolite Studio</a> is immediately <a href="http://www.coolite.com/download/">available for download</a> and supports both .Net 2.0 and 3.5.</p>
<img src="http://osman.it/?ak_action=api_record_view&id=150&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fosman.it%2Faspnet%2Fcoolite-studio-ext-web-controls-for-aspnet%2F&amp;title=Coolite%20Studio%3A%20Ext%20Web%20Controls%20for%20ASP.Net" id="wpa2a_20"><img src="http://osman.it/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><hr />
<p><small>© admin for <a href="http://osman.it">Mohammed Osman</a>, 2008. |
<a href="http://osman.it/aspnet/coolite-studio-ext-web-controls-for-aspnet/">Permalink</a> |
<a href="http://osman.it/aspnet/coolite-studio-ext-web-controls-for-aspnet/#comments">2 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://osman.it/aspnet/coolite-studio-ext-web-controls-for-aspnet/&title=Coolite Studio: Ext Web Controls for ASP.Net">del.icio.us</a>
<br/>
Post tags: <a href="http://osman.it/tag/ext-web-controls-for-aspnet/" rel="tag">Ext Web Controls for ASP.Net</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://osman.it/aspnet/coolite-studio-ext-web-controls-for-aspnet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

