<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Hiteshagja&#039;s Blog</title>
	<atom:link href="http://hiteshagja.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hiteshagja.wordpress.com</link>
	<description>MY BLOG IS ALL ABOUT PROGRAMMING IN ASP.NET AND SOLUTION TO SOME MISCELLANEOUS PROBLEMS IN PROGRAMMING. YOU WILL LEARN SEARCH ENGINE OPTIMIZATION BY CONTINUOUSLY READING MY BLOG</description>
	<lastBuildDate>Fri, 02 Dec 2011 18:31:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hiteshagja.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/87bcb05b8d92fba556659ea0d1cebc46?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Hiteshagja&#039;s Blog</title>
		<link>http://hiteshagja.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hiteshagja.wordpress.com/osd.xml" title="Hiteshagja&#039;s Blog" />
	<atom:link rel='hub' href='http://hiteshagja.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Silverlight &#8211; Listbox Scrollbar Problem</title>
		<link>http://hiteshagja.wordpress.com/2011/06/23/silverlight-listbox-scrollbar-problem/</link>
		<comments>http://hiteshagja.wordpress.com/2011/06/23/silverlight-listbox-scrollbar-problem/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 18:12:01 +0000</pubDate>
		<dc:creator>hiteshagja</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[Listbox]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://hiteshagja.wordpress.com/?p=227</guid>
		<description><![CDATA[Recently I have observed that listbox scrollbar has virtualization problem when we re-bind listbox. Let me explain this with an example. I have added 50 items into listbox control programmatically. Here is the screenshot for the same. As you can see I have added two buttons to Reset and to Re-bind listbox again. If I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=227&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I have observed that listbox scrollbar has virtualization problem when we re-bind listbox. Let me explain this with an example.</p>
<p>I have added 50 items into listbox control programmatically. Here is the screenshot for the same.</p>
<div id="attachment_228" class="wp-caption alignnone" style="width: 234px"><a href="http://hiteshagja.files.wordpress.com/2011/06/11.jpg"><img class="size-full wp-image-228" title="Normal Condition" src="http://hiteshagja.files.wordpress.com/2011/06/11-e1308851566419.jpg?w=500" alt="Image after 50 Items bound to listbox"   /></a><p class="wp-caption-text">Normal Listbox Binding</p></div>
<div id="attachment_229" class="wp-caption alignnone" style="width: 227px"><a href="http://hiteshagja.files.wordpress.com/2011/06/2.jpg"><img class="size-full wp-image-229" title="Re-bind listbox in normal condition" src="http://hiteshagja.files.wordpress.com/2011/06/2-e1308851772126.jpg?w=500" alt="Re-bind listbox"   /></a><p class="wp-caption-text">Re-bind button click without scroll bar move</p></div>
<p>As you can see I have added two buttons to Reset and to Re-bind listbox again.</p>
<p>If I click on any of the button everything will work as expected but real problem is when we move scroll bar to bottom of the listbox and we re-bind listbox data.</p>
<p>See what kind of problem you shall face.</p>
<div id="attachment_230" class="wp-caption alignnone" style="width: 220px"><a href="http://hiteshagja.files.wordpress.com/2011/06/3.jpg"><img class="size-full wp-image-230" title="Problem while Re-binding listbox " src="http://hiteshagja.files.wordpress.com/2011/06/3-e1308852001674.jpg?w=500" alt=""   /></a><p class="wp-caption-text">Problem displaying data</p></div>
<p><strong>Solution :</strong></p>
<p>Use scrolltoview function after assigning ItemsSource to listbox. See code snippet below.</p>
<p><pre class="brush: csharp;"> List&lt;ListBoxItem&gt; a=GetItemsList(txt,count);

listbox1.ItemsSource = a;

if(a.Count()&gt;0)

{

listbox1.UpdateLayout();

listbox1.ScrollIntoView(a[0]);

}

</pre> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hiteshagja.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hiteshagja.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hiteshagja.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hiteshagja.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hiteshagja.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hiteshagja.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hiteshagja.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hiteshagja.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hiteshagja.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hiteshagja.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hiteshagja.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hiteshagja.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hiteshagja.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hiteshagja.wordpress.com/227/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=227&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hiteshagja.wordpress.com/2011/06/23/silverlight-listbox-scrollbar-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92cc7f4a58bfad5f414f214f98e029aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hiteshagja</media:title>
		</media:content>

		<media:content url="http://hiteshagja.files.wordpress.com/2011/06/11-e1308851566419.jpg" medium="image">
			<media:title type="html">Normal Condition</media:title>
		</media:content>

		<media:content url="http://hiteshagja.files.wordpress.com/2011/06/2-e1308851772126.jpg" medium="image">
			<media:title type="html">Re-bind listbox in normal condition</media:title>
		</media:content>

		<media:content url="http://hiteshagja.files.wordpress.com/2011/06/3-e1308852001674.jpg" medium="image">
			<media:title type="html">Problem while Re-binding listbox </media:title>
		</media:content>
	</item>
		<item>
		<title>Dealing with DateTime in C#</title>
		<link>http://hiteshagja.wordpress.com/2011/06/08/dealing-with-datetime-in-c/</link>
		<comments>http://hiteshagja.wordpress.com/2011/06/08/dealing-with-datetime-in-c/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 19:00:46 +0000</pubDate>
		<dc:creator>hiteshagja</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[C# Datetime]]></category>
		<category><![CDATA[DateTime]]></category>
		<category><![CDATA[Format DateTime]]></category>
		<category><![CDATA[ParseExact]]></category>

		<guid isPermaLink="false">http://hiteshagja.wordpress.com/?p=220</guid>
		<description><![CDATA[Recently I come across very ugly error which makes my application crashed. Actually it was problem converting DateTime for specific format. You should make your DateTime conversion independent of client computer’s culture setting.  This thought in mind I am going to present this post. 1.       Convert String  to DateTime Let’s take an example: Suppose you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=220&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Recently I come across very ugly error which makes my application crashed. Actually it was problem converting DateTime for specific format. You should make your DateTime conversion independent of client computer’s culture setting.  This thought in mind I am going to present this post.<strong></strong></p>
<p style="text-align:justify;"><strong>1.       </strong><strong>Convert String  to DateTime</strong></p>
<p>Let’s take an example:</p>
<p>Suppose you have</p>
<p><pre class="brush: csharp;"> String strDate = &quot;10/23/2011&quot;; </pre></p>
<p>Which is in MM/dd/yyyy format and you want to convert it in DateTime variable then you should write like</p>
<p><pre class="brush: csharp;"> DateTime dt = Convert.ToDateTime(strDate,System.Globalization.CultureInfo.InvariantCulture); </pre></p>
<p>You could write above code if you are sure that the format is in MM/dd/yyyy. If the format is in say dd/MM/yyyy then DatTime.ParseExact is the perfect option for you.</p>
<p>Code above can be rewritten as</p>
<p><pre class="brush: csharp;"> DateTime dt = DateTime.ParseExact(strDate, &quot;dd/MM/yyyy&quot;, System.Globalization.CultureInfo.InvariantCulture); </pre></p>
<p>In all above code lines I have mentioned System.Globalization.CultureInfo.InvariantCulture parameter, which will make date format, culture independent.<strong></strong></p>
<p><strong>2.       </strong><strong>Convert Datetime to Specific Format</strong></p>
<p>Let’s say you have</p>
<p><pre class="brush: csharp;"> DateTime dt = DateTime.Now; </pre></p>
<p>and you want to convert it in different format.<strong>  </strong></p>
<p><strong>Example :</strong> Format : dd-mmm-yyyy</p>
<p><pre class="brush: csharp;"> String s = dt.ToString(&quot;dd/MMM/yyyy&quot;); </pre></p>
<p>But this will be overridden by current culture.</p>
<p>So you should do something like this</p>
<p><pre class="brush: csharp;"> String s = dt.ToString(&quot;dd/MMM/yyyy&quot;, System.Globalization.CultureInfo.InvariantCulture); </pre></p>
<p>In short, CultureInfo parameter plays an important role.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hiteshagja.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hiteshagja.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hiteshagja.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hiteshagja.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hiteshagja.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hiteshagja.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hiteshagja.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hiteshagja.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hiteshagja.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hiteshagja.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hiteshagja.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hiteshagja.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hiteshagja.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hiteshagja.wordpress.com/220/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=220&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hiteshagja.wordpress.com/2011/06/08/dealing-with-datetime-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92cc7f4a58bfad5f414f214f98e029aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hiteshagja</media:title>
		</media:content>
	</item>
		<item>
		<title>Run Executable (exe/bat) file from Web Page</title>
		<link>http://hiteshagja.wordpress.com/2010/08/22/run-executable-exebat-file-from-web-page/</link>
		<comments>http://hiteshagja.wordpress.com/2010/08/22/run-executable-exebat-file-from-web-page/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 14:31:45 +0000</pubDate>
		<dc:creator>hiteshagja</dc:creator>
				<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[bat file]]></category>
		<category><![CDATA[Batch]]></category>
		<category><![CDATA[EXE]]></category>
		<category><![CDATA[Run Exe from web page]]></category>
		<category><![CDATA[Scripting.FileSystemObject]]></category>
		<category><![CDATA[WScript.Shell]]></category>

		<guid isPermaLink="false">http://hiteshagja.wordpress.com/?p=214</guid>
		<description><![CDATA[To run an exe from your web page is quite easy process. I have used simple JavaScript to accomplish this task. Have a look at the code listed below. This javascript will create an object of WScript.Shell and will execute DOS based batch file. In addition with this I have also created LaunchApp.bat file programmatically [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=214&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To run an exe from your web page is quite easy process. I have used simple JavaScript to accomplish this task. Have a look at the code listed below.</p>
<p><pre class="brush: jscript;">
function WriteToFile() {

var fso, s,folderName;

fso = new ActiveXObject(&quot;Scripting.FileSystemObject&quot;);

if (!fso.FolderExists(&quot;C:\\HITESH&quot;))

{

folderName=fso.CreateFolder(&quot;C:\\ HITESH &quot;);

}

if (!fso.FileExists(&quot;C:\\ HITESH \\LaunchApp.bat&quot;)){

s = fso.OpenTextFile(&quot;C:\\ HITESH \\LaunchApp.bat&quot; , 8, 1, -2);

s.writeline(&quot;IF EXIST d:\\hitesh GOTO LABEL1”);

s.writeline(&quot;IF EXIST k:\\hitesh GOTO LABEL2”);

s.writeline(&quot;:LABEL1”);

s.writeline(&quot;D: ”);

s.writeline(&quot;D:\\hitesh\\AppTest.EXE”);

s.writeline(&quot;EXIT”);

s.writeline(&quot;:LABEL2”);

s.writeline(&quot;K: ”);

s.writeline(&quot;K:\\hitesh\\AppTest.EXE”);

s.writeline(&quot;EXIT”);

s.Close();

}

}

function LaunchApp() {

WriteToFile();

var oShell = new ActiveXObject(&quot;WScript.Shell&quot;);

var prog = &quot;C:\\ HITESH \\LaunchApp.bat&quot;;

oShell.run ('&quot;'+prog+'&quot;',1);

}
</pre></p>
<p>This javascript will create an object of WScript.Shell and will execute DOS based batch file. In addition with this I have also created LaunchApp.bat file programmatically if it does not exist on the client side (So you don’t need to worry about whether file exist or not J). This file will execute EXE depending upon conditions specified in the LaunchApp.bat. LaunchApp() is the starting point.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hiteshagja.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hiteshagja.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hiteshagja.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hiteshagja.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hiteshagja.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hiteshagja.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hiteshagja.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hiteshagja.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hiteshagja.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hiteshagja.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hiteshagja.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hiteshagja.wordpress.com/214/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hiteshagja.wordpress.com/214/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hiteshagja.wordpress.com/214/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=214&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hiteshagja.wordpress.com/2010/08/22/run-executable-exebat-file-from-web-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92cc7f4a58bfad5f414f214f98e029aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hiteshagja</media:title>
		</media:content>
	</item>
		<item>
		<title>Populate data in Gridview using jQuery AJAX</title>
		<link>http://hiteshagja.wordpress.com/2010/08/09/populate-data-in-gridview-using-jquery-ajax/</link>
		<comments>http://hiteshagja.wordpress.com/2010/08/09/populate-data-in-gridview-using-jquery-ajax/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 05:34:57 +0000</pubDate>
		<dc:creator>hiteshagja</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[ASP.net 3.5]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[JSON]]></category>

		<guid isPermaLink="false">http://hiteshagja.wordpress.com/?p=181</guid>
		<description><![CDATA[I search a lot in Google for a whole day but didn’t find any perfect example to populate data into gridview. Then I decided to do it myself and I find it easy at the end of the day. In the example which I illustrated below follows the flow: On document ready method it initiates [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=181&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I search a lot in Google for a whole day but didn’t find any perfect example to populate data into gridview. Then I decided to do it myself and I find it easy at the end of the day.</p>
<p>In the example which I illustrated below follows the flow:</p>
<ol>
<li>On document ready method it      initiates jQuery AJAX call.</li>
<li>Response will be redirected      to the ASPX page and in tern server will respond with JSON data.</li>
<li>jQuery AJAX call back      success method used to generates HTML Table with data.</li>
<li>Add HTML to DIV.</li>
</ol>
<p>Here is the code:</p>
<p><strong>Default.aspx </strong></p>
<p><pre class="brush: xml;">
&lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot;  CodeFile=&quot;Default.aspx.cs&quot; Inherits=&quot;_Default&quot; %&gt;

&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;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;

&lt;head runat=&quot;server&quot;&gt;

&lt;title&gt;Untitled Page&lt;/title&gt;

&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery-1.4.2.min.js&quot;&gt;&lt;/script&gt;

&lt;script src=&quot;js/commons.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;

&lt;div id=&quot;divperson&quot;&gt;

&lt;strong&gt;[Newly generated HTML will seat here]&lt;/strong&gt;

&lt;/div&gt;

&lt;/form&gt;

&lt;/body&gt;

&lt;/html&gt;
</pre></p>
<p><strong> </strong></p>
<p><strong>Default.aspx.cs</strong></p>
<p><pre class="brush: csharp;">
public partial class _Default : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

if (!IsPostBack)

{

if (Request.QueryString[&quot;id&quot;] == &quot;person&quot;)

GetString();

}

}

public void GetString()

{

JavaScriptSerializer _serializers = new JavaScriptSerializer();

string _personJSON = _serializers.Serialize(Person.GetPersonDetails());

Response.Clear();

Response.Write(_personJSON);

Response.End();

}

}

&lt;strong&gt;//Person Class and Members&lt;/strong&gt;

public class Person

{

public string Name { get; set; }

public string State { get; set; }

public string PhoneNumber { get; set; }

public Person(string name, string state, string phone)

{

Name = name;

State = state;

PhoneNumber = phone;

}

public static List&lt;Person&gt; GetPersonDetails()

{

List&lt;Person&gt; _person = new List&lt;Person&gt;();

_person.Add(new Person(&quot;Hitesh&quot;, &quot;Gujarat&quot;, &quot;123&quot;));

_person.Add(new Person(&quot;Urvish&quot;, &quot;Maharastra&quot;, &quot;345&quot;));

_person.Add(new Person(&quot;Deepak&quot;, &quot;Madhya Pradesh&quot;, &quot;456&quot;));

return _person;

}

}
</pre></p>
<p><strong> </strong></p>
<p>I just created Person class, created some properties and a static method to generate list of Person class objects. You need to include System.Collections.Generic and System.Web.Script.Serialization name space for List Class and JavaScriptSerializer class respectively.</p>
<p>In Page_Load method, based on the querystring value the GetString() method will call and JSON response will be generated and submitted as response. You need to catch this response on client side to retrive values within JSON formatted data.</p>
<p><strong>commons.js (a separate JS file)</strong></p>
<p><strong> </strong></p>
<p><pre class="brush: jscript;">
$('document').ready(function(){

$.ajax({

type: &quot;GET&quot;,

data:({id:&quot;person&quot;}),

url: &quot;Default.aspx&quot;,

dataType: &quot;json&quot;,

success:function(resultdata){

var person;

var _html='&lt;table border=&quot;1&quot;&gt;';

_html += '&lt;tr&gt;';

_html += '&lt;th&gt;Name&lt;/th&gt;';

_html += '&lt;th&gt;State&lt;/th&gt;';

_html += '&lt;th&gt;Phone&lt;/th&gt;';

_html += '&lt;/tr&gt;';

for(index in resultdata)

{

_html +='&lt;tr&gt;' ;

_html +='&lt;td&gt;' + resultdata[index].Name + '&lt;/td&gt;';

_html +='&lt;td&gt;' + resultdata[index].State + '&lt;/td&gt;';

_html +='&lt;td&gt;' + resultdata[index].PhoneNumber + '&lt;/td&gt;';

_html +='&lt;/tr&gt;' ;

}

_html +='&lt;/table&gt;' ;

$('#divperson').html(_html);

}

});

});
</pre></p>
<p><strong> </strong></p>
<p>Nothing fancy, using <strong>jquery.ajax</strong> method I made a GET request to Default.aspx page with some data. Page has return JSON data which I parsed in jquery.ajax<strong> success </strong>method.</p>
<p>Before you attempt to run this code in your app, make sure you have included jquery-1.4.2.min.js file.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hiteshagja.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hiteshagja.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hiteshagja.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hiteshagja.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hiteshagja.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hiteshagja.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hiteshagja.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hiteshagja.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hiteshagja.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hiteshagja.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hiteshagja.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hiteshagja.wordpress.com/181/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hiteshagja.wordpress.com/181/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hiteshagja.wordpress.com/181/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=181&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hiteshagja.wordpress.com/2010/08/09/populate-data-in-gridview-using-jquery-ajax/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92cc7f4a58bfad5f414f214f98e029aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hiteshagja</media:title>
		</media:content>
	</item>
		<item>
		<title>Encode Text Message to PDU</title>
		<link>http://hiteshagja.wordpress.com/2010/06/27/encode-text-message-to-pdu/</link>
		<comments>http://hiteshagja.wordpress.com/2010/06/27/encode-text-message-to-pdu/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 10:06:22 +0000</pubDate>
		<dc:creator>hiteshagja</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Mobile Application Development]]></category>
		<category><![CDATA[Convert Text Message to PDU]]></category>
		<category><![CDATA[Encode PDU]]></category>
		<category><![CDATA[PDU Converter]]></category>
		<category><![CDATA[SMS PDU]]></category>
		<category><![CDATA[Text to PDU]]></category>

		<guid isPermaLink="false">http://hiteshagja.wordpress.com/?p=175</guid>
		<description><![CDATA[Text Message must be encoded properly into PDU before submitting it to network. [Note: this is applicable if you are going to send SMS in PDU mode]. In this post I am going to explain how you can do this, but before that please download sample code from Planet Source code. This code contains Convert, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=175&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Text Message must be encoded properly into PDU before submitting it to network. [Note: this is applicable if you are going to send SMS in PDU mode]. In this post I am going to explain how you can do this, but before that please download sample code from <a title="Encode Decode Text to PDU " href="http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=54140&amp;lngWId=1">Planet Source code</a>. This code contains Convert, Sending and Receiving modules. Frankly speaking I have got encoding/decoding logic from this code and it works perfectly for me. Only thing missing in this code is Padding Bit logic. Code is quite simpler and easily understandable. Please go through it and tell me if you have problem encoding text message into PDU.</p>
<p><strong>How to add Padding bit for multipart SMS PDU?</strong><br />
Open the code &gt; go to Convert Module &gt; Find “CharHex”  Method.<br />
Do replace this function with the code shown below.</p>
<p><code>Public Function CharHex(ByVal Txt As String, ByVal bit As Integer, ByVal PaddingBit As Boolean)<br />
    Dim i As Integer, bin As String, nbin As String, n As String<br />
    Dim bil As Integer, sisa As Integer, lbin As Integer, nol As String<br />
    bin = ""<br />
    nbin = ""<br />
    If bit = 7 Then<br />
        For i = 1 To Len(Txt) Step 2<br />
            n = Mid(Txt, i, 2)<br />
            bin = HexToBin(n) &amp; bin<br />
        Next<br />
        bil = Len(bin) \ bit<br />
        sisa = Len(bin) Mod bit<br />
        For i = 1 To (Len(bin) - sisa) Step bit<br />
           ' MsgBox Chr$(HexToDec(BinToHex(Mid(bin, i + Sisa, bit))))<br />
            nbin = Chr$(HexToDec(BinToHex(Mid(bin, i + sisa, bit)))) &amp; nbin<br />
        Next<br />
    Else<br />
        For i = 1 To Len(Txt)<br />
            n = Mid(Txt, i, 1)<br />
            bin = Biner(Asc(n)) &amp; bin<br />
        Next<br />
       If PaddingBit = True Then<br />
            bin = bin + "0"<br />
        End If<br />
        sisa = Len(bin) Mod bit<br />
        If sisa &gt; 0 Then<br />
            For i = 1 To bit - sisa<br />
                nol = nol &amp; "0"<br />
            Next<br />
        End If<br />
        bin = nol &amp; bin<br />
        bil = Len(bin) \ bit<br />
        For i = 1 To bil<br />
            nbin = nbin &amp; BinToHex(Mid(bin, Len(bin) + 1 - bit * i, bit))<br />
        Next<br />
    End If<br />
    CharHex = nbin<br />
End Function<br />
</code></p>
<p>That&#8217;s it !!<br />
Do let me know if you have any problem encoding text to PDU.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hiteshagja.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hiteshagja.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hiteshagja.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hiteshagja.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hiteshagja.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hiteshagja.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hiteshagja.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hiteshagja.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hiteshagja.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hiteshagja.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hiteshagja.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hiteshagja.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hiteshagja.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hiteshagja.wordpress.com/175/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=175&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hiteshagja.wordpress.com/2010/06/27/encode-text-message-to-pdu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92cc7f4a58bfad5f414f214f98e029aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hiteshagja</media:title>
		</media:content>
	</item>
		<item>
		<title>Send Long SMS/Multipart SMS/Concatenated SMS</title>
		<link>http://hiteshagja.wordpress.com/2010/04/04/send-long-sms/</link>
		<comments>http://hiteshagja.wordpress.com/2010/04/04/send-long-sms/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 09:45:01 +0000</pubDate>
		<dc:creator>hiteshagja</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Mobile Application Development]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Concatenated SMS]]></category>
		<category><![CDATA[How to send long sms]]></category>
		<category><![CDATA[Long SMS]]></category>
		<category><![CDATA[Multipart SMS]]></category>

		<guid isPermaLink="false">http://hiteshagja.wordpress.com/?p=159</guid>
		<description><![CDATA[Here I am writing about most awaited post of my blog with great excitement.  In this post I will explain you , how to send long SMS or multipart SMS or concatenated SMS. Before I explain you I want to share my experience during searching for the secret of long SMS. When I started searching [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=159&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Here I am writing about most awaited post of my blog with great excitement.  In this post I will explain you , how to send long SMS or multipart SMS or concatenated SMS. Before I explain you I want to share my experience during searching for the secret of long SMS. When I started searching on internet about “<em>how to send concatenated sms</em>”, I found resource on wiki which explains the basic of long SMS and PDU format for sending long SMS. But this page (wiki) contains link at bottom of the page and this link (trust me) one of the best resource on the internet to learn about concatenated SMS. Here is the link if you want to read this blog : <a title="http://mobiletidings.com/2009/02/18/combining-sms-messages/" href="http://mobiletidings.com/2009/02/18/combining-sms-messages/">http://mobiletidings.com/2009/02/18/combining-sms-messages/</a>.  But still I was having same problem not able to send long SMS using AT command. But reading this blog I was sure that I was missing something in my PDU which cause problem. Then I thought of taking help from someone who is master in this so I did contact Franco (owner of <a title="http://www.franco7777.net/" href="http://www.franco7777.net/">http://www.franco7777.net/</a>), who is one of the commenter on <a title="http://mobiletidings.com/2009/02/18/combining-sms-messages/" href="http://mobiletidings.com/2009/02/18/combining-sms-messages/">“http://mobiletidings.com/2009/02/18/combining-sms-messages/”</a> blog. He gave me very nice response and explained me where my mistake was.  And after that I had got the clear idea about sending long SMS over network.</p>
<p style="text-align:justify;">Now I want to show you how you can send long SMS. But before reading this post further I will strongly recommend you to read <a title="http://www.dreamfabric.com/sms/" href="http://www.dreamfabric.com/sms/">http://www.dreamfabric.com/sms/</a> and grab basic idea about SMS PDU structure. When you send single SMS ( &lt;= 160 Character) there is not UDH exist in the message but when you try to send long SMS ( &gt; 160 Character) you need to add this UDH field into the message PDU. So the basic question is how to add this header in to the message. One more thing you should know to send concatenated SMS, and the thing is when you send single SMS there is no User Data Header so little less confusion and you don’t need to add padding bit to encode your message into GSM 7-bit encoding scheme but if you are going to send concatenated SMS, UDHL is exist and it is in septets so you need to add one padding bit compulsory to encode your SMS. Read <a title="http://mobiletidings.com/2009/02/18/combining-sms-messages/" href="http://mobiletidings.com/2009/02/18/combining-sms-messages/">http://mobiletidings.com/2009/02/18/combining-sms-messages/</a> blog to get the clear idea because I don’t want to post same content again in this post.</p>
<p>So basically there are 2 secret to send long SMS</p>
<ol>
<li>Add User Data Header</li>
<li>Add Padding bit to encode your message.</li>
</ol>
<p>If I want to send</p>
<p>Message:</p>
<ul>
<li>Message 1: “<strong>This is Part 1.</strong>”</li>
<li>Message 2: “<strong>This is Part 2.</strong> “</li>
</ul>
<p>Message PDU should be</p>
<div id="attachment_166" class="wp-caption alignnone" style="width: 554px"><a href="http://hiteshagja.files.wordpress.com/2010/04/pdu-13.jpg"><img class="size-full wp-image-166" title="PDU-1" src="http://hiteshagja.files.wordpress.com/2010/04/pdu-13.jpg?w=500" alt="Message 1 - PDU"   /></a><p class="wp-caption-text">Message 1 - PDU</p></div>
<div id="attachment_165" class="wp-caption alignnone" style="width: 554px"><a href="http://hiteshagja.files.wordpress.com/2010/04/pdu-2.jpg"><img class="size-full wp-image-165" title="PDU-2" src="http://hiteshagja.files.wordpress.com/2010/04/pdu-2.jpg?w=500" alt="Message 2 - PDU"   /></a><p class="wp-caption-text">Message 2 - PDU</p></div>
<p>That’s it , you are done !!</p>
<p>Things to know before sending Long SMS is , UDH will occupy 6 octets so original message size should be reduce.</p>
<p>Please let me know if I am missing something so I can update this post.</p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;overflow:hidden;">
<p>Send Long SMS/Multipart SMS/Concatenated SMS</p>
<p>Send Long SMS/Multipart SMS/Concatenated SMS</p>
<p>Here I am writing about most awaited post of my blog with great excitement.  In this post I will explain you , how to send long SMS or multipart SMS or concatenated SMS. Before I explain you I want to share my experience during searching for the secret of long SMS. When I started searching on internet about “how to send long sms”, I found resource on wiki which explains the basic of long SMS and PDU format for sending long SMS. But this page (wiki) contains link at bottom of the page and this link (trust me) one of the best resource on the internet to learn about concatenated SMS. Here is the link if you want to read this blog : “http://mobiletidings.com/2009/02/18/combining-sms-messages/”.  But still I am having same problem not able to send long SMS using AT command. But reading this blog I am sure that I am missing something in my PDU which cause problem. What I have done is I have contacted Franco (owner of “http://www.franco7777.net/”), who is one of the commenter on “http://mobiletidings.com/2009/02/18/combining-sms-messages/” blog. He gave me very nice response and explains me where my mistake is.  And after that I have got the clear idea about sending long SMS over network.</p>
<p>Now I want to show you how you can send long SMS. But before reading this post further I will strongly recommend you to read “http://www.dreamfabric.com/sms/” and grab basic idea about SMS PDU structure. When you send single SMS ( &lt;= 160 Character) there is not UDH exist in the message but when you try to send long SMS ( &gt; 160 Character) you need to add this UDH field into the message PDU. So the basic question is how to add this header in to the message. One more thing you should know to send concatenated SMS, and the thing is when you send single SMS there is no User Data Header so little less confusion and you don’t need to add padding bit to encode your message into GSM 7-bit encoding scheme but if you are going to send concatenated SMS, UDHL is exist and it is in septets so you need to add one padding bit compulsory to encode your SMS. Read “http://mobiletidings.com/2009/02/18/combining-sms-messages/” blog to get the clear idea because I don’t want to post same content again in this post.</p>
<p>So basically there are 2 secret to send long SMS</p>
<ol>
<li>Add User Data Header</li>
<li>Add Padding bit to encode your message.</li>
</ol>
<p>If I want to send</p>
<p>Message:</p>
<p>Message 1: “<strong>This is Part 1.</strong>”</p>
<p>Message 2: “<strong>This is Part 2.</strong> “</p>
<p>Message PDU should be</p>
<p>******Image*******</p>
<p>That’s it , you are done !!</p>
<p>Things to know before sending Long SMS is , UDH will occupy 6 octets so original message size should be reduce.</p>
<p>Please let me know if I am missing something so I can update this post.</p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hiteshagja.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hiteshagja.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hiteshagja.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hiteshagja.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hiteshagja.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hiteshagja.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hiteshagja.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hiteshagja.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hiteshagja.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hiteshagja.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hiteshagja.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hiteshagja.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hiteshagja.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hiteshagja.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=159&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hiteshagja.wordpress.com/2010/04/04/send-long-sms/feed/</wfw:commentRss>
		<slash:comments>57</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92cc7f4a58bfad5f414f214f98e029aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hiteshagja</media:title>
		</media:content>

		<media:content url="http://hiteshagja.files.wordpress.com/2010/04/pdu-13.jpg" medium="image">
			<media:title type="html">PDU-1</media:title>
		</media:content>

		<media:content url="http://hiteshagja.files.wordpress.com/2010/04/pdu-2.jpg" medium="image">
			<media:title type="html">PDU-2</media:title>
		</media:content>
	</item>
		<item>
		<title>Avoid Using Updatepanel</title>
		<link>http://hiteshagja.wordpress.com/2009/12/20/avoid-using-updatepanel/</link>
		<comments>http://hiteshagja.wordpress.com/2009/12/20/avoid-using-updatepanel/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 09:45:56 +0000</pubDate>
		<dc:creator>hiteshagja</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Avoid Updatepanel]]></category>
		<category><![CDATA[jQuery Ajax]]></category>
		<category><![CDATA[Prototype AJAX]]></category>
		<category><![CDATA[UpdatePanel]]></category>
		<category><![CDATA[UpdatePanel Speed Issue]]></category>

		<guid isPermaLink="false">http://hiteshagja.wordpress.com/?p=155</guid>
		<description><![CDATA[Updatepanel is part of AJAX Extension 1.0 and later provided by Microsoft. Update panel is used to hide page refresh using some standard mechanism. But What about speed? In my experience updatepanel is the best solution if your page does not contain large number of components. And make sure controls you used is supported by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=155&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><strong>Updatepanel</strong> is part of AJAX Extension 1.0 and later provided by Microsoft. Update panel is used to hide page refresh using some standard mechanism. But What about speed? In my experience updatepanel is the best solution if your page does not contain large number of components. And make sure controls you used is supported by updatepanel. Because controls like GridView,Treeview and more , are not supported by updatepanel. So you can expect behaviours change if you put it inside updatepanel.</p>
<p style="text-align:justify;">I have recently trusted on updatepanel and used in my page where speed is the primary concern and that page was almost dead. So avoid using updatepanel where speed is primary requirement.</p>
<p style="text-align:justify;">I have used Prototype AJAX in my application. It’s faster and better. Give it a try.  I tried to use jQuery AJAX but it has not that much support for <strong>ASP.net 2.0</strong>, its very good if you working on ASP.net 3.0 or ASP.net 3.5 version of .net.</p>
<p style="text-align:justify;">So the conclusion is , avoid using updatepanel to get better speed , insted you can use <em><strong>Prototype</strong></em> or <em><strong>jQuery</strong></em> AJAX to get the best speed and performance of your application.  Googling around the web and you will get many working example of protory and jquery.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hiteshagja.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hiteshagja.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hiteshagja.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hiteshagja.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hiteshagja.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hiteshagja.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hiteshagja.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hiteshagja.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hiteshagja.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hiteshagja.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hiteshagja.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hiteshagja.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hiteshagja.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hiteshagja.wordpress.com/155/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=155&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hiteshagja.wordpress.com/2009/12/20/avoid-using-updatepanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92cc7f4a58bfad5f414f214f98e029aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hiteshagja</media:title>
		</media:content>
	</item>
		<item>
		<title>MySQL With .Net 2.0/3.0/3.5</title>
		<link>http://hiteshagja.wordpress.com/2009/09/19/mysql-with-net-2-03-03-5/</link>
		<comments>http://hiteshagja.wordpress.com/2009/09/19/mysql-with-net-2-03-03-5/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 19:34:57 +0000</pubDate>
		<dc:creator>hiteshagja</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL .Net Connector]]></category>
		<category><![CDATA[MySQL Database Server]]></category>
		<category><![CDATA[MySQL with .net]]></category>

		<guid isPermaLink="false">http://hiteshagja.wordpress.com/?p=146</guid>
		<description><![CDATA[MySQL is open source database. We had always seen MySQL with PHP. Generally we know MySQL is database engine for PHP. It’s true because .net does not have inbuilt support for MySQL database. We need to install other tools to make it work perfectly. In order to work with MySQL in .net you need to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=146&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">MySQL is open source database. We had always seen MySQL with PHP. Generally we know MySQL is database engine for PHP. It’s true because .net does not have inbuilt support for MySQL database. We need to install other tools to make it work perfectly. In order to work with MySQL in .net you need to install MySQL Server and MySQL Connector. You can create function and procedure in MySQL version 5.1 and later. At the same time you will get great user interface to manage database. You will get interface just like MS SQL server management studio. MySQL Connector is used to add database connectivity support in Visual Studio. Download Connector depending upon the .net framework you use and Visual studio you work on.  Version 5.1 GA (Generally Available) and later is recommended for .net framework 2.0 and higher.</p>
<p><strong>Problems I faced:</strong></p>
<ol>
<li>Syntax of MySQL is very different from MS SQL server.</li>
<li>Error console of MySQL is not that user friendly.</li>
<li>Migration of MS SQL Database to MySQL is quite difficult.</li>
<li>Because it’s not Microsoft product you won’t find any inbuilt programming level support. Ex. It’s really hard to work use LINQ if your backend is MySQL.</li>
</ol>
<p><a title="Download MySQL Database Server and Connector" href="http://dev.mysql.com/downloads/" target="_blank">Download Latest MySQL Database Server and Connector (Click Here).</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hiteshagja.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hiteshagja.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hiteshagja.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hiteshagja.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hiteshagja.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hiteshagja.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hiteshagja.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hiteshagja.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hiteshagja.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hiteshagja.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hiteshagja.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hiteshagja.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hiteshagja.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hiteshagja.wordpress.com/146/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=146&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hiteshagja.wordpress.com/2009/09/19/mysql-with-net-2-03-03-5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92cc7f4a58bfad5f414f214f98e029aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hiteshagja</media:title>
		</media:content>
	</item>
		<item>
		<title>Enable Disable Controls During AJAX Postback</title>
		<link>http://hiteshagja.wordpress.com/2009/08/23/enable-disable-controls-during-ajax-postback/</link>
		<comments>http://hiteshagja.wordpress.com/2009/08/23/enable-disable-controls-during-ajax-postback/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 08:00:51 +0000</pubDate>
		<dc:creator>hiteshagja</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Ajax Postback]]></category>
		<category><![CDATA[Enable Disable Controls]]></category>
		<category><![CDATA[Enable Disable Form Controls]]></category>

		<guid isPermaLink="false">http://hiteshagja.wordpress.com/?p=140</guid>
		<description><![CDATA[Most of us use Microsoft AJAX Toolkit and Controls but we don’t know when Ajax Request starts and when it ends. Sometimes we need to do enabling and disabling controls during postback. This can be done using the code below. Here I have added two event handlers to request manager class instance. Event will be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=140&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Most of us use Microsoft AJAX Toolkit and Controls but we don’t know when Ajax Request starts and when it ends. Sometimes we need to do enabling and disabling controls during postback. This can be done using the code below.</p>
<p><pre class="brush: jscript;">
var _employee=null;
var _department=null;
var _subdepartment=null;

function pageLoad(sender, args){
// Register start request and end request event handler Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequest);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequest); }

// fired when ajax request starts
function beginRequest(sender, args){
_ employee = $get('ctl00_ContentPlaceHolder1_ddlemployee);
_ department = $get('ctl00_ContentPlaceHolder1_ddldepartment);
_ subdepartment = $get('ctl00_ContentPlaceHolder1_ddlsubdepartment);
_ employee.disabled=true;
_ department.disabled=true;
_ subdepartment.disabled=true; }

// fired when ajax request ends
function endRequest(sender, args) {
_ employee.disabled=false;
_ department.disabled=false;
_ subdepartment.disabled=false;
}
</pre></p>
<p>Here I have added two event handlers to request manager class instance. Event will be fired when request starts or ends. Isn’t it easy? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Ref : <a href="http://mattberseth.com/blog/">http://mattberseth.com/blog/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hiteshagja.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hiteshagja.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hiteshagja.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hiteshagja.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hiteshagja.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hiteshagja.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hiteshagja.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hiteshagja.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hiteshagja.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hiteshagja.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hiteshagja.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hiteshagja.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hiteshagja.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hiteshagja.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=140&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hiteshagja.wordpress.com/2009/08/23/enable-disable-controls-during-ajax-postback/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92cc7f4a58bfad5f414f214f98e029aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hiteshagja</media:title>
		</media:content>
	</item>
		<item>
		<title>Online Money Transfer</title>
		<link>http://hiteshagja.wordpress.com/2009/08/10/online-money-transfer/</link>
		<comments>http://hiteshagja.wordpress.com/2009/08/10/online-money-transfer/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 20:34:01 +0000</pubDate>
		<dc:creator>hiteshagja</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[MoneyBooker]]></category>
		<category><![CDATA[Online Money Transfer]]></category>
		<category><![CDATA[Xoom]]></category>

		<guid isPermaLink="false">http://hiteshagja.wordpress.com/?p=134</guid>
		<description><![CDATA[This post is completely non-technical but useful in many places. I want to share my experience with different companies for online money transfer.  Few days back, I planned to buy some product over internet but the only problem I faced was How to transfer money in foreign country? I look up many websites which provide [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=134&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is completely non-technical but useful in many places. I want to share my experience with different companies for online money transfer.  Few days back, I planned to buy some product over internet but the only problem I faced was How to transfer money in foreign country? I look up many websites which provide this facility but amongst all I would recommend every to go with Xoom and MoneyBooker. I transferred money to china using Xoom. Nowadays, there are lots of options available for online money transfer. Options like Western Union, T/T are good but they charge more or need to study.</p>
<p style="text-align:justify;">I found very nice alternate for online money transfer. Xoom.com. If you search “Online Money Transfer” in Google.com. You may find this website ranked first. Believe me Service is excellent. First time I had tried this website to credit money from <strong>PayPal to Indian Bank Account</strong>. Money was transferred in few days and I got letter from xoom.com about this transaction.  Sound good!</p>
<p style="text-align:justify;">I recently sent money to “Bank Of China”. This means that you can credit requested amount directly to the bank account. One of the nicest things about Xoom is that their executives call to recipient and confirm the details before they proceed.</p>
<p style="text-align:justify;">Another website namely “Moneybooker” provides online money transfer. The feature I like in this website is escrow money. This is the best thing if you purchase product online.</p>

<a href='http://hiteshagja.wordpress.com/2009/08/10/online-money-transfer/xoom-online-payment-1/' title='Xoom Online Money Transfer - Home'><img data-attachment-id='131' data-orig-size='512,484' data-liked='0'width="150" height="141" src="http://hiteshagja.files.wordpress.com/2009/08/xoom-online-payment-1.gif?w=150&#038;h=141" class="attachment-thumbnail" alt="Sending Home" title="Xoom Online Money Transfer - Home" /></a>
<a href='http://hiteshagja.wordpress.com/2009/08/10/online-money-transfer/xoom-online-payment-2/' title='Xoom Online Money Transfer - Send Amount'><img data-attachment-id='132' data-orig-size='512,484' data-liked='0'width="150" height="141" src="http://hiteshagja.files.wordpress.com/2009/08/xoom-online-payment-2.gif?w=150&#038;h=141" class="attachment-thumbnail" alt="Send Amount" title="Xoom Online Money Transfer - Send Amount" /></a>
<a href='http://hiteshagja.wordpress.com/2009/08/10/online-money-transfer/xoom-online-payment-3/' title='Xoom Online Money Transfer - Fill in recipient details'><img data-attachment-id='133' data-orig-size='512,537' data-liked='0'width="143" height="150" src="http://hiteshagja.files.wordpress.com/2009/08/xoom-online-payment-3.gif?w=143&#038;h=150" class="attachment-thumbnail" alt="Fill in recipient details" title="Xoom Online Money Transfer - Fill in recipient details" /></a>
<a href='http://hiteshagja.wordpress.com/2009/08/10/online-money-transfer/moneybooker-online-payment/' title='MoneyBooker - Send Money'><img data-attachment-id='130' data-orig-size='512,513' data-liked='0'width="150" height="150" src="http://hiteshagja.files.wordpress.com/2009/08/moneybooker-online-payment.gif?w=150&#038;h=150" class="attachment-thumbnail" alt="Send Money" title="MoneyBooker - Send Money" /></a>
<a href='http://hiteshagja.wordpress.com/2009/08/10/online-money-transfer/moneybooker-online-payment3/' title='MoneyBooker - Upload fund using credit card'><img data-attachment-id='129' data-orig-size='512,706' data-liked='0'width="108" height="150" src="http://hiteshagja.files.wordpress.com/2009/08/moneybooker-online-payment3.gif?w=108&#038;h=150" class="attachment-thumbnail" alt="Upload fund using credit card" title="MoneyBooker - Upload fund using credit card" /></a>
<a href='http://hiteshagja.wordpress.com/2009/08/10/online-money-transfer/moneybooker-online-payment2/' title='MoneyBooker - Upload fund from your bank account'><img data-attachment-id='128' data-orig-size='512,593' data-liked='0'width="129" height="150" src="http://hiteshagja.files.wordpress.com/2009/08/moneybooker-online-payment2.gif?w=129&#038;h=150" class="attachment-thumbnail" alt="Upload fund from your bank account" title="MoneyBooker - Upload fund from your bank account" /></a>

<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hiteshagja.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hiteshagja.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hiteshagja.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hiteshagja.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hiteshagja.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hiteshagja.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hiteshagja.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hiteshagja.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hiteshagja.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hiteshagja.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hiteshagja.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hiteshagja.wordpress.com/134/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hiteshagja.wordpress.com/134/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hiteshagja.wordpress.com/134/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hiteshagja.wordpress.com&amp;blog=5490753&amp;post=134&amp;subd=hiteshagja&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hiteshagja.wordpress.com/2009/08/10/online-money-transfer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92cc7f4a58bfad5f414f214f98e029aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hiteshagja</media:title>
		</media:content>

		<media:content url="http://hiteshagja.files.wordpress.com/2009/08/xoom-online-payment-1.gif?w=150" medium="image">
			<media:title type="html">Xoom Online Money Transfer - Home</media:title>
		</media:content>

		<media:content url="http://hiteshagja.files.wordpress.com/2009/08/xoom-online-payment-2.gif?w=150" medium="image">
			<media:title type="html">Xoom Online Money Transfer - Send Amount</media:title>
		</media:content>

		<media:content url="http://hiteshagja.files.wordpress.com/2009/08/xoom-online-payment-3.gif?w=143" medium="image">
			<media:title type="html">Xoom Online Money Transfer - Fill in recipient details</media:title>
		</media:content>

		<media:content url="http://hiteshagja.files.wordpress.com/2009/08/moneybooker-online-payment.gif?w=150" medium="image">
			<media:title type="html">MoneyBooker - Send Money</media:title>
		</media:content>

		<media:content url="http://hiteshagja.files.wordpress.com/2009/08/moneybooker-online-payment3.gif?w=108" medium="image">
			<media:title type="html">MoneyBooker - Upload fund using credit card</media:title>
		</media:content>

		<media:content url="http://hiteshagja.files.wordpress.com/2009/08/moneybooker-online-payment2.gif?w=129" medium="image">
			<media:title type="html">MoneyBooker - Upload fund from your bank account</media:title>
		</media:content>
	</item>
	</channel>
</rss>
