<?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>Yasserzaid's Weblog</title>
	<atom:link href="http://yasserzaid.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://yasserzaid.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 27 Jan 2012 19:20:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='yasserzaid.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Yasserzaid's Weblog</title>
		<link>http://yasserzaid.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://yasserzaid.wordpress.com/osd.xml" title="Yasserzaid&#039;s Weblog" />
	<atom:link rel='hub' href='http://yasserzaid.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Find Date between Two Date Range</title>
		<link>http://yasserzaid.wordpress.com/2012/01/27/find-date-between-two-date-range/</link>
		<comments>http://yasserzaid.wordpress.com/2012/01/27/find-date-between-two-date-range/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 19:20:12 +0000</pubDate>
		<dc:creator>yasserzaid</dc:creator>
				<category><![CDATA[ASP.Net]]></category>

		<guid isPermaLink="false">http://yasserzaid.wordpress.com/?p=2396</guid>
		<description><![CDATA[Hi all, try this example to find Date between two dates Range for example i want to display all date of  Saturday and Sunday between two dates Hope this helps Good Luck<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2396&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>try this example to find Date between two dates Range</p>
<p>for example i want to display all date of  Saturday and Sunday between two dates</p>
<p><pre class="brush: plain;">

protected void Page_Load(object sender, EventArgs e)
 {
 if (!IsPostBack)
 {
 DateTime startDate = new DateTime(2011, 3, 1);
 DateTime endDate = DateTime.Now;
 TimeSpan diff = endDate - startDate;
 int days = diff.Days;
 for (var i = 0; i &lt;= days; i++)
 {
 var testDate = startDate.AddDays(i);
 switch (testDate.DayOfWeek)
 {
 case DayOfWeek.Saturday:
 case DayOfWeek.Sunday:
 Response.Write(testDate.ToShortDateString()+&quot;&lt;br/&gt;&quot;);
 break;
 }
 }
 }
 }</pre></p>
<p>Hope this helps</p>
<p>Good Luck</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yasserzaid.wordpress.com/2396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yasserzaid.wordpress.com/2396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yasserzaid.wordpress.com/2396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yasserzaid.wordpress.com/2396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yasserzaid.wordpress.com/2396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yasserzaid.wordpress.com/2396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yasserzaid.wordpress.com/2396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yasserzaid.wordpress.com/2396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yasserzaid.wordpress.com/2396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yasserzaid.wordpress.com/2396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yasserzaid.wordpress.com/2396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yasserzaid.wordpress.com/2396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yasserzaid.wordpress.com/2396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yasserzaid.wordpress.com/2396/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2396&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yasserzaid.wordpress.com/2012/01/27/find-date-between-two-date-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/407eb18b56d92aae4bd303a975f2e875?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yasserzaid</media:title>
		</media:content>
	</item>
		<item>
		<title>Get local computer IP address</title>
		<link>http://yasserzaid.wordpress.com/2012/01/16/get-local-computer-ip-address/</link>
		<comments>http://yasserzaid.wordpress.com/2012/01/16/get-local-computer-ip-address/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 08:24:46 +0000</pubDate>
		<dc:creator>yasserzaid</dc:creator>
				<category><![CDATA[ASP.Net]]></category>

		<guid isPermaLink="false">http://yasserzaid.wordpress.com/?p=2392</guid>
		<description><![CDATA[Hi all, try this example to Get local computer IP address we will create a new method which will return IP Address Hope this helps Good Luck<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2392&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>try this example to Get local computer IP address we will create a new method which will return IP Address</p>
<p><pre class="brush: plain;">

private string GetLocalIP()
 {
 string _IP = null;
 // Resolves a host name or IP address to an IPHostEntry instance.
 // IPHostEntry - Provides a container class for Internet host address information.
 System.Net.IPHostEntry _IPHostEntry = System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName());
 // IPAddress class contains the address of a computer on an IP network.
 foreach (System.Net.IPAddress _IPAddress in _IPHostEntry.AddressList)
 {
 // InterNetwork indicates that an IP version 4 address is expected
 // when a Socket connects to an endpoint
 if (_IPAddress.AddressFamily.ToString() == &quot;InterNetwork&quot;)
 {
 _IP = _IPAddress.ToString();
 }
 }
 return _IP;
 }</pre></p>
<p>Hope this helps</p>
<p>Good Luck</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yasserzaid.wordpress.com/2392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yasserzaid.wordpress.com/2392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yasserzaid.wordpress.com/2392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yasserzaid.wordpress.com/2392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yasserzaid.wordpress.com/2392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yasserzaid.wordpress.com/2392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yasserzaid.wordpress.com/2392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yasserzaid.wordpress.com/2392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yasserzaid.wordpress.com/2392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yasserzaid.wordpress.com/2392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yasserzaid.wordpress.com/2392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yasserzaid.wordpress.com/2392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yasserzaid.wordpress.com/2392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yasserzaid.wordpress.com/2392/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2392&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yasserzaid.wordpress.com/2012/01/16/get-local-computer-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/407eb18b56d92aae4bd303a975f2e875?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yasserzaid</media:title>
		</media:content>
	</item>
		<item>
		<title>Pass QueryString Parameter with NavigaterUrl in Hyperlink inside a GridView</title>
		<link>http://yasserzaid.wordpress.com/2012/01/06/pass-querystring-parameter-with-navigaterurl-in-hyperlink-inside-a-gridview/</link>
		<comments>http://yasserzaid.wordpress.com/2012/01/06/pass-querystring-parameter-with-navigaterurl-in-hyperlink-inside-a-gridview/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 11:55:31 +0000</pubDate>
		<dc:creator>yasserzaid</dc:creator>
				<category><![CDATA[ASP.Net]]></category>

		<guid isPermaLink="false">http://yasserzaid.wordpress.com/?p=2388</guid>
		<description><![CDATA[Hi all, try this example to try many ways to Pass QueryString Parameter with NavigaterUrl in Hyperlink inside a GridView 1-a: Using HyperLinkField of GridView :- 1-b: Passing more than one Querystring parameter with HyperLinkField in GridView :- 2-a: Set NavigateUrl property of HyperLink in TemplateField in Markup :- 2-b: Set NavigateUrl property of HyperLink by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2388&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>try this example to try many ways to Pass QueryString Parameter with NavigaterUrl in Hyperlink inside a GridView</p>
<p>1-a: Using HyperLinkField of GridView :-</p>
<p><pre class="brush: plain;">

&lt;ASP:GRIDVIEW id=GridView1 runat=&quot;server&quot; autogeneratecolumns=&quot;False&quot; datakeynames=&quot;CustomerID&quot; datasourceid=&quot;SqlDataSource1&quot;&gt;
 &lt;COLUMNS&gt;
 &lt;ASP:HYPERLINKFIELD text=&quot;Detail&quot; datanavigateurlfields=&quot;CustomerID&quot; datanavigateurlformatstring=&quot;CustomerDetails.aspx?customerId={0}&quot;&gt;&lt;/ASP:HYPERLINKFIELD&gt;
 &lt;ASP:BOUNDFIELD datafield=&quot;CustomerID&quot; headertext=&quot;CustomerID&quot; readonly=&quot;True&quot; sortexpression=&quot;CustomerID&quot;&gt;&lt;/ASP:BOUNDFIELD&gt;
 &lt;ASP:BOUNDFIELD datafield=&quot;CompanyName&quot; headertext=&quot;CompanyName&quot; sortexpression=&quot;CompanyName&quot;&gt;&lt;/ASP:BOUNDFIELD&gt;
 &lt;ASP:BOUNDFIELD datafield=&quot;ContactName&quot; headertext=&quot;ContactName&quot; sortexpression=&quot;ContactName&quot;&gt;&lt;/ASP:BOUNDFIELD&gt;
 &lt;/COLUMNS&gt;
&lt;/ASP:GRIDVIEW&gt;

&lt;ASP:SQLDATASOURCE id=SqlDataSource1 runat=&quot;server&quot; connectionstring=&quot;&lt;%$ ConnectionStrings:NORTHWNDConnectionString %&gt;&quot;
selectcommand=&quot;SELECT [CustomerID], [CompanyName], [ContactName] FROM [Customers]&quot;&gt;
&lt;/ASP:SQLDATASOURCE&gt;</pre></p>
<p>1-b: Passing more than one Querystring parameter with HyperLinkField in GridView :-</p>
<p><pre class="brush: plain;">

&lt;asp:hyperlinkfield text=&quot;Detail&quot; datanavigateurlfields=&quot;CustomerID,CompanyName&quot;
 datanavigateurlformatstring=&quot;CustomerDetails.aspx?customerId={0}&amp;amp;companyName={1}&quot; /&gt;</pre></p>
<p>2-a: Set NavigateUrl property of HyperLink in TemplateField in Markup :-</p>
<p><pre class="brush: plain;">

&lt;asp:TemplateField&gt;
 &lt;ItemTemplate&gt;
 &lt;asp:HyperLink ID=&quot;hlDetails1&quot; Text=&quot;Details&quot; runat=&quot;server&quot;
 NavigateUrl='&lt;%# &quot;CustomerDetails.aspx?customer=&quot; + Eval(&quot;CustomerID&quot;) + &quot;&amp;CompanyName=&quot; + Server.UrlEncode(Eval(&quot;CompanyName&quot;).ToString())%&gt;' /&gt;
 &lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;</pre></p>
<p>2-b: Set NavigateUrl property of HyperLink by Calling method in code-behind:-</p>
<p><pre class="brush: plain;">

&lt;asp:TemplateField&gt;
 &lt;ItemTemplate&gt;
 &lt;asp:HyperLink id=&quot;hlDetails2&quot; Text=&quot;Details&quot; Runat=&quot;server&quot;
 NavigateUrl='&lt;%# GetUrl(Eval(&quot;CustomerID&quot;),Eval(&quot;CompanyName&quot;))%&gt;' /&gt;
 &lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;</pre></p>
<p>and in code behind add this method</p>
<p><pre class="brush: plain;">

public string GetUrl(object id, object companyname)
 {
 string url = &quot;~/CustomerDetails.aspx?customerid=&quot; + id.ToString() + &quot;&amp;companyname=&quot; +
 Server.UrlEncode(companyname.ToString());
 return url;
 }</pre></p>
<p>2-c: Set NavigateUrl in RowDataBound event :-</p>
<p><pre class="brush: plain;">

&lt;asp:GridView ID=&quot;GridView1&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;False&quot; DataKeyNames=&quot;CustomerID&quot;
DataSourceID=&quot;SqlDataSource1&quot; onrowdatabound=&quot;GridView1_RowDataBound&quot;&gt;
&lt;asp:TemplateField&gt;
 &lt;ItemTemplate&gt;
 &lt;asp:HyperLink id=&quot;hlDetails2&quot; Text=&quot;Details&quot; Runat=&quot;server&quot; /&gt;
 &lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;/asp:GridView&gt;</pre></p>
<p>and in code behind :-</p>
<p><pre class="brush: plain;">

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
 if (e.Row.RowType == DataControlRowType.DataRow)
 {
 HyperLink hl = (HyperLink)e.Row.FindControl(&quot;hlDetails2&quot;);
 if (hl != null)
 {
 DataRowView drv = (DataRowView)e.Row.DataItem;
 string id = drv[&quot;CustomerID&quot;].ToString();
 string companyname = drv[&quot;CompanyName&quot;].ToString();
 hl.NavigateUrl = &quot;~/CustomerDetails.aspx?customerid=&quot; + id.ToString() + &quot;&amp;companyname=&quot; + Server.UrlEncode(companyname.ToString());
 }
 }
}</pre></p>
<p>Hope this helps</p>
<p>Good Luck</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yasserzaid.wordpress.com/2388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yasserzaid.wordpress.com/2388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yasserzaid.wordpress.com/2388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yasserzaid.wordpress.com/2388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yasserzaid.wordpress.com/2388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yasserzaid.wordpress.com/2388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yasserzaid.wordpress.com/2388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yasserzaid.wordpress.com/2388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yasserzaid.wordpress.com/2388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yasserzaid.wordpress.com/2388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yasserzaid.wordpress.com/2388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yasserzaid.wordpress.com/2388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yasserzaid.wordpress.com/2388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yasserzaid.wordpress.com/2388/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2388&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yasserzaid.wordpress.com/2012/01/06/pass-querystring-parameter-with-navigaterurl-in-hyperlink-inside-a-gridview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/407eb18b56d92aae4bd303a975f2e875?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yasserzaid</media:title>
		</media:content>
	</item>
		<item>
		<title>Use WebService with Javascript to Get Auto DateTime</title>
		<link>http://yasserzaid.wordpress.com/2012/01/05/use-webservice-with-javascript-to-get-auto-datetime/</link>
		<comments>http://yasserzaid.wordpress.com/2012/01/05/use-webservice-with-javascript-to-get-auto-datetime/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 15:46:58 +0000</pubDate>
		<dc:creator>yasserzaid</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://yasserzaid.wordpress.com/?p=2386</guid>
		<description><![CDATA[Hi all, try this example to Use WebService with Javascript to Get Auto DateTime 1) open vs2008 and create a new web site and add new WebService name it &#8220;WebService.asmx&#8221; and add this code :- 2) Add new Web Page and in ASPX Design add this :- then run your page you will find time change [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2386&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>try this example to Use WebService with Javascript to Get Auto DateTime</p>
<p>1) open vs2008 and create a new web site and add new WebService name it &#8220;WebService.asmx&#8221; and add this code :-</p>
<p><pre class="brush: plain;">

using System;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;

/// &lt;summary&gt;
/// Summary description for WebService
/// &lt;/summary&gt;
[WebService(Namespace = &quot;http://tempuri.org/&quot;)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
 [System.Web.Script.Services.ScriptService]
public class WebService : System.Web.Services.WebService {

public WebService () {

//Uncomment the following line if using designed components
 //InitializeComponent();
 }

[WebMethod]
 public string GetTime()
 {
 return DateTime.Now.ToString(&quot;dd/MM/yyyy hh:mm:ss&quot;);
 }

}

</pre></p>
<p>2) Add new Web Page and in ASPX Design add this :-</p>
<p><pre class="brush: plain;">

&lt;head runat=&quot;server&quot;&gt;
 &lt;title&gt;Untitled Page&lt;/title&gt;
 &lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&gt;
 var interval = 0;
 function pageLoad() {
 callWebService();
 interval = window.setInterval(&quot;callWebService()&quot;, 3000);
 }

function callWebService() {
 WebService.GetTime(successCallback, failCallback);
 }

function successCallback(result) {
 var divOutput = document.getElementById(&quot;divOutput&quot;);
 divOutput.innerHTML = result;
 }

function failCallback(error) {
 alert('Error: ' + error.get_exceptionType());
 }

 &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
 &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
 &lt;asp:ScriptManager runat=&quot;server&quot; ID=&quot;scriptManager1&quot;&gt;
 &lt;Services&gt;
 &lt;asp:ServiceReference Path=&quot;~/WebService.asmx&quot; /&gt;
 &lt;/Services&gt;
 &lt;/asp:ScriptManager&gt;
 &lt;div id=&quot;divOutput&quot;&gt;
 &lt;/div&gt;
 &lt;/form&gt;
&lt;/body&gt;</pre></p>
<p>then run your page you will find time change every 3 sec this is because i call the result from webservice</p>
<p>Hope this helps</p>
<p>Good Luck</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yasserzaid.wordpress.com/2386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yasserzaid.wordpress.com/2386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yasserzaid.wordpress.com/2386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yasserzaid.wordpress.com/2386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yasserzaid.wordpress.com/2386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yasserzaid.wordpress.com/2386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yasserzaid.wordpress.com/2386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yasserzaid.wordpress.com/2386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yasserzaid.wordpress.com/2386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yasserzaid.wordpress.com/2386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yasserzaid.wordpress.com/2386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yasserzaid.wordpress.com/2386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yasserzaid.wordpress.com/2386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yasserzaid.wordpress.com/2386/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2386&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yasserzaid.wordpress.com/2012/01/05/use-webservice-with-javascript-to-get-auto-datetime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/407eb18b56d92aae4bd303a975f2e875?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yasserzaid</media:title>
		</media:content>
	</item>
		<item>
		<title>Google Weather with ASP.Net</title>
		<link>http://yasserzaid.wordpress.com/2011/12/27/google-weather-with-asp-net/</link>
		<comments>http://yasserzaid.wordpress.com/2011/12/27/google-weather-with-asp-net/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 09:37:19 +0000</pubDate>
		<dc:creator>yasserzaid</dc:creator>
				<category><![CDATA[ASP.Net]]></category>

		<guid isPermaLink="false">http://yasserzaid.wordpress.com/?p=2383</guid>
		<description><![CDATA[Hi all, try this example to user Google Weather with ASP.Net Now we will Create a Method to get Weather for Location To use this method :- Hope this helps Good Luck<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2383&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>try this example to user Google Weather with ASP.Net</p>
<p>Now we will Create a Method to get Weather for Location</p>
<p><pre class="brush: plain;">

public static void GoogleWeather(string location)
 {
 HttpWebRequest GoogleRequest;
 HttpWebResponse GoogleResponse = null;
 XmlDocument GoogleXMLdoc = null;
 try
 {
 GoogleRequest = (HttpWebRequest)WebRequest.Create(&quot;http://www.google.com/ig/api?weather=&quot; + string.Format(location));
 GoogleResponse = (HttpWebResponse)GoogleRequest.GetResponse();
 GoogleXMLdoc = new XmlDocument();
 GoogleXMLdoc.Load(GoogleResponse.GetResponseStream());
 XmlNode root = GoogleXMLdoc.DocumentElement;
 XmlNodeList nodeList1 = root.SelectNodes(&quot;weather/forecast_information&quot;);
 HttpContext.Current.Response.Write(&quot;&lt;B&gt;City : &quot; + nodeList1.Item(0).SelectSingleNode(&quot;city&quot;).Attributes[&quot;data&quot;].InnerText + &quot;&lt;/B&gt;&quot;);
 XmlNodeList nodeList = root.SelectNodes(&quot;weather/current_conditions&quot;);
 HttpContext.Current.Response.Write(&quot;&lt;TABLE cellPadding=5&gt;&lt;TBODY&gt;&lt;TR&gt;&quot;);
 HttpContext.Current.Response.Write(&quot;&lt;TD&gt;&lt;B&gt;&lt;BIG&gt;&lt;NOBR&gt;&quot; + nodeList.Item(0).SelectSingleNode(&quot;temp_c&quot;).Attributes[&quot;data&quot;].InnerText + &quot; °C | &quot; + nodeList.Item(0).SelectSingleNode(&quot;temp_f&quot;).Attributes[&quot;data&quot;].InnerText + &quot; °F&lt;/NOBR&gt;&lt;/BIG&gt;&lt;/B&gt;&quot;);
 HttpContext.Current.Response.Write(&quot;&lt;B&gt;Current:&lt;/B&gt; &quot; + nodeList.Item(0).SelectSingleNode(&quot;condition&quot;).Attributes[&quot;data&quot;].InnerText + &quot;&quot;);
 HttpContext.Current.Response.Write(&quot;&quot; + nodeList.Item(0).SelectSingleNode(&quot;wind_condition&quot;).Attributes[&quot;data&quot;].InnerText + &quot;&quot;);
 HttpContext.Current.Response.Write(nodeList.Item(0).SelectSingleNode(&quot;humidity&quot;).Attributes[&quot;data&quot;].InnerText);
 nodeList = root.SelectNodes(&quot;descendant::weather/forecast_conditions&quot;);
 foreach (XmlNode nod in nodeList)
 {
 HttpContext.Current.Response.Write(&quot;&lt;/TD&gt;&lt;TD align=middle&gt;&quot; + nod.SelectSingleNode(&quot;day_of_week&quot;).Attributes[&quot;data&quot;].InnerText + &quot;&quot;);
 HttpContext.Current.Response.Write(&quot;&lt;IMG alt='&quot; + nod.SelectSingleNode(&quot;condition&quot;).Attributes[&quot;data&quot;].InnerText + &quot;' src='http://www.google.com&quot; + nod.SelectSingleNode(&quot;icon&quot;).Attributes[&quot;data&quot;].InnerText + &quot;'&gt;&quot;);
 HttpContext.Current.Response.Write(nod.SelectSingleNode(&quot;low&quot;).Attributes[&quot;data&quot;].InnerText + &quot;°F | &quot;);
 HttpContext.Current.Response.Write(nod.SelectSingleNode(&quot;high&quot;).Attributes[&quot;data&quot;].InnerText + &quot;°F&quot;);
 }
 HttpContext.Current.Response.Write(&quot;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&quot;);
 }
 catch (System.Exception ex)
 {
 HttpContext.Current.Response.Write(ex.Message);
 }
 finally
 {
 GoogleResponse.Close();
 }
 }</pre></p>
<p>To use this method :-</p>
<p><pre class="brush: plain;">GoogleWeather(&quot;Egypt&quot;);</pre></p>
<p>Hope this helps</p>
<p>Good Luck</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yasserzaid.wordpress.com/2383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yasserzaid.wordpress.com/2383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yasserzaid.wordpress.com/2383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yasserzaid.wordpress.com/2383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yasserzaid.wordpress.com/2383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yasserzaid.wordpress.com/2383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yasserzaid.wordpress.com/2383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yasserzaid.wordpress.com/2383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yasserzaid.wordpress.com/2383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yasserzaid.wordpress.com/2383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yasserzaid.wordpress.com/2383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yasserzaid.wordpress.com/2383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yasserzaid.wordpress.com/2383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yasserzaid.wordpress.com/2383/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2383&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yasserzaid.wordpress.com/2011/12/27/google-weather-with-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/407eb18b56d92aae4bd303a975f2e875?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yasserzaid</media:title>
		</media:content>
	</item>
		<item>
		<title>JQuery to Enable and Disable Textbox when CheckBox is Checked with Gridview</title>
		<link>http://yasserzaid.wordpress.com/2011/12/19/jquery-to-enable-and-disable-textbox-when-checkbox-is-checked-with-gridview/</link>
		<comments>http://yasserzaid.wordpress.com/2011/12/19/jquery-to-enable-and-disable-textbox-when-checkbox-is-checked-with-gridview/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 19:14:43 +0000</pubDate>
		<dc:creator>yasserzaid</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://yasserzaid.wordpress.com/?p=2380</guid>
		<description><![CDATA[Hi all, try this example to use JQuery to Enable and Disable Textbox when CheckBox is Checked with Gridview 1) Open VS2008 and create a new website and add new page and from Toolbox drag Gridview in web page so our page will be like this :- 2) Now we need to Bind Grivdview control so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2380&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>try this example to use JQuery to Enable and Disable Textbox when CheckBox is Checked with Gridview</p>
<p>1) Open VS2008 and create a new website and add new page and from Toolbox drag Gridview in web page so our page will be like this :-</p>
<p><pre class="brush: plain;">

&lt;asp:GridView ID=&quot;GridView1&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;false&quot;&gt;
 &lt;Columns&gt;
 &lt;asp:TemplateField HeaderText=&quot;Ministry&quot;&gt;
 &lt;ItemTemplate&gt;
 &lt;asp:CheckBox ID=&quot;CheckBox&quot; runat=&quot;server&quot; /&gt;
 &lt;/ItemTemplate&gt;
 &lt;/asp:TemplateField&gt;
 &lt;asp:TemplateField HeaderText=&quot;Ministry&quot;&gt;
 &lt;ItemTemplate&gt;
 &lt;asp:Label ID=&quot;Ministry&quot; runat=&quot;server&quot; Text='&lt;%#Eval(&quot;Ministry&quot;)%&gt;' /&gt;
 &lt;/ItemTemplate&gt;
 &lt;/asp:TemplateField&gt;
 &lt;asp:TemplateField HeaderText=&quot;Title&quot;&gt;
 &lt;ItemTemplate&gt;
 &lt;asp:Label ID=&quot;Title&quot; runat=&quot;server&quot; Text='&lt;%#Eval(&quot;Title&quot;)%&gt;' /&gt;
 &lt;/ItemTemplate&gt;
 &lt;/asp:TemplateField&gt;
 &lt;asp:TemplateField HeaderText=&quot;Criteria&quot;&gt;
 &lt;ItemTemplate&gt;
 &lt;asp:TextBox ID=&quot;Criteria&quot; runat=&quot;server&quot; Text='&lt;%#Eval(&quot;Criteria&quot;)%&gt;' /&gt;
 &lt;/ItemTemplate&gt;
 &lt;/asp:TemplateField&gt;
 &lt;/Columns&gt;
 &lt;/asp:GridView&gt;</pre></p>
<p>2) Now we need to Bind Grivdview control so in code behind add the following code :-</p>
<p><pre class="brush: plain;">

protected void Page_Load(object sender, EventArgs e)
 {
 string s = Guid.NewGuid().ToString().ToLower();
 var obj = new { Ministry = &quot;Ministry 0&quot;, Title = &quot;Title 0&quot;, Criteria = &quot;Criteria 0&quot; };
 var objList = (new[] { obj }).ToList();
 objList.Add(new { Ministry = &quot;Minis try 1&quot;, Title = &quot;Title 1&quot;, Criteria = &quot;Criteria 1&quot; });
 objList.Add(new { Ministry = &quot;Mi nis try sfd 2&quot;, Title = &quot;Title 2&quot;, Criteria = &quot;Criteria 2&quot; });
 objList.Add(new { Ministry = &quot;Minis try fdsf sdf 3&quot;, Title = &quot;Title 3&quot;, Criteria = &quot;Criteria 3&quot; });
 objList.Add(new { Ministry = &quot;Mini stryd dd 4&quot;, Title = &quot;Title 4&quot;, Criteria = &quot;Criteria 4&quot; });
 objList.Add(new { Ministry = &quot;Min is tryf 5&quot;, Title = &quot;Title 5&quot;, Criteria = &quot;Criteria 5&quot; });
 objList.Add(new { Ministry = &quot;Mini stry 6&quot;, Title = &quot;Title 6&quot;, Criteria = &quot;Criteria 6&quot; });
 GridView1.DataSource = objList;
 GridView1.DataBind();
 }</pre></p>
<p>3) Now We need to add Jquery function which will enable and disable Textbox in Gridview according to Checkbox state</p>
<p><pre class="brush: plain;">

&lt;script src=&quot;http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
 &lt;script type=&quot;text/javascript&quot;&gt;
 $(document).ready(function() {
 $(&quot;input[type=text][id*=Criteria]&quot;).attr(&quot;disabled&quot;, true);
 $(&quot;input[type=checkbox][id*=CheckBox]&quot;).click(function() {
 if (this.checked)
 $(this).closest(&quot;tr&quot;).find(&quot;input[type=text][id*=Criteria]&quot;).attr(&quot;disabled&quot;, false);
 else
 $(this).closest(&quot;tr&quot;).find(&quot;input[type=text][id*=Criteria]&quot;).attr(&quot;disabled&quot;, true);
 });
 });

 &lt;/script&gt;</pre></p>
<p>Hope this helps</p>
<p>Good Luck</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yasserzaid.wordpress.com/2380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yasserzaid.wordpress.com/2380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yasserzaid.wordpress.com/2380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yasserzaid.wordpress.com/2380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yasserzaid.wordpress.com/2380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yasserzaid.wordpress.com/2380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yasserzaid.wordpress.com/2380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yasserzaid.wordpress.com/2380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yasserzaid.wordpress.com/2380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yasserzaid.wordpress.com/2380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yasserzaid.wordpress.com/2380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yasserzaid.wordpress.com/2380/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yasserzaid.wordpress.com/2380/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yasserzaid.wordpress.com/2380/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2380&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yasserzaid.wordpress.com/2011/12/19/jquery-to-enable-and-disable-textbox-when-checkbox-is-checked-with-gridview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/407eb18b56d92aae4bd303a975f2e875?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yasserzaid</media:title>
		</media:content>
	</item>
		<item>
		<title>Encrypt and Decrypt QueryString in Gridview</title>
		<link>http://yasserzaid.wordpress.com/2011/12/09/encrypt-and-decrypt-querystring-in-gridview/</link>
		<comments>http://yasserzaid.wordpress.com/2011/12/09/encrypt-and-decrypt-querystring-in-gridview/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 19:29:59 +0000</pubDate>
		<dc:creator>yasserzaid</dc:creator>
				<category><![CDATA[ASP.Net]]></category>

		<guid isPermaLink="false">http://yasserzaid.wordpress.com/?p=2378</guid>
		<description><![CDATA[Hi all, try this example to Encrypt and Decrypt QueryString in Gridview In this example i will use Northwind Database (Categories and Products tables) 1) Open VS2008 and create new web site 2) Add Web.Config and add the connection string to database 3) Add new Class name it &#8220;Encriptor.cs&#8221; and add the following code which will [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2378&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>try this example to Encrypt and Decrypt QueryString in Gridview</p>
<p>In this example i will use Northwind Database (Categories and Products tables)</p>
<p>1) Open VS2008 and create new web site</p>
<p>2) Add Web.Config and add the connection string to database</p>
<p><pre class="brush: plain;">

&lt;connectionStrings&gt;
 &lt;add name=&quot;NorthwindConnectionString&quot; connectionString=&quot;Data Source=.;Initial Catalog=Northwind;Integrated Security=True&quot; providerName=&quot;System.Data.SqlClient&quot;/&gt;
 &lt;/connectionStrings&gt;</pre></p>
<p>3) Add new Class name it &#8220;Encriptor.cs&#8221; and add the following code which will Encrypt and Decrypt Querystring :-</p>
<p><pre class="brush: plain;">

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Security.Cryptography;
using System.IO;
using System.Text;

/// &lt;summary&gt;
/// Summary description for Encriptor
/// &lt;/summary&gt;
public class Encriptor
{
 public Encriptor()
 {
 }

const string DESKey = &quot;AQWSEDRF&quot;;
 public static int key = 129;

public static string Encrypt(string strToEncrypt, string strKey)
 {
 try
 {
 TripleDESCryptoServiceProvider objDESCrypto =
 new TripleDESCryptoServiceProvider();
 MD5CryptoServiceProvider objHashMD5 = new MD5CryptoServiceProvider();
 byte[] byteHash, byteBuff;
 string strTempKey = strKey;
 byteHash = objHashMD5.ComputeHash(ASCIIEncoding.ASCII.GetBytes(strTempKey));
 objHashMD5 = null;
 objDESCrypto.Key = byteHash;
 objDESCrypto.Mode = CipherMode.ECB; //CBC, CFB
 byteBuff = ASCIIEncoding.ASCII.GetBytes(strToEncrypt);
 return Convert.ToBase64String(objDESCrypto.CreateEncryptor().
 TransformFinalBlock(byteBuff, 0, byteBuff.Length));
 }
 catch (Exception ex)
 {
 return &quot;Wrong Input. &quot; + ex.Message;
 }
 }

/// &lt;summary&gt;
 /// Decrypt the given string using the specified key.
 /// &lt;/summary&gt;
 /// &lt;param name=&quot;strEncrypted&quot;&gt;The string to be decrypted.&lt;/param&gt;
 /// &lt;param name=&quot;strKey&quot;&gt;The decryption key.&lt;/param&gt;
 /// &lt;returns&gt;The decrypted string.&lt;/returns&gt;
 public static string Decrypt(string strEncrypted, string strKey)
 {
 try
 {
 TripleDESCryptoServiceProvider objDESCrypto =
 new TripleDESCryptoServiceProvider();
 MD5CryptoServiceProvider objHashMD5 = new MD5CryptoServiceProvider();
 byte[] byteHash, byteBuff;
 string strTempKey = strKey;
 byteHash = objHashMD5.ComputeHash(ASCIIEncoding.ASCII.GetBytes(strTempKey));
 objHashMD5 = null;
 objDESCrypto.Key = byteHash;
 objDESCrypto.Mode = CipherMode.ECB; //CBC, CFB
 byteBuff = Convert.FromBase64String(strEncrypted);
 string strDecrypted = ASCIIEncoding.ASCII.GetString
 (objDESCrypto.CreateDecryptor().TransformFinalBlock
 (byteBuff, 0, byteBuff.Length));
 objDESCrypto = null;
 return strDecrypted;
 }
 catch (Exception ex)
 {
 return &quot;Wrong Input. &quot; + ex.Message;
 }
 }

public static string decryptQueryString(string stringToDecrypt)//Decrypt the content
 {
 byte[] c = Convert.FromBase64String(stringToDecrypt);
 string decryptedConnectionString = System.Text.UTF32Encoding.UTF32.GetString(c);
 decryptedConnectionString = decryptedConnectionString.Replace(&quot;_V_&quot;, &quot; &quot;);
 return decryptedConnectionString;
 return stringToDecrypt;
 return Decrypt(stringToDecrypt, DESKey);
 }

public static string Reverse(string str)
 {
 int len = str.Length;
 char[] arr = new char[len];
 for (int i = 0; i &lt; len; i++)
 {
 arr[i] = str[len - 1 - i];
 }
 return new string(arr);
 }

public static string ReverseAdvanced(string str, bool isenc)
 {
 string result = Reverse(str);
 if (!(str.Length &lt; 3))
 {
 for (int i = 0; i &lt; str.Length; i++)
 {
 ShiftMiddle(result, isenc);
 }
 }
 return result;
 }
 public static string encryptQueryString(string stringToEncrypt)// Encrypt the content
 {
 stringToEncrypt = stringToEncrypt.Replace(&quot; &quot;, &quot;_V_&quot;);
 byte[] b = System.Text.UTF32Encoding.UTF32.GetBytes(stringToEncrypt);
 string encryptedConnectionString = Convert.ToBase64String(b);
 return encryptedConnectionString;
 return stringToEncrypt;
 return Encrypt(stringToEncrypt, DESKey);
 return stringToEncrypt + &quot;x&quot;;
 }

static byte[] Convert2ByteArray(string strInput)
 {
 int intCounter; char[] arrChar;
 arrChar = strInput.ToCharArray();
 byte[] arrByte = new byte[arrChar.Length];

for (intCounter = 0; intCounter &lt;= arrByte.Length - 1; intCounter++)
 arrByte[intCounter] = Convert.ToByte(arrChar[intCounter]);
 return arrByte;
 }
}</pre></p>
<p>4) Add new Web Page and from Toolbox drag Gridview control</p>
<p><pre class="brush: plain;">

&lt;div&gt;
 &lt;asp:GridView ID=&quot;GV_Category&quot; runat=&quot;server&quot; AutoGenerateColumns=&quot;False&quot;
 DataKeyNames=&quot;CategoryID&quot; CellPadding=&quot;4&quot; ForeColor=&quot;#333333&quot;&gt;
 &lt;RowStyle BackColor=&quot;#FFFBD6&quot; ForeColor=&quot;#333333&quot; /&gt;
 &lt;Columns&gt;
 &lt;asp:BoundField DataField=&quot;CategoryID&quot; HeaderText=&quot;CategoryID&quot; ReadOnly=&quot;true&quot; InsertVisible=&quot;False&quot;
 SortExpression=&quot;CategoryID&quot; /&gt;
 &lt;asp:BoundField DataField=&quot;CategoryName&quot; HeaderText=&quot;CategoryName&quot; SortExpression=&quot;CategoryName&quot; /&gt;
 &lt;asp:BoundField DataField=&quot;Description&quot; HeaderText=&quot;Description&quot; SortExpression=&quot;Description&quot; /&gt;
 &lt;asp:TemplateField&gt;
 &lt;ItemTemplate&gt;
 &lt;a href=&quot;#&quot; onclick=&quot;window.open('Product_Detail.aspx?CategoryID=&lt;%# Encriptor.encryptQueryString(DataBinder.Eval(Container.DataItem,&quot;CategoryID&quot;).ToString())%&gt;'); return false&quot;&gt;Products Detail&lt;/a&gt;
 &lt;/ItemTemplate&gt;
 &lt;/asp:TemplateField&gt;
 &lt;/Columns&gt;
 &lt;FooterStyle BackColor=&quot;#990000&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; /&gt;
 &lt;PagerStyle BackColor=&quot;#FFCC66&quot; ForeColor=&quot;#333333&quot; HorizontalAlign=&quot;Center&quot; /&gt;
 &lt;SelectedRowStyle BackColor=&quot;#FFCC66&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;Navy&quot; /&gt;
 &lt;HeaderStyle BackColor=&quot;#990000&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; /&gt;
 &lt;AlternatingRowStyle BackColor=&quot;White&quot; /&gt;
 &lt;/asp:GridView&gt;
 &lt;/div&gt;</pre></p>
<p>5)  Now we want to bind that Gridview to Categories table so in code behind we will add the following code :-</p>
<p><pre class="brush: plain;">

protected void Page_Load(object sender, EventArgs e)
 {
 if (!IsPostBack)
 {
 SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings[&quot;NorthwindConnectionString&quot;].ConnectionString);
 SqlCommand comm = new SqlCommand(&quot;Select * from Categories&quot;, conn);
 DataSet ds = new DataSet();
 SqlDataAdapter adpter = new SqlDataAdapter(comm);
 adpter.Fill(ds);
 GV_Category.DataSource = ds;
 GV_Category.DataBind();
 }
 }</pre></p>
<p>Don&#8217;t forget to use the following Namespace</p>
<p><pre class="brush: plain;">using System.Data.SqlClient;</pre></p>
<p>6) Add Another Web Page called &#8220;Product_Detail.aspx&#8221; and from Toolbox drag Gridview control to bind Products for each Category using Querystring</p>
<p><pre class="brush: plain;">

&lt;div&gt;
 &lt;asp:GridView ID=&quot;gvProducts&quot; runat=&quot;server&quot;
 CssClass=&quot;datagrid&quot; AutoGenerateColumns=&quot;False&quot;
 DataKeyNames=&quot;ProductID&quot; CellPadding=&quot;4&quot; ForeColor=&quot;#333333&quot;&gt;
 &lt;RowStyle BackColor=&quot;#FFFBD6&quot; ForeColor=&quot;#333333&quot; /&gt;
 &lt;Columns&gt;
 &lt;asp:BoundField DataField=&quot;ProductID&quot; HeaderText=&quot;ProductID&quot; ReadOnly=&quot;true&quot;
 InsertVisible=&quot;False&quot; SortExpression=&quot;ProductID&quot; /&gt;
 &lt;asp:BoundField DataField=&quot;ProductName&quot; HeaderText=&quot;ProductName&quot;
 SortExpression=&quot;ProductName&quot; /&gt;
 &lt;asp:BoundField DataField=&quot;QuantityPerUnit&quot; HeaderText=&quot;QuantityPerUnit&quot;
 SortExpression=&quot;QuantityPerUnit&quot; /&gt;
 &lt;asp:BoundField DataField=&quot;UnitPrice&quot; HeaderText=&quot;UnitPrice&quot;
 SortExpression=&quot;UnitPrice&quot; /&gt;
 &lt;/Columns&gt;
 &lt;FooterStyle BackColor=&quot;#990000&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; /&gt;
 &lt;PagerStyle BackColor=&quot;#FFCC66&quot; ForeColor=&quot;#333333&quot; HorizontalAlign=&quot;Center&quot; /&gt;
 &lt;SelectedRowStyle BackColor=&quot;#FFCC66&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;Navy&quot; /&gt;
 &lt;HeaderStyle BackColor=&quot;#990000&quot; Font-Bold=&quot;True&quot; ForeColor=&quot;White&quot; /&gt;
 &lt;AlternatingRowStyle BackColor=&quot;White&quot; /&gt;
 &lt;/asp:GridView&gt;
 &lt;/div&gt;</pre></p>
<p>7) In Code behind we will add the following Code :-</p>
<p><pre class="brush: plain;">

protected void Page_Load(object sender, EventArgs e)
 {
 if (!IsPostBack)
 {
 SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings[&quot;NorthwindConnectionString&quot;].ConnectionString);
 SqlCommand comm = new SqlCommand(&quot;Select * from Products where CategoryID = @CategoryID&quot;, conn);
 comm.Parameters.Add(&quot;@CategoryID&quot;, SqlDbType.Int).Value = Encriptor.decryptQueryString(Request.QueryString[&quot;CategoryID&quot;]);
 DataSet ds = new DataSet();
 SqlDataAdapter adpter = new SqlDataAdapter(comm);
 adpter.Fill(ds);
 gvProducts.DataSource = ds;
 gvProducts.DataBind();
 }
 }</pre></p>
<p>Hope this helps</p>
<p>Good Luck</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yasserzaid.wordpress.com/2378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yasserzaid.wordpress.com/2378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yasserzaid.wordpress.com/2378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yasserzaid.wordpress.com/2378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yasserzaid.wordpress.com/2378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yasserzaid.wordpress.com/2378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yasserzaid.wordpress.com/2378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yasserzaid.wordpress.com/2378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yasserzaid.wordpress.com/2378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yasserzaid.wordpress.com/2378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yasserzaid.wordpress.com/2378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yasserzaid.wordpress.com/2378/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yasserzaid.wordpress.com/2378/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yasserzaid.wordpress.com/2378/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2378&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yasserzaid.wordpress.com/2011/12/09/encrypt-and-decrypt-querystring-in-gridview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/407eb18b56d92aae4bd303a975f2e875?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yasserzaid</media:title>
		</media:content>
	</item>
		<item>
		<title>AJAX Currency Converter with ASP.NET, jQuery and Google</title>
		<link>http://yasserzaid.wordpress.com/2011/12/03/ajax-currency-converter-with-asp-net-jquery-and-google/</link>
		<comments>http://yasserzaid.wordpress.com/2011/12/03/ajax-currency-converter-with-asp-net-jquery-and-google/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 19:30:49 +0000</pubDate>
		<dc:creator>yasserzaid</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://yasserzaid.wordpress.com/?p=2376</guid>
		<description><![CDATA[Hi all , try this example to use JQuery and Google to create currency converter with ASP.Net 1) Open VS2008 and create a new web site and add new WebService called &#8220;WebService.asmx&#8221; and in code behind add the following code :- 2) Add new Web Page and add the following Javascript :- Hope this helps [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2376&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all ,</p>
<p>try this example to use JQuery and Google to create currency converter with ASP.Net</p>
<p>1) Open VS2008 and create a new web site and add new WebService called &#8220;WebService.asmx&#8221;</p>
<p>and in code behind add the following code :-</p>
<p><pre class="brush: plain;">

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Net;
using System.Text.RegularExpressions;

[WebService(Namespace = &quot;http://tempuri.org/&quot;)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
 [System.Web.Script.Services.ScriptService]
public class WebService : System.Web.Services.WebService {

public WebService () {

 }

[WebMethod]
 public decimal Convert(decimal amount, string fromCurrency, string toCurrency)
 {
 WebClient web = new WebClient();
 string url = string.Format(&quot;http://www.google.com/ig/calculator?hl=en&amp;q={2}{0}%3D%3F{1}&quot;, fromCurrency.ToUpper(), toCurrency.ToUpper(), amount);
 string response = web.DownloadString(url);
 Regex regex = new Regex(&quot;rhs: \\\&quot;(\\d*.\\d*)&quot;);
 decimal rate = System.Convert.ToDecimal(regex.Match(response).Groups[1].Value);
 return rate;
 }
}</pre></p>
<p>2) Add new Web Page</p>
<p><pre class="brush: plain;">

&lt;div style=&quot;overflow:hidden; padding:10px; width:700px; margin:10px; background:#EAEAFF; border:solid 1px #ccc;&quot;&gt;
 &lt;div style=&quot;padding: 2px; margin: 2px; float: left;&quot;&gt;
 Amount:&amp;nbsp;
 &lt;input id=&quot;a&quot; maxlength=&quot;12&quot; size=&quot;5&quot; value=&quot;1&quot; /&gt;
 &lt;/div&gt;
 &lt;div style=&quot;padding: 2px; margin: 2px; float: left;&quot;&gt;
 From:&amp;nbsp;
 &lt;select id=&quot;from&quot;&gt;
 &lt;option value=&quot;AED&quot;&gt;United Arab Emirates Dirham (AED)&lt;/option&gt;
 &lt;option value=&quot;ANG&quot;&gt;Netherlands Antillean Guilder (ANG)&lt;/option&gt;
 &lt;option value=&quot;ARS&quot;&gt;Argentine Peso (ARS)&lt;/option&gt;
 &lt;option value=&quot;AUD&quot;&gt;Australian Dollar (AUD)&lt;/option&gt;
 &lt;option value=&quot;BDT&quot;&gt;Bangladeshi Taka (BDT)&lt;/option&gt;
 &lt;option value=&quot;BGN&quot;&gt;Bulgarian Lev (BGN)&lt;/option&gt;
 &lt;option value=&quot;BHD&quot;&gt;Bahraini Dinar (BHD)&lt;/option&gt;
 &lt;option value=&quot;BND&quot;&gt;Brunei Dollar (BND)&lt;/option&gt;
 &lt;option value=&quot;BOB&quot;&gt;Bolivian Boliviano (BOB)&lt;/option&gt;
 &lt;option value=&quot;BRL&quot;&gt;Brazilian Real (BRL)&lt;/option&gt;
 &lt;option value=&quot;BWP&quot;&gt;Botswanan Pula (BWP)&lt;/option&gt;
 &lt;option value=&quot;CAD&quot;&gt;Canadian Dollar (CAD)&lt;/option&gt;
 &lt;option value=&quot;CHF&quot;&gt;Swiss Franc (CHF)&lt;/option&gt;
 &lt;option value=&quot;CLP&quot;&gt;Chilean Peso (CLP)&lt;/option&gt;
 &lt;option value=&quot;CNY&quot;&gt;Chinese Yuan (CNY)&lt;/option&gt;
 &lt;option value=&quot;COP&quot;&gt;Colombian Peso (COP)&lt;/option&gt;
 &lt;option value=&quot;CRC&quot;&gt;Costa Rican Colón (CRC)&lt;/option&gt;
 &lt;option value=&quot;CZK&quot;&gt;Czech Republic Koruna (CZK)&lt;/option&gt;
 &lt;option value=&quot;DKK&quot;&gt;Danish Krone (DKK)&lt;/option&gt;
 &lt;option value=&quot;DOP&quot;&gt;Dominican Peso (DOP)&lt;/option&gt;
 &lt;option value=&quot;DZD&quot;&gt;Algerian Dinar (DZD)&lt;/option&gt;
 &lt;option value=&quot;EEK&quot;&gt;Estonian Kroon (EEK)&lt;/option&gt;
 &lt;option value=&quot;EGP&quot;&gt;Egyptian Pound (EGP)&lt;/option&gt;
 &lt;option value=&quot;EUR&quot;&gt;Euro (EUR)&lt;/option&gt;
 &lt;option value=&quot;FJD&quot;&gt;Fijian Dollar (FJD)&lt;/option&gt;
 &lt;option value=&quot;GBP&quot;&gt;British Pound Sterling (GBP)&lt;/option&gt;
 &lt;option value=&quot;HKD&quot;&gt;Hong Kong Dollar (HKD)&lt;/option&gt;
 &lt;option value=&quot;HNL&quot;&gt;Honduran Lempira (HNL)&lt;/option&gt;
 &lt;option value=&quot;HRK&quot;&gt;Croatian Kuna (HRK)&lt;/option&gt;
 &lt;option value=&quot;HUF&quot;&gt;Hungarian Forint (HUF)&lt;/option&gt;
 &lt;option value=&quot;IDR&quot;&gt;Indonesian Rupiah (IDR)&lt;/option&gt;
 &lt;option value=&quot;ILS&quot;&gt;Israeli New Sheqel (ILS)&lt;/option&gt;
 &lt;option value=&quot;INR&quot;&gt;Indian Rupee (INR)&lt;/option&gt;
 &lt;option value=&quot;JMD&quot;&gt;Jamaican Dollar (JMD)&lt;/option&gt;
 &lt;option value=&quot;JOD&quot;&gt;Jordanian Dinar (JOD)&lt;/option&gt;
 &lt;option value=&quot;JPY&quot;&gt;Japanese Yen (JPY)&lt;/option&gt;
 &lt;option value=&quot;KES&quot;&gt;Kenyan Shilling (KES)&lt;/option&gt;
 &lt;option value=&quot;KRW&quot;&gt;South Korean Won (KRW)&lt;/option&gt;
 &lt;option value=&quot;KWD&quot;&gt;Kuwaiti Dinar (KWD)&lt;/option&gt;
 &lt;option value=&quot;KYD&quot;&gt;Cayman Islands Dollar (KYD)&lt;/option&gt;
 &lt;option value=&quot;KZT&quot;&gt;Kazakhstani Tenge (KZT)&lt;/option&gt;
 &lt;option value=&quot;LBP&quot;&gt;Lebanese Pound (LBP)&lt;/option&gt;
 &lt;option value=&quot;LKR&quot;&gt;Sri Lankan Rupee (LKR)&lt;/option&gt;
 &lt;option value=&quot;LTL&quot;&gt;Lithuanian Litas (LTL)&lt;/option&gt;
 &lt;option value=&quot;LVL&quot;&gt;Latvian Lats (LVL)&lt;/option&gt;
 &lt;option value=&quot;MAD&quot;&gt;Moroccan Dirham (MAD)&lt;/option&gt;
 &lt;option value=&quot;MDL&quot;&gt;Moldovan Leu (MDL)&lt;/option&gt;
 &lt;option value=&quot;MKD&quot;&gt;Macedonian Denar (MKD)&lt;/option&gt;
 &lt;option value=&quot;MUR&quot;&gt;Mauritian Rupee (MUR)&lt;/option&gt;
 &lt;option value=&quot;MVR&quot;&gt;Maldivian Rufiyaa (MVR)&lt;/option&gt;
 &lt;option value=&quot;MXN&quot;&gt;Mexican Peso (MXN)&lt;/option&gt;
 &lt;option value=&quot;MYR&quot;&gt;Malaysian Ringgit (MYR)&lt;/option&gt;
 &lt;option value=&quot;NAD&quot;&gt;Namibian Dollar (NAD)&lt;/option&gt;
 &lt;option value=&quot;NGN&quot;&gt;Nigerian Naira (NGN)&lt;/option&gt;
 &lt;option value=&quot;NIO&quot;&gt;Nicaraguan Córdoba (NIO)&lt;/option&gt;
 &lt;option value=&quot;NOK&quot;&gt;Norwegian Krone (NOK)&lt;/option&gt;
 &lt;option value=&quot;NPR&quot;&gt;Nepalese Rupee (NPR)&lt;/option&gt;
 &lt;option value=&quot;NZD&quot;&gt;New Zealand Dollar (NZD)&lt;/option&gt;
 &lt;option value=&quot;OMR&quot;&gt;Omani Rial (OMR)&lt;/option&gt;
 &lt;option value=&quot;PEN&quot;&gt;Peruvian Nuevo Sol (PEN)&lt;/option&gt;
 &lt;option value=&quot;PGK&quot;&gt;Papua New Guinean Kina (PGK)&lt;/option&gt;
 &lt;option value=&quot;PHP&quot;&gt;Philippine Peso (PHP)&lt;/option&gt;
 &lt;option value=&quot;PKR&quot;&gt;Pakistani Rupee (PKR)&lt;/option&gt;
 &lt;option value=&quot;PLN&quot;&gt;Polish Zloty (PLN)&lt;/option&gt;
 &lt;option value=&quot;PYG&quot;&gt;Paraguayan Guarani (PYG)&lt;/option&gt;
 &lt;option value=&quot;QAR&quot;&gt;Qatari Rial (QAR)&lt;/option&gt;
 &lt;option value=&quot;RON&quot;&gt;Romanian Leu (RON)&lt;/option&gt;
 &lt;option value=&quot;RSD&quot;&gt;Serbian Dinar (RSD)&lt;/option&gt;
 &lt;option value=&quot;RUB&quot;&gt;Russian Ruble (RUB)&lt;/option&gt;
 &lt;option value=&quot;SAR&quot;&gt;Saudi Riyal (SAR)&lt;/option&gt;
 &lt;option value=&quot;SCR&quot;&gt;Seychellois Rupee (SCR)&lt;/option&gt;
 &lt;option value=&quot;SEK&quot;&gt;Swedish Krona (SEK)&lt;/option&gt;
 &lt;option value=&quot;SGD&quot;&gt;Singapore Dollar (SGD)&lt;/option&gt;
 &lt;option value=&quot;SKK&quot;&gt;Slovak Koruna (SKK)&lt;/option&gt;
 &lt;option value=&quot;SLL&quot;&gt;Sierra Leonean Leone (SLL)&lt;/option&gt;
 &lt;option value=&quot;SVC&quot;&gt;Salvadoran Colón (SVC)&lt;/option&gt;
 &lt;option value=&quot;THB&quot;&gt;Thai Baht (THB)&lt;/option&gt;
 &lt;option value=&quot;TND&quot;&gt;Tunisian Dinar (TND)&lt;/option&gt;
 &lt;option value=&quot;TRY&quot;&gt;Turkish Lira (TRY)&lt;/option&gt;
 &lt;option value=&quot;TTD&quot;&gt;Trinidad and Tobago Dollar (TTD)&lt;/option&gt;
 &lt;option value=&quot;TWD&quot;&gt;New Taiwan Dollar (TWD)&lt;/option&gt;
 &lt;option value=&quot;TZS&quot;&gt;Tanzanian Shilling (TZS)&lt;/option&gt;
 &lt;option value=&quot;UAH&quot;&gt;Ukrainian Hryvnia (UAH)&lt;/option&gt;
 &lt;option value=&quot;UGX&quot;&gt;Ugandan Shilling (UGX)&lt;/option&gt;
 &lt;option value=&quot;USD&quot;&gt;US Dollar (USD)&lt;/option&gt;
 &lt;option value=&quot;UYU&quot;&gt;Uruguayan Peso (UYU)&lt;/option&gt;
 &lt;option value=&quot;UZS&quot;&gt;Uzbekistan Som (UZS)&lt;/option&gt;
 &lt;option value=&quot;VEF&quot;&gt;Venezuelan Bolívar (VEF)&lt;/option&gt;
 &lt;option value=&quot;VND&quot;&gt;Vietnamese Dong (VND)&lt;/option&gt;
 &lt;option value=&quot;XOF&quot;&gt;CFA Franc BCEAO (XOF)&lt;/option&gt;
 &lt;option value=&quot;YER&quot;&gt;Yemeni Rial (YER)&lt;/option&gt;
 &lt;option value=&quot;ZAR&quot;&gt;South African Rand (ZAR)&lt;/option&gt;
 &lt;option value=&quot;ZMK&quot;&gt;Zambian Kwacha (ZMK)&lt;/option&gt;
 &lt;/select&gt;
 &lt;/div&gt;
 &lt;div style=&quot;padding: 2px; margin: 2px;&quot;&gt;
 to: &amp;nbsp;
 &lt;select id=&quot;to&quot;&gt;
 &lt;option value=&quot;AED&quot;&gt;United Arab Emirates Dirham (AED)&lt;/option&gt;
 &lt;option value=&quot;ANG&quot;&gt;Netherlands Antillean Guilder (ANG)&lt;/option&gt;
 &lt;option value=&quot;ARS&quot;&gt;Argentine Peso (ARS)&lt;/option&gt;
 &lt;option value=&quot;AUD&quot;&gt;Australian Dollar (AUD)&lt;/option&gt;
 &lt;option value=&quot;BDT&quot;&gt;Bangladeshi Taka (BDT)&lt;/option&gt;
 &lt;option value=&quot;BGN&quot;&gt;Bulgarian Lev (BGN)&lt;/option&gt;
 &lt;option value=&quot;BHD&quot;&gt;Bahraini Dinar (BHD)&lt;/option&gt;
 &lt;option value=&quot;BND&quot;&gt;Brunei Dollar (BND)&lt;/option&gt;
 &lt;option value=&quot;BOB&quot;&gt;Bolivian Boliviano (BOB)&lt;/option&gt;
 &lt;option value=&quot;BRL&quot;&gt;Brazilian Real (BRL)&lt;/option&gt;
 &lt;option value=&quot;BWP&quot;&gt;Botswanan Pula (BWP)&lt;/option&gt;
 &lt;option value=&quot;CAD&quot;&gt;Canadian Dollar (CAD)&lt;/option&gt;
 &lt;option value=&quot;CHF&quot;&gt;Swiss Franc (CHF)&lt;/option&gt;
 &lt;option value=&quot;CLP&quot;&gt;Chilean Peso (CLP)&lt;/option&gt;
 &lt;option value=&quot;CNY&quot;&gt;Chinese Yuan (CNY)&lt;/option&gt;
 &lt;option value=&quot;COP&quot;&gt;Colombian Peso (COP)&lt;/option&gt;
 &lt;option value=&quot;CRC&quot;&gt;Costa Rican Colón (CRC)&lt;/option&gt;
 &lt;option value=&quot;CZK&quot;&gt;Czech Republic Koruna (CZK)&lt;/option&gt;
 &lt;option value=&quot;DKK&quot;&gt;Danish Krone (DKK)&lt;/option&gt;
 &lt;option value=&quot;DOP&quot;&gt;Dominican Peso (DOP)&lt;/option&gt;
 &lt;option value=&quot;DZD&quot;&gt;Algerian Dinar (DZD)&lt;/option&gt;
 &lt;option value=&quot;EEK&quot;&gt;Estonian Kroon (EEK)&lt;/option&gt;
 &lt;option value=&quot;EGP&quot;&gt;Egyptian Pound (EGP)&lt;/option&gt;
 &lt;option value=&quot;EUR&quot;&gt;Euro (EUR)&lt;/option&gt;
 &lt;option value=&quot;FJD&quot;&gt;Fijian Dollar (FJD)&lt;/option&gt;
 &lt;option value=&quot;GBP&quot;&gt;British Pound Sterling (GBP)&lt;/option&gt;
 &lt;option value=&quot;HKD&quot;&gt;Hong Kong Dollar (HKD)&lt;/option&gt;
 &lt;option value=&quot;HNL&quot;&gt;Honduran Lempira (HNL)&lt;/option&gt;
 &lt;option value=&quot;HRK&quot;&gt;Croatian Kuna (HRK)&lt;/option&gt;
 &lt;option value=&quot;HUF&quot;&gt;Hungarian Forint (HUF)&lt;/option&gt;
 &lt;option value=&quot;IDR&quot;&gt;Indonesian Rupiah (IDR)&lt;/option&gt;
 &lt;option value=&quot;ILS&quot;&gt;Israeli New Sheqel (ILS)&lt;/option&gt;
 &lt;option value=&quot;INR&quot;&gt;Indian Rupee (INR)&lt;/option&gt;
 &lt;option value=&quot;JMD&quot;&gt;Jamaican Dollar (JMD)&lt;/option&gt;
 &lt;option value=&quot;JOD&quot;&gt;Jordanian Dinar (JOD)&lt;/option&gt;
 &lt;option value=&quot;JPY&quot;&gt;Japanese Yen (JPY)&lt;/option&gt;
 &lt;option value=&quot;KES&quot;&gt;Kenyan Shilling (KES)&lt;/option&gt;
 &lt;option value=&quot;KRW&quot;&gt;South Korean Won (KRW)&lt;/option&gt;
 &lt;option value=&quot;KWD&quot;&gt;Kuwaiti Dinar (KWD)&lt;/option&gt;
 &lt;option value=&quot;KYD&quot;&gt;Cayman Islands Dollar (KYD)&lt;/option&gt;
 &lt;option value=&quot;KZT&quot;&gt;Kazakhstani Tenge (KZT)&lt;/option&gt;
 &lt;option value=&quot;LBP&quot;&gt;Lebanese Pound (LBP)&lt;/option&gt;
 &lt;option value=&quot;LKR&quot;&gt;Sri Lankan Rupee (LKR)&lt;/option&gt;
 &lt;option value=&quot;LTL&quot;&gt;Lithuanian Litas (LTL)&lt;/option&gt;
 &lt;option value=&quot;LVL&quot;&gt;Latvian Lats (LVL)&lt;/option&gt;
 &lt;option value=&quot;MAD&quot;&gt;Moroccan Dirham (MAD)&lt;/option&gt;
 &lt;option value=&quot;MDL&quot;&gt;Moldovan Leu (MDL)&lt;/option&gt;
 &lt;option value=&quot;MKD&quot;&gt;Macedonian Denar (MKD)&lt;/option&gt;
 &lt;option value=&quot;MUR&quot;&gt;Mauritian Rupee (MUR)&lt;/option&gt;
 &lt;option value=&quot;MVR&quot;&gt;Maldivian Rufiyaa (MVR)&lt;/option&gt;
 &lt;option value=&quot;MXN&quot;&gt;Mexican Peso (MXN)&lt;/option&gt;
 &lt;option value=&quot;MYR&quot;&gt;Malaysian Ringgit (MYR)&lt;/option&gt;
 &lt;option value=&quot;NAD&quot;&gt;Namibian Dollar (NAD)&lt;/option&gt;
 &lt;option value=&quot;NGN&quot;&gt;Nigerian Naira (NGN)&lt;/option&gt;
 &lt;option value=&quot;NIO&quot;&gt;Nicaraguan Córdoba (NIO)&lt;/option&gt;
 &lt;option value=&quot;NOK&quot;&gt;Norwegian Krone (NOK)&lt;/option&gt;
 &lt;option value=&quot;NPR&quot;&gt;Nepalese Rupee (NPR)&lt;/option&gt;
 &lt;option value=&quot;NZD&quot;&gt;New Zealand Dollar (NZD)&lt;/option&gt;
 &lt;option value=&quot;OMR&quot;&gt;Omani Rial (OMR)&lt;/option&gt;
 &lt;option value=&quot;PEN&quot;&gt;Peruvian Nuevo Sol (PEN)&lt;/option&gt;
 &lt;option value=&quot;PGK&quot;&gt;Papua New Guinean Kina (PGK)&lt;/option&gt;
 &lt;option value=&quot;PHP&quot;&gt;Philippine Peso (PHP)&lt;/option&gt;
 &lt;option value=&quot;PKR&quot;&gt;Pakistani Rupee (PKR)&lt;/option&gt;
 &lt;option value=&quot;PLN&quot;&gt;Polish Zloty (PLN)&lt;/option&gt;
 &lt;option value=&quot;PYG&quot;&gt;Paraguayan Guarani (PYG)&lt;/option&gt;
 &lt;option value=&quot;QAR&quot;&gt;Qatari Rial (QAR)&lt;/option&gt;
 &lt;option value=&quot;RON&quot;&gt;Romanian Leu (RON)&lt;/option&gt;
 &lt;option value=&quot;RSD&quot;&gt;Serbian Dinar (RSD)&lt;/option&gt;
 &lt;option value=&quot;RUB&quot;&gt;Russian Ruble (RUB)&lt;/option&gt;
 &lt;option value=&quot;SAR&quot;&gt;Saudi Riyal (SAR)&lt;/option&gt;
 &lt;option value=&quot;SCR&quot;&gt;Seychellois Rupee (SCR)&lt;/option&gt;
 &lt;option value=&quot;SEK&quot;&gt;Swedish Krona (SEK)&lt;/option&gt;
 &lt;option value=&quot;SGD&quot;&gt;Singapore Dollar (SGD)&lt;/option&gt;
 &lt;option value=&quot;SKK&quot;&gt;Slovak Koruna (SKK)&lt;/option&gt;
 &lt;option value=&quot;SLL&quot;&gt;Sierra Leonean Leone (SLL)&lt;/option&gt;
 &lt;option value=&quot;SVC&quot;&gt;Salvadoran Colón (SVC)&lt;/option&gt;
 &lt;option value=&quot;THB&quot;&gt;Thai Baht (THB)&lt;/option&gt;
 &lt;option value=&quot;TND&quot;&gt;Tunisian Dinar (TND)&lt;/option&gt;
 &lt;option value=&quot;TRY&quot;&gt;Turkish Lira (TRY)&lt;/option&gt;
 &lt;option value=&quot;TTD&quot;&gt;Trinidad and Tobago Dollar (TTD)&lt;/option&gt;
 &lt;option value=&quot;TWD&quot;&gt;New Taiwan Dollar (TWD)&lt;/option&gt;
 &lt;option value=&quot;TZS&quot;&gt;Tanzanian Shilling (TZS)&lt;/option&gt;
 &lt;option value=&quot;UAH&quot;&gt;Ukrainian Hryvnia (UAH)&lt;/option&gt;
 &lt;option value=&quot;UGX&quot;&gt;Ugandan Shilling (UGX)&lt;/option&gt;
 &lt;option value=&quot;USD&quot;&gt;US Dollar (USD)&lt;/option&gt;
 &lt;option value=&quot;UYU&quot;&gt;Uruguayan Peso (UYU)&lt;/option&gt;
 &lt;option value=&quot;UZS&quot;&gt;Uzbekistan Som (UZS)&lt;/option&gt;
 &lt;option value=&quot;VEF&quot;&gt;Venezuelan Bolívar (VEF)&lt;/option&gt;
 &lt;option value=&quot;VND&quot;&gt;Vietnamese Dong (VND)&lt;/option&gt;
 &lt;option value=&quot;XOF&quot;&gt;CFA Franc BCEAO (XOF)&lt;/option&gt;
 &lt;option value=&quot;YER&quot;&gt;Yemeni Rial (YER)&lt;/option&gt;
 &lt;option value=&quot;ZAR&quot;&gt;South African Rand (ZAR)&lt;/option&gt;
 &lt;option value=&quot;ZMK&quot;&gt;Zambian Kwacha (ZMK)&lt;/option&gt;
 &lt;/select&gt;
 &lt;/div&gt;
 &lt;br /&gt;
 &lt;div style=&quot;padding: 2px; margin: 2px; float: left;&quot;&gt;
 &lt;input id=&quot;submit&quot; type=&quot;button&quot; value=&quot;Convert&quot; /&gt;
 &lt;/div&gt;
 &lt;div id=&quot;results&quot; style=&quot;padding: 2px; margin: 5px;&quot;&gt;
 &lt;/div&gt;
&lt;/div&gt;</pre></p>
<p>and add the following Javascript :-</p>
<p><pre class="brush: plain;">

&lt;script src=&quot;jquery-1.6.2.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
 &lt;script type=&quot;text/javascript&quot;&gt;
 $(document).ready(function() {
 $('#submit').click(function() {
 var amount = $('#a').val();
 var from = $('#from').val();
 var to = $('#to').val();
 var params = &quot;http://www.google.com/finance/converter?a=&quot; + amount + &quot;&amp;from=&quot; + from + &quot;&amp;to=&quot; + to;

$.ajax({ type: &quot;POST&quot;,
 url: &quot;WebService.asmx/Convert&quot;,
 data: &quot;{amount:&quot; + amount + &quot;,fromCurrency:'&quot; + from + &quot;',toCurrency:'&quot; + to + &quot;'}&quot;,
 contentType: &quot;application/json; charset=utf-8&quot;,
 dataType: &quot;json&quot;,
 success: function(data) {
 $('#results').html(data.d);
 }
 });
 });
 });
 &lt;/script&gt;</pre></p>
<p>Hope this helps</p>
<p>Good Luck</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yasserzaid.wordpress.com/2376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yasserzaid.wordpress.com/2376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yasserzaid.wordpress.com/2376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yasserzaid.wordpress.com/2376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yasserzaid.wordpress.com/2376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yasserzaid.wordpress.com/2376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yasserzaid.wordpress.com/2376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yasserzaid.wordpress.com/2376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yasserzaid.wordpress.com/2376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yasserzaid.wordpress.com/2376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yasserzaid.wordpress.com/2376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yasserzaid.wordpress.com/2376/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yasserzaid.wordpress.com/2376/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yasserzaid.wordpress.com/2376/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2376&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yasserzaid.wordpress.com/2011/12/03/ajax-currency-converter-with-asp-net-jquery-and-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/407eb18b56d92aae4bd303a975f2e875?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yasserzaid</media:title>
		</media:content>
	</item>
		<item>
		<title>Enlarge Image on MouseOver in ASP.Net using JQuery</title>
		<link>http://yasserzaid.wordpress.com/2011/12/03/enlarge-image-on-mouseover-in-asp-net-using-jquery/</link>
		<comments>http://yasserzaid.wordpress.com/2011/12/03/enlarge-image-on-mouseover-in-asp-net-using-jquery/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 19:22:51 +0000</pubDate>
		<dc:creator>yasserzaid</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://yasserzaid.wordpress.com/?p=2374</guid>
		<description><![CDATA[Hi all try this example to enlarge image on mouseover in asp.net using jquery If we want to apply it with Image from Database In ASPX Page :- and In code behind :- Hope this helps Good Luck &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2374&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all try this example to enlarge image on mouseover in asp.net using jquery</p>
<p><pre class="brush: plain;">

&lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;Img_Enlarge.aspx.cs&quot; Inherits=&quot;Img_Enlarge&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;&lt;/title&gt;
 &lt;script type=&quot;text/javascript&quot; src=&quot;Scripts/jquery-1.4.1.js&quot;&gt;&lt;/script&gt;
 &lt;style type=&quot;text/css&quot;&gt;
 .thumbnail
 {
 height: 100px;
 width: 100px;
 position: relative;
 }
 .image
 {
 position: relative;
 width: 400px;
 height: 250px;
 }
 &lt;/style&gt;
 &lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
 $(document).ready(function () {
 $(&quot;.thumbnail&quot;).mouseover(function () {
 $(&quot;.thumbnail&quot;).css(&quot;opacity&quot;, &quot;.5&quot;);
 $(this).animate({ opacity: 1.0 });
 $(&quot;#imgContainer&quot;).append(&quot;&lt;img class='image' src='&quot; + $(this).attr(&quot;src&quot;) + &quot;' /&gt;&quot;);

});
 $(&quot;.thumbnail&quot;).mouseout(function () {
 $(&quot;.thumbnail&quot;).css(&quot;opacity&quot;, &quot;1.0&quot;);
 $(&quot;.image&quot;).remove();
 });
 });

 &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
 &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
 &lt;div&gt;
 &lt;/div&gt;
 &lt;/form&gt;
 &lt;div align=&quot;center&quot;&gt;
 &lt;img class=&quot;thumbnail&quot; src=&quot;Images/Tree.jpg&quot; alt=&quot;&quot; /&gt;
 &lt;img class=&quot;thumbnail&quot; src=&quot;Images/dock.jpg&quot; alt=&quot;&quot; /&gt;
 &lt;img class=&quot;thumbnail&quot; src=&quot;Images/forest.jpg&quot; alt=&quot;&quot; /&gt;
 &lt;img class=&quot;thumbnail&quot; src=&quot;Images/garden.jpg&quot; alt=&quot;&quot; /&gt;
 &lt;div id=&quot;imgContainer&quot;&gt;
 &lt;/div&gt;
 &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></p>
<p>If we want to apply it with Image from Database</p>
<p>In ASPX Page :-</p>
<p><pre class="brush: plain;">

&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;AJAX Photo Gallery&lt;/title&gt;
 &lt;script src=&quot;jquery-1.1.4.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
 &lt;style type=&quot;text/css&quot;&gt;
 .thumbnail
 {
 height: 100px;
 width: 100px;
 position: relative;
 }
 .image
 {
 position: relative;
 width: 400px;
 height: 250px;
 }
 &lt;/style&gt;
 &lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
 $(document).ready(function () {
 $(&quot;.thumbnail&quot;).mouseover(function () {
 $(&quot;.thumbnail&quot;).css(&quot;opacity&quot;, &quot;.5&quot;);
 $(this).animate({ opacity: 1.0 });
 $(&quot;#imgContainer&quot;).append(&quot;&lt;img class='image' src='&quot; + $(this).attr(&quot;src&quot;) + &quot;' /&gt;&quot;);
 });
 $(&quot;.thumbnail&quot;).mouseout(function () {
 $(&quot;.thumbnail&quot;).css(&quot;opacity&quot;, &quot;1.0&quot;);
 $(&quot;.image&quot;).remove();
 });
 });
 &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
 &lt;asp:Repeater ID=&quot;Repeater1&quot; runat=&quot;server&quot;&gt;
 &lt;ItemTemplate&gt;
 &lt;img src='&lt;%# Eval(&quot;ImagePath&quot;) %&gt;' alt=&quot;&quot; class=&quot;thumbnail&quot; /&gt;
 &lt;/ItemTemplate&gt;
 &lt;/asp:Repeater&gt;
 &lt;div id=&quot;imgContainer&quot;&gt;
 &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></p>
<p>and In code behind :-</p>
<p><pre class="brush: plain;">

protected void Page_Load(object sender, EventArgs e)
 {
 var list = (new[] { new { ImagePath = &quot;http://sandbox.scriptiny.com/slideshow/thumbs/1.jpg&quot;, Value = &quot;1&quot; } }).ToList();
 list.Add(new { ImagePath = &quot;http://sandbox.scriptiny.com/slideshow/thumbs/2.jpg&quot;, Value = &quot;2&quot; });
 list.Add(new { ImagePath = &quot;http://sandbox.scriptiny.com/slideshow/thumbs/3.jpg&quot;, Value = &quot;3&quot; });
 list.Add(new { ImagePath = &quot;http://sandbox.scriptiny.com/slideshow/thumbs/4.jpg&quot;, Value = &quot;4&quot; });
 list.Add(new { ImagePath = &quot;http://sandbox.scriptiny.com/slideshow/thumbs/5.jpg&quot;, Value = &quot;5&quot; });
 Repeater1.DataSource = list;
 Repeater1.DataBind();
 }</pre></p>
<p>Hope this helps</p>
<p>Good Luck</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yasserzaid.wordpress.com/2374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yasserzaid.wordpress.com/2374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yasserzaid.wordpress.com/2374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yasserzaid.wordpress.com/2374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yasserzaid.wordpress.com/2374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yasserzaid.wordpress.com/2374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yasserzaid.wordpress.com/2374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yasserzaid.wordpress.com/2374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yasserzaid.wordpress.com/2374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yasserzaid.wordpress.com/2374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yasserzaid.wordpress.com/2374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yasserzaid.wordpress.com/2374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yasserzaid.wordpress.com/2374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yasserzaid.wordpress.com/2374/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2374&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yasserzaid.wordpress.com/2011/12/03/enlarge-image-on-mouseover-in-asp-net-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/407eb18b56d92aae4bd303a975f2e875?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yasserzaid</media:title>
		</media:content>
	</item>
		<item>
		<title>Get All Logged in Users using Membership</title>
		<link>http://yasserzaid.wordpress.com/2011/11/17/get-all-logged-in-users-using-membership/</link>
		<comments>http://yasserzaid.wordpress.com/2011/11/17/get-all-logged-in-users-using-membership/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 18:06:23 +0000</pubDate>
		<dc:creator>yasserzaid</dc:creator>
				<category><![CDATA[ASP.Net]]></category>

		<guid isPermaLink="false">http://yasserzaid.wordpress.com/?p=2371</guid>
		<description><![CDATA[Hi all, try this example to Get All logged in users using Membership :- First Add Gridview Control in your page and in code behind add this code which will bind Gridview to Online Users :- Hope this helps Good Luck<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2371&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>try this example to Get All logged in users using Membership :-</p>
<p>First Add Gridview Control in your page and in code behind add this code which will bind Gridview to Online Users :-</p>
<p><pre class="brush: plain;">  ArrayList list = new ArrayList();
        MembershipUserCollection allUsers = Membership.GetAllUsers();
        MembershipUserCollection filteredUsers = new MembershipUserCollection(); 
        bool isOnline = true;
        foreach (MembershipUser user in allUsers)
        {
            // if user is currently online, add to gridview list
            if (user.IsOnline == isOnline)
            {
                filteredUsers.Add(user);
                list.Add(user);
            } 
            gvwonlineusers.DataSource = list;
            gvwonlineusers.DataBind();
        }</pre></p>
<p>Hope this helps</p>
<p>Good Luck</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yasserzaid.wordpress.com/2371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yasserzaid.wordpress.com/2371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yasserzaid.wordpress.com/2371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yasserzaid.wordpress.com/2371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yasserzaid.wordpress.com/2371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yasserzaid.wordpress.com/2371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yasserzaid.wordpress.com/2371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yasserzaid.wordpress.com/2371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yasserzaid.wordpress.com/2371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yasserzaid.wordpress.com/2371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yasserzaid.wordpress.com/2371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yasserzaid.wordpress.com/2371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yasserzaid.wordpress.com/2371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yasserzaid.wordpress.com/2371/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yasserzaid.wordpress.com&amp;blog=3700227&amp;post=2371&amp;subd=yasserzaid&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yasserzaid.wordpress.com/2011/11/17/get-all-logged-in-users-using-membership/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/407eb18b56d92aae4bd303a975f2e875?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yasserzaid</media:title>
		</media:content>
	</item>
	</channel>
</rss>
