<?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>Mohamed Abdelghani Blog</title>
	<atom:link href="http://mabdelghani.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mabdelghani.wordpress.com</link>
	<description></description>
	<lastBuildDate>Thu, 05 Jan 2012 08:29:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mabdelghani.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Mohamed Abdelghani Blog</title>
		<link>http://mabdelghani.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mabdelghani.wordpress.com/osd.xml" title="Mohamed Abdelghani Blog" />
	<atom:link rel='hub' href='http://mabdelghani.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Ajax with jQuery</title>
		<link>http://mabdelghani.wordpress.com/2008/12/07/ajax-with-jquery/</link>
		<comments>http://mabdelghani.wordpress.com/2008/12/07/ajax-with-jquery/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 13:17:33 +0000</pubDate>
		<dc:creator>Mohamed Abdelghani</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[ASP.Net]]></category>

		<guid isPermaLink="false">http://mabdelghani.wordpress.com/?p=40</guid>
		<description><![CDATA[jQuery has gained a lot of popularity as a Javascript framework that simplifies working with Document Object Model (DOM) and Ajax for web applications. jQuery provides a number of functions that makes dealing with Ajax easier and more powerful . You can download jQuery framework from here, rename the downloaded file to jquery.js . In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mabdelghani.wordpress.com&amp;blog=3163872&amp;post=40&amp;subd=mabdelghani&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>jQuery has gained a lot of popularity as a Javascript framework that simplifies working with Document Object Model (DOM) and Ajax for web applications. jQuery provides a number of functions that makes dealing with Ajax easier and more powerful .</p>
<p>You can download jQuery framework from <a href="http://docs.jquery.com/Downloading_jQuery">here</a>, rename the downloaded file to jquery.js .</p>
<p>In the following example, We will take username from the user as an input, then submit this data to the server which retrieves the user details as a response.</p>
<p>The client page :</p>
<p><pre class="brush: xml;">
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head runat=&quot;server&quot;&gt;
    &lt;title&gt;Demonstrating Ajax with jQuery&lt;/title&gt;
    &lt;script src=&quot;scripts/jquery.js&quot; type=&quot;text/javascript&quot; &gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
     &lt;form id=&quot;MyForm&quot; &gt;
&lt;div id=&quot;inputDiv&quot;&gt;
        &lt;b&gt; Username : &lt;/b&gt;
        &lt;input type=&quot;text&quot; id=&quot;tbUsername&quot; /&gt;
&lt;a href=&quot;#&quot; id=&quot;uLink&quot;&gt;Get my info !&lt;/a&gt;&lt;/div&gt;
&lt;div id=&quot;outputDiv&quot; style=&quot;display:none;&quot;&gt;&lt;/div&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    $(document).ready(function() {
        $(&quot;#uLink&quot;).click(function() {
            $.post(&quot;UserData.aspx?Func=RetrieveUserInfo&quot;,
            { username: $(&quot;#tbUsername&quot;).val() }, function(output) {
                $(&quot;#outputDiv&quot;).html(output);
                $(&quot;#outputDiv&quot;).css(&quot;display&quot;, &quot;block&quot;);
            });
        });
    });
&lt;/script&gt;
&lt;/html&gt;

</pre></p>
<p>Our simple client page has a single HTML text input where the user enters his username then on clicking on <strong>Get My info</strong> , the username data is sent to the server and the retrieved result will be added to the outputDiv div element which is initially hidden.</p>
<p>let&#8217;s take a look at our code, first we have to add a reference to our jquery file which I added in a folder named scripts:</p>
<p><pre class="brush: xml;">
&lt;script src=&quot;scripts/jquery.js&quot; type=&quot;text/javascript&quot; &gt;&lt;/script&gt;
</pre></p>
<p>Let&#8217;s now see how jQuery simplifies working with DOM and Ajax:</p>
<p><pre class="brush: jscript;">
$(document).ready(function() {
        $(&quot;#uLink&quot;).click(function() {
            $.post(&quot;UserData.aspx?Func=RetrieveUserInfo&quot;,
            { username: $(&quot;#tbUsername&quot;).val() }, function(output) {
                $(&quot;#outputDiv&quot;).html(output);
                $(&quot;#outputDiv&quot;).css(&quot;display&quot;, &quot;block&quot;);
            });
        });
    });
</pre></p>
<p><strong>$(document).ready()</strong> is the event handler that binds a function to be executed when the document is ready to be manipulated.</p>
<p><strong>$(&#8220;#uLink&#8221;).click()</strong> finds the element with id &#8220;uLink&#8221; and binds a function whenever this anchor is clicked.</p>
<p><strong>$.post()</strong> is one of the jQuery functions that sends POST request to the server.</p>
<p>Let&#8217;s take a look on its arguments:</p>
<p><strong>$.post(url,data,callback)</strong></p>
<p>-url : is the url of the server page where the function sends the POST request. In our example it&#8217;s <strong>UserData.aspx?Func=RetrieveUserInfo</strong></p>
<p>-data : is the data to be sent in the request in the form of key/value pairs .here we provide a single key/value pair where the key is <strong>username </strong>and its value is the value of the <strong>tbUsername </strong>input element.</p>
<p>-callback : is the function to executed only if the response from the server is successful .<br />
Our callback function loads the response text to <strong>outputDiv </strong>div element and changes its display style to block to be visible.</p>
<p>Our <strong>UserData.aspx</strong> is quite simple,it checks the <strong>Func </strong>querystring and if it matches the <strong>RetrieveUserInfo </strong>operation, it executes the appropriate method.</p>
<p><pre class="brush: csharp;">
protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString[&quot;Func&quot;] != null &amp;&amp; Request.QueryString[&quot;Func&quot;] != &quot;&quot;)
        {
            if (Request.QueryString[&quot;Func&quot;] == &quot;RetrieveUserInfo&quot;)
            {
                RetrieveUserInfo();
            }
            Response.End();
        }
    }

    private void RetrieveUserInfo()
    {
        string UserName=Request.Params[&quot;username&quot;];
        string userDetails = &quot;&quot;;
        if (UserName != null &amp;&amp; UserName != &quot;&quot;)
        {
            if (UserName == &quot;Mohamed.Abdelghani&quot;)
            {
                userDetails = &quot;&lt;B&gt;First Name&lt;/B&gt; : Mohamed
&quot;;
                userDetails += &quot;&lt;B&gt;Last Name&lt;/B&gt; : Abdelghani
&quot;;
                userDetails += &quot;&lt;B&gt;Location&lt;/B&gt; : Cairo
&quot;;
            }
            else
            {
                userDetails = &quot;&lt;B&gt;First Name&lt;/B&gt; : FN
&quot;;
                userDetails += &quot;&lt;B&gt;Last Name&lt;/B&gt; : LN
&quot;;
                userDetails += &quot;&lt;B&gt;Location&lt;/B&gt; :  LOC
&quot;;
            }
        }
        else
        {
            userDetails = &quot;Please provide correct username !&quot;;
        }
        Response.Write(userDetails);
    }

</pre></p>
<p>The <strong>RetrieveUserInfo </strong>method is so simple and just for demonstrating the idea , in a real world scenario, it would be a query from database.</p>
<p>The <strong>username </strong>data sent by the $.post function is added as a parameter to the request,and is retrieved as shown :</p>
<p><pre class="brush: csharp;">
string UserName=Request.Params[&quot;username&quot;];
</pre></p>
<p>Let&#8217;s go back to our client page, Actually jQuery provides a lot of functions to simplify working with Ajax.</p>
<p>Another jQuery function for handling Ajax is  <strong>$(&#8220;#elementID&#8221;).load(url,[data],[callback])</strong> which loads the response data directly to the element.</p>
<p>Our javascript code will change to :</p>
<p><pre class="brush: jscript;">
$(document).ready(function() {
        $(&quot;#uLink&quot;).click(function() {
            $(&quot;#outputDiv&quot;).load(&quot;UserData.aspx?Func=RetrieveUserInfo&quot;,
            { username: $(&quot;#tbUsername&quot;).val() }, function(output) {
                $(this).css(&quot;display&quot;, &quot;block&quot;);

            });
        });
    });
</pre></p>
<p>The most powerful jQuery function for ajax is <strong>$.ajax()</strong> which provides more functionality like error callback that executes when the response is not successful.</p>
<p>Let&#8217;s take a look at our example with $.ajax() function:</p>
<p><pre class="brush: jscript;">
$(document).ready(function() {
        $(&quot;#uLink&quot;).click(function() {
            $.ajax({
                type: &quot;POST&quot;,
                url: &quot;UserData.aspx?Func=RetrieveUserInfo&quot;,
                data: &quot;username=&quot; + $(&quot;#tbUsername&quot;).val(),
                success: function(output) {
                    $(&quot;#outputDiv&quot;).html(output);
                    $(&quot;#outputDiv&quot;).css(&quot;display&quot;, &quot;block&quot;);
                },
                error: function()
                {
                    alert(&quot;Error&quot;);
                }
            });
        });
    });

</pre></p>
<p>For a full list of jQuery functions for Ajax click <a href="http://docs.jquery.com/Ajax">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mabdelghani.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mabdelghani.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mabdelghani.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mabdelghani.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mabdelghani.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mabdelghani.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mabdelghani.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mabdelghani.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mabdelghani.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mabdelghani.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mabdelghani.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mabdelghani.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mabdelghani.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mabdelghani.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mabdelghani.wordpress.com&amp;blog=3163872&amp;post=40&amp;subd=mabdelghani&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mabdelghani.wordpress.com/2008/12/07/ajax-with-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mohamed Abdelghani</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding custom assemblies in SQL Server Reporting Services 2005</title>
		<link>http://mabdelghani.wordpress.com/2008/10/27/adding-custom-assemblies-in-sql-server-reporting-services-2005/</link>
		<comments>http://mabdelghani.wordpress.com/2008/10/27/adding-custom-assemblies-in-sql-server-reporting-services-2005/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 16:09:10 +0000</pubDate>
		<dc:creator>Mohamed Abdelghani</dc:creator>
				<category><![CDATA[Reporting Services]]></category>

		<guid isPermaLink="false">http://mabdelghani.wordpress.com/?p=24</guid>
		<description><![CDATA[SQL Server Reporting Services (SSRS) is a very powerful tool for generating reports and one of the important features in SSRS is adding custom code and custom assemblies to it to add more functionality to your reports. I will work with SSRS 2005 , First I will add custom code to a sample report .Please [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mabdelghani.wordpress.com&amp;blog=3163872&amp;post=24&amp;subd=mabdelghani&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SQL Server Reporting Services (SSRS) is a very powerful tool for generating reports and one of the important features in SSRS is adding custom code and custom assemblies to it to add more functionality to your reports.</p>
<p>I will work with SSRS 2005 , First I will add custom code to a sample report .Please note that you can only add VB.Net code as custom code for your reports.</p>
<p>I will work with Visual Studio.Net 2005 ,so let&#8217;s start and open it and create a new Report Server Project from Business Intelligence Projects and give it a name <strong> ReportSample</strong> and specify a location for the project.</p>
<p>Open your Solution explorer, choose Add New Item , select Report template and give it a name <strong>SampleRpt.rdl</strong> .<br />
Three tabs will be shown for the newly created report: data, Layout and Preview, Open the Layout tab and then go to your menu choose Report-&gt;Report Properties, then choose Code tab from the Report Properties window, write the following in Custom Code Field:</p>
<p><pre class="brush: vb;">
Public Function TestFun(ByVal name As String) as String
 Return &quot;Welcome &quot;&amp; name
End Function
</pre></p>
<div id="attachment_25" class="wp-caption alignnone" style="width: 449px"><a href="http://mabdelghani.files.wordpress.com/2008/10/sample1.jpg"><img class="size-full wp-image-25" title="sample1" src="http://mabdelghani.files.wordpress.com/2008/10/sample1.jpg?w=550" alt="Adding custom code to the report"   /></a><p class="wp-caption-text">Adding custom code to the report</p></div>
<p>After adding the custom code, go back to the report layout and drag textbox from the Toolbox to the report and write the following in the textbox<br />
<strong>=Code.TestFun(&#8220;M. Abdelghani&#8221;)</strong><br />
Choose Preview tab , you shall see Welcome M. Abdelghani</p>
<p>Now we are done with adding custom code to the reports , you can add whatever functions you want by adding it to the custom code field in the report properties  but  what if I don&#8217;t  write my code in VB.Net and what if I already have multiple classes and I want to use their methods in an object oriented way so  it&#8217;s time to know how to add custom assemblies to the report .</p>
<p>Open a new instance of VS.Net 2005 and create a new class library template, I will use C# but you can use any other language, Give it a name <strong>TestLib </strong>and specify its location.</p>
<p>Rename Class1.cs in the solution explorer to <strong>WelcomeClass.cs</strong> then open it , add the following methods to the class.</p>
<p><pre class="brush: csharp;">
public  string  TestFun(string name)
{
return &quot;Welcome &quot;+name;
}
public static string StTestFun(string name)
{
return &quot;Welcome &quot;+name;
}
</pre></p>
<p>I&#8217;ve added both static and instance methods to the class to demonstrate how to call them from the report , now  build the project , go to the project folder and open Bin\Debug folder and copy the <strong>TestLib.dll</strong> file to the following folder:<br />
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies</p>
<p>Please modify the path to match the path where VS.Net 2005 is installed on your machine.</p>
<p>Now we will return back to our <strong>ReportSample </strong>project , go to the menu, choose Report-&gt;Report Properties and then open the References tab . In the References section , add our assembly by clicking the browse button and browse for the  TestLib.dll file , After adding the assembly and in the same window go the Classes section and specify the class name as <strong>TestLib.WelcomeClass</strong> , and choose an instance name to be <strong>MyWelcomeClass</strong>.</p>
<div id="attachment_27" class="wp-caption alignnone" style="width: 448px"><a href="http://mabdelghani.files.wordpress.com/2008/10/sample2.jpg"><img class="size-full wp-image-27" title="sample2" src="http://mabdelghani.files.wordpress.com/2008/10/sample2.jpg?w=550" alt="Adding a reference in the report to the custom assembly"   /></a><p class="wp-caption-text">Adding a reference to the custom assembly in the report </p></div>
<p>We need to add the class name and instance name if we are going to use instance methods , we don&#8217;t need to specify a class name for calling static methods.</p>
<p>Now  go to the layout tab of our report and drag another textbox .  I will call the TestFun instance method ,  to call the instance method in the report you have to specify an instance of <strong>WelcomeClass </strong> class which is already done and we have an instance called <strong>MyWelcomeClass</strong>.</p>
<p>We will write in the new textbox the following :<br />
<strong>=Code.MyWelcomeClass.TestFun(&#8220;M. Abdelghani&#8221;)</strong></p>
<p>Now click on the preview tab of the report  we have another  &#8220;Welcome M. Abdelghani&#8221;  displayed on the report.</p>
<p>So to call an instance method in the report , it will have the following format:<br />
<strong>=Code.ClassInstanceName.InstanceMethodName(ListOfParameters)</strong></p>
<p>Go back to the layout tab and drag another textbox where we will call our static method, we will write in the textbox the following:<br />
<strong>=TestLib.WelcomeClass.StTestFun(&#8220;M. Abdelghani&#8221;)</strong></p>
<p>Then switch back once more to the preview tab , the new textbox will display  &#8220;Welcome M. Abdelghani&#8221;</p>
<p>So to call a static method in the report , it will have the following format</p>
<p><strong>=AssemblyName.ClassName.StaticMethodName(ListOfParameters)</strong></p>
<p>It&#8217;s time now to deploy our report project ,Go to Solution Explorer ,choose the properties of the <strong>ReportSample </strong>project .</p>
<p><em>In the ReportSample Property Pages window :</em><br />
-set the <strong>configuration </strong>to be Production.<br />
-set the <strong>StartItem </strong>to be SampleRpt.rdl.<br />
-set  <strong>TargetServerURL </strong>to your URL of the report server , for me :</p>
<p>http://localhost/ReportServer</p>
<p>Then click Ctrl+F5 to deploy the project, Deployment will fail and the following error is displayed:</p>
<p><em>Error while loading code module: ‘TestLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly &#8216;TestLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&#8217; or one of its dependencies. The system cannot find the file specified.</em></p>
<p>We will go back to the project folder of TestLib class library and copy the TestLib.dll to the following folder<br />
C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\bin</p>
<p>Please modify the path to match the installation folder of SQL Server on your machine.</p>
<p>Now try again to deploy the ReportSample project and  the deployment will succeed.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mabdelghani.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mabdelghani.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mabdelghani.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mabdelghani.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mabdelghani.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mabdelghani.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mabdelghani.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mabdelghani.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mabdelghani.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mabdelghani.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mabdelghani.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mabdelghani.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mabdelghani.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mabdelghani.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mabdelghani.wordpress.com&amp;blog=3163872&amp;post=24&amp;subd=mabdelghani&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mabdelghani.wordpress.com/2008/10/27/adding-custom-assemblies-in-sql-server-reporting-services-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mohamed Abdelghani</media:title>
		</media:content>

		<media:content url="http://mabdelghani.files.wordpress.com/2008/10/sample1.jpg" medium="image">
			<media:title type="html">sample1</media:title>
		</media:content>

		<media:content url="http://mabdelghani.files.wordpress.com/2008/10/sample2.jpg" medium="image">
			<media:title type="html">sample2</media:title>
		</media:content>
	</item>
		<item>
		<title>Missing ASP.Net tab in IIS</title>
		<link>http://mabdelghani.wordpress.com/2008/10/13/missing-aspnet-tab-in-iis/</link>
		<comments>http://mabdelghani.wordpress.com/2008/10/13/missing-aspnet-tab-in-iis/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 11:06:14 +0000</pubDate>
		<dc:creator>Mohamed Abdelghani</dc:creator>
				<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://mabdelghani.wordpress.com/?p=17</guid>
		<description><![CDATA[I realized that the ASP.Net tab no longer exists in IIS after installing VMWare Server. My machine has Windows Server 2003 SP2 and I work mainly with Visual Studio.Net 2003 and 2005. After googling on the web I found this solution: 1- Stop IIS Admin service. 2- Search for Enable32BitAppOnWin64=&#8221;TRUE&#8221; in MetaBase.xml and delete that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mabdelghani.wordpress.com&amp;blog=3163872&amp;post=17&amp;subd=mabdelghani&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I realized that the ASP.Net tab no longer exists in IIS after installing VMWare Server. My machine has Windows Server 2003 SP2 and I work mainly with Visual Studio.Net 2003 and 2005.<br />
After googling on the web I found this <a href="http://monishnagisetty.wordpress.com/2007/06/19/vmware-server-missing-aspnet-tab-in-iis/">solution</a>:</p>
<p>1- Stop IIS Admin service.<br />
2- Search for Enable32BitAppOnWin64=&#8221;TRUE&#8221; in MetaBase.xml and delete that line.<br />
You can find the MetaBase.xml in the following path:<br />
&lt;Your windows folder path&gt;\system32\inetsrv\MetaBase.xml.<br />
3- Restart IIS .</p>
<p>But the issue didn’t get fixed until I run  <strong>aspnet_regiis -i</strong> for both ASP.Net  1.1 and 2  .</p>
<p>And now the ASP.Net tab is back again in IIS.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mabdelghani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mabdelghani.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mabdelghani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mabdelghani.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mabdelghani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mabdelghani.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mabdelghani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mabdelghani.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mabdelghani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mabdelghani.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mabdelghani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mabdelghani.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mabdelghani.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mabdelghani.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mabdelghani.wordpress.com&amp;blog=3163872&amp;post=17&amp;subd=mabdelghani&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mabdelghani.wordpress.com/2008/10/13/missing-aspnet-tab-in-iis/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mohamed Abdelghani</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript Closures</title>
		<link>http://mabdelghani.wordpress.com/2008/09/16/javascript-closures/</link>
		<comments>http://mabdelghani.wordpress.com/2008/09/16/javascript-closures/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 14:10:31 +0000</pubDate>
		<dc:creator>Mohamed Abdelghani</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://mabdelghani.wordpress.com/?p=3</guid>
		<description><![CDATA[One of the features of Javascript is closures , Javascript closures keep the local variables of a function even after it returns. That happens when a function is declared inside another function ,the local variables of the outer function will still exist even after the outer function returns. In the above code snippet , a function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mabdelghani.wordpress.com&amp;blog=3163872&amp;post=3&amp;subd=mabdelghani&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the features of Javascript is closures , Javascript closures keep the local variables of a function even after it returns. That happens when a function is declared inside another function ,the local variables of the outer function will still exist even after the outer function returns.</p>
<p><pre class="brush: jscript;">
function outer()
{
var name=&quot;mabdelghani&quot;;
var inner=function()
{
alert(name);
};
return inner;
}

var testFunction=outer();
alert(testFunction);
testFunction();
</pre></p>
<p>In the above code snippet , a function <strong>inner</strong> is defined inside another function <strong>outer</strong> , the local variable <strong>name</strong> is available even after function outer returns.</p>
<p>The result of the following line</p>
<p><pre class="brush: jscript;">
alert(testFunction);
</pre></p>
<p>is<br />
<strong>function()<br />
{<br />
alert(name);<br />
}<br />
</strong>and the result of the following line</p>
<p><pre class="brush: jscript;">
testFunction();
</pre></p>
<p>is <strong>mabdelghani</strong><br />
Which means that the <strong>inner </strong>function which is referenced by <strong>testFunction </strong>doesn&#8217;t keep a copy of the <strong>name </strong>variable and it references the value of the local variable inside <strong>outer </strong>function though that function is returned.</p>
<p>It&#8217;s not necessary that the local variables in closures are to be declared before the inner function, They can be declared anywhere in the outer function before returning from it.</p>
<p>the following links are useful to know more about Javascript closures<a href="http://www.jibbering.com/faq/faq_notes/closures.html"></p>
<p>http://www.jibbering.com/faq/faq_notes/closures.html</a></p>
<p><a href="http://blog.morrisjohns.com/javascript_closures_for_dummies">http://blog.morrisjohns.com/javascript_closures_for_dummies</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mabdelghani.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mabdelghani.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mabdelghani.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mabdelghani.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mabdelghani.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mabdelghani.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mabdelghani.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mabdelghani.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mabdelghani.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mabdelghani.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mabdelghani.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mabdelghani.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mabdelghani.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mabdelghani.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mabdelghani.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mabdelghani.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mabdelghani.wordpress.com&amp;blog=3163872&amp;post=3&amp;subd=mabdelghani&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mabdelghani.wordpress.com/2008/09/16/javascript-closures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Mohamed Abdelghani</media:title>
		</media:content>
	</item>
	</channel>
</rss>
