<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-25545748</atom:id><lastBuildDate>Fri, 10 May 2013 20:39:01 +0000</lastBuildDate><category>WP8</category><category>Visual Studio</category><category>DotNet Nuke</category><category>Performance</category><category>SQL</category><category>BCS</category><category>MS SQL 2000</category><category>Arabic</category><category>Outlook</category><category>Secure Store Service</category><category>SQL 2005</category><category>Windows</category><category>Administration</category><category>Web API</category><category>Performance Point Server</category><category>Reporting</category><category>MSDN</category><category>PPS</category><category>surface</category><category>Events</category><category>SSIS</category><category>LINQ</category><category>Developer Tools</category><category>Store Apps</category><category>Architecture Design</category><category>jQuery</category><category>Enterpreneurship</category><category>CRM</category><category>VS 2012</category><category>Hyper-V</category><category>SharePoint 2010</category><category>Project Server</category><category>IIS</category><category>SDK</category><category>LDAP</category><category>Team System</category><category>Telerik</category><category>events interview</category><category>SSRS</category><category>VS2010</category><category>asp.net</category><category>Migrate to DNN</category><category>VS</category><category>JavaScript</category><category>DBMS</category><category>Social Media Tools</category><category>IIS 7.0</category><category>Vista</category><category>MVC</category><category>MOSS 2007</category><category>Windows 8</category><category>SQL 2008</category><category>ETL</category><category>asynchronous</category><category>ASP.Net 2.0</category><category>SilverLight</category><category>BIDS</category><category>SQL Server</category><category>Integration</category><category>Security</category><category>SOA</category><category>Azure</category><category>Business Intelligence</category><category>Ajax</category><category>CRM 4.0</category><category>design pattern</category><category>EF 4.0</category><category>SaaS</category><category>70-480</category><category>Groove</category><category>VS2012</category><category>SQL Azure</category><category>Product Review</category><category>Facebook</category><category>HTML5</category><category>CRM 2011</category><category>Office</category><category>SFM</category><category>TFS</category><category>SharePoint</category><category>Jobs</category><category>SharePoint 2013</category><category>Java</category><category>Web 2.0</category><category>API</category><category>SSIS Deployment</category><category>WSS 3.0</category><category>MVC 4</category><category>C#</category><category>DNN Migration 4.x</category><category>Bing</category><category>WCF</category><category>CSS3</category><category>TF</category><category>Biztalk</category><category>BI</category><category>EF</category><category>Tools</category><category>Product Evaluation</category><category>WPF</category><title>Mostafa Elzoghbi</title><description>M.Sc. of Computer Science.
I'm INETA User group lead,SharePoint Speaker, DotNet Boom community Co-Founder www.dotnetboom.net.
I'm a Software Engineer with passion to share my expertise to the community. Follow me on twitter for quick updates: @mostafaelzoghbi</description><link>http://moustafa-arafa.blogspot.com/</link><managingEditor>noreply@blogger.com (Mostafa Elzoghbi)</managingEditor><generator>Blogger</generator><openSearch:totalResults>467</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/MoustafaArafa" /><feedburner:info uri="moustafaarafa" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-7209704946081570802</guid><pubDate>Thu, 09 May 2013 16:40:00 +0000</pubDate><atom:updated>2013-05-09T12:40:52.766-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Reporting</category><category domain="http://www.blogger.com/atom/ns#">VS2012</category><category domain="http://www.blogger.com/atom/ns#">VS2010</category><category domain="http://www.blogger.com/atom/ns#">Integration</category><category domain="http://www.blogger.com/atom/ns#">SSRS</category><category domain="http://www.blogger.com/atom/ns#">SQL</category><title>Microsoft.ReportViewer.Common.dll is missing!</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
If you are having ASP.NET web application that is using Report Viewer control, you should be having the following dlls on your machine:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Microsoft.ReportViewer.WebForms.dll&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Microsoft.ReportViewer.Common.dll&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
The first dll, has to be added as a reference in your bin directory while the second one can&amp;nbsp;reside in GAC.&lt;br /&gt;
&lt;br /&gt;
You probably will be getting an error if you don't have the common dll on your machine, first, first check the GAC:&amp;nbsp; C:\Windows\assembly&lt;br /&gt;
&lt;br /&gt;
If you don't have it, then you need to install Report Viewer Redistributable package. &lt;br /&gt;
&lt;br /&gt;
Here you have to note that the version of the dll will vary based on the installer version.&lt;br /&gt;
&lt;br /&gt;
If you want version 10, you have to install VS 2010 release, here is the link:&lt;br /&gt;
&lt;a href="http://www.microsoft.com/en-ie/download/details.aspx?id=6610"&gt;http://www.microsoft.com/en-ie/download/details.aspx?id=6610&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If you want version &lt;strong&gt;09.00.21022.08&lt;/strong&gt; of the dll, you need to install VS 2008 release:&lt;br /&gt;
&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=6576"&gt;http://www.microsoft.com/en-us/download/details.aspx?id=6576&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
If you want version 8 of the dll, you need to install VS 2005 release:&lt;br /&gt;
&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=6219"&gt;http://www.microsoft.com/en-us/download/details.aspx?id=6219&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope this helps.&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/05/microsoftreportviewercommondll-is.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-1130682588810332419</guid><pubDate>Tue, 07 May 2013 13:01:00 +0000</pubDate><atom:updated>2013-05-09T12:43:19.354-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SSIS</category><category domain="http://www.blogger.com/atom/ns#">VS2012</category><category domain="http://www.blogger.com/atom/ns#">BIDS</category><category domain="http://www.blogger.com/atom/ns#">SSIS Deployment</category><category domain="http://www.blogger.com/atom/ns#">ETL</category><category domain="http://www.blogger.com/atom/ns#">SQL 2008</category><category domain="http://www.blogger.com/atom/ns#">BI</category><category domain="http://www.blogger.com/atom/ns#">SQL Server</category><title>Import SSIS package error 0xC0010014 when importing SSIS package </title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
I'm writing this blog post to share an interesting find while i was developing a SSIS package using VS 2012 with BI tools. Microsoft has release on March this year 2013 BI tools to VS 2012 so you don't need to use VS2010 shell while developing SSIS packages.&lt;br /&gt;
&lt;br /&gt;
The download link for BI tools in VS 2012 is here:&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/library/jj856966.aspx"&gt;http://msdn.microsoft.com/en-us/library/jj856966.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
After i developed my SSIS package and try to deploy it on the SQL Server 2008 R2. I was getting the following error message when importing the package, here is the screen shots:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-VbP-ISp8QWs/UYj4_BTWrkI/AAAAAAAABEU/i2DBd1MCYDs/s1600/CaptureSSIS_1Error.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="110" src="http://3.bp.blogspot.com/-VbP-ISp8QWs/UYj4_BTWrkI/AAAAAAAABEU/i2DBd1MCYDs/s320/CaptureSSIS_1Error.PNG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
If you are using the Management studio you will get this above error without details!, but to get the detailed error message use SSIS Execute Package Utility, you can launch it from SQL SERVER 2008 R2 --&amp;gt; Integration Services --&amp;gt; SSIS execute Package utility&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
.&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-qUxmhSb7LRg/UYj5BPsqFWI/AAAAAAAABEc/yBd5rIilcJw/s1600/CaptureSSIS_2Error.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="212" src="http://3.bp.blogspot.com/-qUxmhSb7LRg/UYj5BPsqFWI/AAAAAAAABEc/yBd5rIilcJw/s320/CaptureSSIS_2Error.PNG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
If you read the actual error message it says:&lt;br /&gt;
Package Migration from Version 6 to Version 3 failed with error 0xC001700A&lt;br /&gt;
&lt;br /&gt;
Basically the Version that i used to develop the SSIS is higher than the recognized version by the SQL Server 2008 R2. To fix this problem you need to change the package version from 6 to 3 and it works like a charm!&lt;br /&gt;
&lt;br /&gt;
Follow the following steps:&lt;br /&gt;
1) Right clich on our dtsx file and select edit, Open the file in notepad.&lt;br /&gt;
2) Look for:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &lt;dts:property br=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DTS:Name="PackageFormatVersion"&amp;gt;6&lt;/dts:property&gt;&lt;br /&gt;
&lt;br /&gt;
3) Change the number 6 for the version to 3 and save the file.&lt;br /&gt;
4) Select the File System File from the SSIS execute utility and you will not get any errors!&lt;br /&gt;
6) From the management studio you can import&amp;nbsp;the SSIS&amp;nbsp;with no errors.&lt;br /&gt;
&lt;br /&gt;
Hope this helps.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: red;"&gt;[Update 05/09/2013] You will run through other issues if you used VS 2012 SQL Data tools against SQL Server 2008 R2, one of them is the sql job agent will fail to run the imported job due to the xml format mismatch while executing the package. So, it is recommended to develop any SSIS SQL2008 R2 components using the old BIDS VS 2008.&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-ME&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/05/import-ssis-package-error-0xc0010014.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-VbP-ISp8QWs/UYj4_BTWrkI/AAAAAAAABEU/i2DBd1MCYDs/s72-c/CaptureSSIS_1Error.PNG" height="72" width="72" /><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-6422577905629074754</guid><pubDate>Mon, 06 May 2013 16:00:00 +0000</pubDate><atom:updated>2013-05-10T16:39:01.896-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SOA</category><category domain="http://www.blogger.com/atom/ns#">IIS</category><category domain="http://www.blogger.com/atom/ns#">Web API</category><category domain="http://www.blogger.com/atom/ns#">VS 2012</category><category domain="http://www.blogger.com/atom/ns#">WCF</category><title>How to convert your WCF Service Library to WCF Service Application</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
If you have a WCF Service Library Project in VS 2012 and after you&amp;nbsp;wrote some functional code and then you decided to change the project from a WCF Service Library that doesn't contain web configurations and can't be hosted in the IIS to a WCF service application that&amp;nbsp;is hosted in IIS, this blog post will tell you how to do it in details.&lt;br /&gt;
&lt;br /&gt;
The WCF service library doesn't contains the Web Configuration Tab when you open the project configuration (By right click on the project --&amp;gt; Project Properties) and it has only app.config file and not web.config file because it is not suppose to be hosted in the IIS.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;strong&gt;To change your WCF service library to WCF Service Application:&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1) Right click on the wcf project and click on unload project.&lt;br /&gt;
2) After the project is being unloaded, right click on the wcf project and click edit the project configuration file ".csproj".&lt;br /&gt;
3) Look for the following attribute &lt;projecttypeguids&gt;: &lt;/projecttypeguids&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;projecttypeguids&gt;{3D9AD99F-2412-4246-B90B-4EAA41C64699};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}&lt;/projecttypeguids&gt;&lt;br /&gt;
&lt;br /&gt;
Change the project type to the following:&lt;br /&gt;
&lt;br /&gt;
&lt;projecttypeguids&gt;{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}&lt;/projecttypeguids&gt;&lt;br /&gt;
&lt;br /&gt;
4) Reload the project.&lt;br /&gt;
5) Open the project configuration, you will be able to see the web tab to configure the wcf service.&lt;br /&gt;
6) Add web.cofig file to your project.&lt;br /&gt;
7) Copy any necassary keys from the app.config to the web.config.&lt;br /&gt;
8) Rename or delete the app.config file.&lt;br /&gt;
9) Make sure that you have correct port and end point configuration in the web.config.&lt;br /&gt;
10) Clean and Build your project. At this point the project is build with no errors.&lt;br /&gt;
&lt;br /&gt;
After you run the project you will see that there is no .svc file that is the service application file used to call the WCF. But you need to have one in your project.&lt;br /&gt;
&lt;br /&gt;
11) First Rename your Service.cs and IService.cs.&lt;br /&gt;
12) Add new WCF Service svc to your project and name it as you like.&lt;br /&gt;
13) Copy the code you have in the Service Class and the interface to the newly created service.&lt;br /&gt;
14) Compile the project.&lt;br /&gt;
15) Run the WCF Service application and now your WCF can be accessed through the web.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: &lt;br /&gt;
This works with VS 2012 project templates with Update 2 as well.&lt;br /&gt;
&lt;br /&gt;
Hope this helps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/05/how-to-convert-your-wcf-service-library.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-1738544288935780259</guid><pubDate>Tue, 16 Apr 2013 14:49:00 +0000</pubDate><atom:updated>2013-04-16T15:58:16.378-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">MVC 4</category><category domain="http://www.blogger.com/atom/ns#">asp.net</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">VS 2012</category><title>Few tips to know when considering developing MVC4 Applications in VS 2012   - Part 1</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
I'm writing this blog post for ASP.NET web forms developers who have been working with Web forms for years and they are hesitant to develop MVC 4 ASP.NET applications; maybe for different reasons either it is not easy to understand&amp;nbsp;or there are a lot of things you need to wrap your head around&amp;nbsp;to get started&amp;nbsp;building your first business application!&lt;br /&gt;
&lt;br /&gt;
So i decided to write these series of posts,I will try to makes it easier for you to get started in MVC 4 applications&amp;nbsp;with few tips that will help you know how it works and some other considerations to think about.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;1) Basic Concepts of the MVC design pattern:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
In MVC design pattern implementation by Microsoft, any page you see in the browser is a view, it can be a page or a user control. it can be aspx,ascx or cshtml. MVC has introduced cshtml which is the new render engine called &lt;span style="color: red;"&gt;RAZOR&lt;/span&gt;,&amp;nbsp;this engine allows you to wirte cs code within your html elements by prefexing any&amp;nbsp;C# Code by @ symbol. For example:&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;div&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;@Html.ActionLink(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;"Home"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;"Index"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;"Home"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;div&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;The above line is rendered by Razor as a link with a caption called Home and Index is the method will be called in the Home Controller.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;2) Controllers:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
All controllers in MVC 4&amp;nbsp;are stored under a folder called controllers, if you want to create a new controller, right click on this folder and select add new controller and the new controller will be created with all functions if you picked the model "Table" you want to target for this controller. &lt;br /&gt;
All controllers MUST have Controller suffix.&lt;br /&gt;
Usually you have one controller per 1 entity, but you can design your controllers as you want.&lt;br /&gt;
Any action in any view should be mapped to a method in a controller, and the controller takes care of the execution and return the results to the view. That's why you see all controllers can return a view that could be a page or partial page, file, redirect, or Empty.&lt;br /&gt;
Check out this link for the types of result you could get from any controller method call:&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/library/system.web.mvc.actionresult(v=vs.108).aspx"&gt;http://msdn.microsoft.com/en-us/library/system.web.mvc.actionresult(v=vs.108).aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;strong&gt;3) No Master page in the MVC4 web project:&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
You will not see a default master page in your project, the general look and feel in the project is controlled by a "Shared View", This Shared View acts as Master Page in the web forms.&lt;br /&gt;
&lt;br /&gt;
If you want to modify the shared view, it is under Shared View Folder --&amp;gt; _layout.cshtml&lt;br /&gt;
&lt;br /&gt;
You still can add a master page to your project&amp;nbsp; and link all your views to it.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;4) Connecting&amp;nbsp;to a database/ Creating your Model:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
Model is your database/datasource file in the project. First thing you should&amp;nbsp;do before creating any controllers or views is to create&amp;nbsp;your entity model&amp;nbsp;for your project. &lt;br /&gt;
There is no change in this regard. Just add any data entity file that you are&amp;nbsp;familiar with&amp;nbsp;such as: Entity Framework, Entity Data&amp;nbsp;Model, LINQ or SQL Compact Db files.&lt;br /&gt;
&lt;br /&gt;
After creating your model, you can add your controllers since the MVC 4 gives your the ability to create all your CRUD operations once you pick your entity/model and context "dbml or any data source file"&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I want to keep it short and simple, I will keep posting more parts in details for building your first MVC 4 application.&lt;br /&gt;
&lt;br /&gt;
Thanks and drop a line if you have any questions or feedback!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Mostafa &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/04/few-tips-to-know-when-considering.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-5907193534670539922</guid><pubDate>Fri, 12 Apr 2013 14:31:00 +0000</pubDate><atom:updated>2013-04-12T10:35:40.544-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">API</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">Web 2.0</category><category domain="http://www.blogger.com/atom/ns#">WCF</category><category domain="http://www.blogger.com/atom/ns#">Developer Tools</category><title>WCF Error: The underlying connection was closed: The connection was closed unexpectedly.</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
While i was developing a WCF service API for my enterprise application,&amp;nbsp;I got an error while i'm calling a search function in the WCF. The WCF function is calling a stored procedure.&lt;br /&gt;
&lt;br /&gt;
I tested the stored procedure and there is no issues with it at all, and the error was being thrown in my web when the data is being serialized and sent over the network.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;strong&gt;The error message:&lt;/strong&gt;&lt;/u&gt; &lt;br /&gt;
&lt;br /&gt;
The underlying connection was closed: The connection was closed unexpectedly.&lt;br /&gt;
&lt;br /&gt;
The point here is that i have other functions in the WCF work perfectly with no errors but only the search function is throwing an exception.&lt;br /&gt;
&lt;br /&gt;
So, it is not configuration thing, it is something else i want to nail it down!&lt;br /&gt;
&lt;br /&gt;
The only way to get the actual error message from calling a WCF service, is to install a tool called "Microsoft Service Trace Viewer" . Here is the download link:&lt;br /&gt;
&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=3138"&gt;http://www.microsoft.com/en-us/download/details.aspx?id=3138&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After you install it, add the following section in the web.config before the closing of the configuration attribue:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="container"&gt;
&lt;div class="line number1 index0 alt2"&gt;
&lt;code class="xml plain"&gt;&amp;lt;&lt;/code&gt;&lt;code class="xml keyword"&gt;system.diagnostics&lt;/code&gt;&lt;code class="xml plain"&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number2 index1 alt1"&gt;
&lt;code class="xml plain"&gt;&amp;lt;&lt;/code&gt;&lt;code class="xml keyword"&gt;sources&lt;/code&gt;&lt;code class="xml plain"&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number4 index3 alt1"&gt;
&lt;code class="xml spaces"&gt;  &lt;/code&gt;&lt;code class="xml plain"&gt;&amp;lt;&lt;/code&gt;&lt;code class="xml keyword"&gt;source&lt;/code&gt; &lt;code class="xml color1"&gt;name&lt;/code&gt;&lt;code class="xml plain"&gt;=&lt;/code&gt;&lt;code class="xml string"&gt;"System.ServiceModel"&lt;/code&gt; &lt;code class="xml color1"&gt;switchValue&lt;/code&gt;&lt;code class="xml plain"&gt;=&lt;/code&gt;&lt;code class="xml string"&gt;"Information, ActivityTracing"&lt;/code&gt; &lt;code class="xml color1"&gt;propagateActivity&lt;/code&gt;&lt;code class="xml plain"&gt;=&lt;/code&gt;&lt;code class="xml string"&gt;"true"&lt;/code&gt;&lt;code class="xml plain"&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number5 index4 alt2"&gt;
&lt;code class="xml spaces"&gt;   &lt;/code&gt;&lt;code class="xml plain"&gt;&amp;lt;&lt;/code&gt;&lt;code class="xml keyword"&gt;listeners&lt;/code&gt;&lt;code class="xml plain"&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number6 index5 alt1"&gt;
&lt;code class="xml spaces"&gt;    &lt;/code&gt;&lt;code class="xml plain"&gt;&amp;lt;&lt;/code&gt;&lt;code class="xml keyword"&gt;add&lt;/code&gt; &lt;code class="xml color1"&gt;name&lt;/code&gt;&lt;code class="xml plain"&gt;=&lt;/code&gt;&lt;code class="xml string"&gt;"traceListener"&lt;/code&gt; &lt;code class="xml color1"&gt;type&lt;/code&gt;&lt;code class="xml plain"&gt;=&lt;/code&gt;&lt;code class="xml string"&gt;"System.Diagnostics.XmlWriterTraceListener"&lt;/code&gt; &lt;code class="xml color1"&gt;initializeData&lt;/code&gt;&lt;code class="xml plain"&gt;= &lt;/code&gt;&lt;code class="xml string"&gt;"traces.svclog"&lt;/code&gt; &lt;code class="xml plain"&gt;/&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number7 index6 alt2"&gt;
&lt;code class="xml spaces"&gt;   &lt;/code&gt;&lt;code class="xml plain"&gt;&amp;lt;/&lt;/code&gt;&lt;code class="xml keyword"&gt;listeners&lt;/code&gt;&lt;code class="xml plain"&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number8 index7 alt1"&gt;
&lt;code class="xml spaces"&gt;  &lt;/code&gt;&lt;code class="xml plain"&gt;&amp;lt;/&lt;/code&gt;&lt;code class="xml keyword"&gt;source&lt;/code&gt;&lt;code class="xml plain"&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number9 index8 alt2"&gt;
&lt;code class="xml spaces"&gt; &lt;/code&gt;&lt;code class="xml plain"&gt;&amp;lt;/&lt;/code&gt;&lt;code class="xml keyword"&gt;sources&lt;/code&gt;&lt;code class="xml plain"&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number10 index9 alt1"&gt;
&lt;code class="xml plain"&gt;&amp;lt;/&lt;/code&gt;&lt;code class="xml keyword"&gt;system.diagnostics&lt;/code&gt;&lt;code class="xml plain"&gt;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Run your applicaiton, and execute the action that throws the exception then do the following:&lt;br /&gt;
1) Open the following path: &lt;br /&gt;
C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin&lt;br /&gt;
&lt;br /&gt;
2) Double click on SvcTraceViewer.exe tool&lt;br /&gt;
&lt;br /&gt;
3) From the File Menu, Click on Open.&lt;br /&gt;
&lt;br /&gt;
4) Navigate to your project folder and you will find a file called: &lt;span style="font-family: Courier New;"&gt;traces.svclog, select this file.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Courier New;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Courier New;"&gt;5) Check the actual WCF call that causes the error from the activity window and then see the details of the error in the right pane.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Courier New;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/--13NdsmU5l0/UWgbtWvf2WI/AAAAAAAABD8/9VEUyHGGjG4/s1600/SrvTraceCapture.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="194" src="http://3.bp.blogspot.com/--13NdsmU5l0/UWgbtWvf2WI/AAAAAAAABD8/9VEUyHGGjG4/s320/SrvTraceCapture.PNG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-family: Courier New;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Courier New;"&gt;Hope this helps.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/04/wcf-error-underlying-connection-was.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/--13NdsmU5l0/UWgbtWvf2WI/AAAAAAAABD8/9VEUyHGGjG4/s72-c/SrvTraceCapture.PNG" height="72" width="72" /><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-4443217057764562113</guid><pubDate>Fri, 29 Mar 2013 17:01:00 +0000</pubDate><atom:updated>2013-03-29T13:01:04.179-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Administration</category><category domain="http://www.blogger.com/atom/ns#">Architecture Design</category><category domain="http://www.blogger.com/atom/ns#">CRM 2011</category><category domain="http://www.blogger.com/atom/ns#">design pattern</category><category domain="http://www.blogger.com/atom/ns#">Integration</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">Developer Tools</category><title>How to enable MS Dynamics CRM 2011 to integrate with Windows Azure</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
I'm writing this article to explain a good architecture design&amp;nbsp;for integrating your Microsoft Dynamics CRM 2011 with windows azure.&lt;br /&gt;
&lt;br /&gt;
Let's&amp;nbsp; say you have on-premise CRM 2011 instance, and you want to use Windows Azure Blob storage&amp;nbsp;to store Customer's documents on the cloud. How would you do that ? &lt;br /&gt;
&lt;br /&gt;
The example i'm giving&amp;nbsp;is applicable to any other windows azure service such as: SQL Azure, Mobile Notification Service, AppFabric Features..etc.&lt;br /&gt;
&lt;br /&gt;
Since Windows azure is a scalable Cloud platform, you can easily integration your CRM 2011 with the windows azure on the cloud in&amp;nbsp;&lt;u&gt;4 main steps&lt;/u&gt;.&lt;br /&gt;
&lt;br /&gt;
Before going through the details, I'd like to explain the architecture of the proposed solution.&lt;br /&gt;
&lt;br /&gt;
MS CRM 2011 has  a backend windows service called "CRM Asynchronous Service" this is the component that will be in charge to communicate&amp;nbsp;with the windows azure through a service bus.&lt;br /&gt;
&lt;br /&gt;
MS CRM 2011 has 2 types of plugins, out-of-the box (OOB) and custom plugins. The OOB plugins runs&amp;nbsp; with full trust but the custom plugins runs with partial trust, and we will develop a custom plugin to connect to a listener through azure service bus.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;The solution has the following components:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
1) Configure CRM to be Windows Azure Aware.&lt;br /&gt;
&lt;br /&gt;
2) We need to configure a service bus on Azure&amp;nbsp;with an endpoint to communicate with the CRM server.&lt;br /&gt;
&lt;br /&gt;
3)&amp;nbsp;A listener hosted in Windows Azure to communicate with the asyncrhounous service, specificially listening to CRM assembly "&lt;a href="http://technet.microsoft.com/en-us/library/microsoft.xrm.sdk.aspx" target="_blank"&gt;Microsoft.Xrm.Sdk&lt;/a&gt;"&amp;nbsp;with RemoteExecuteContext defined. so we need to develop a listener and deploy it on windows azure. &lt;br /&gt;
&lt;br /&gt;
4) A custom CRM Plugin to communicate with the Windows Azure Listener.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;How To accomplish, configure and develop this solution:&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1) To accomplish step 1 , "Configure CRM for Integration with Windows Azure" :&lt;br /&gt;
&lt;a href="http://technet.microsoft.com/en-us/library/gg328249.aspx"&gt;http://technet.microsoft.com/en-us/library/gg328249.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2) To accomplish step 2, "Configure Windows Azure ACS on Azure" :&lt;br /&gt;
&lt;a href="http://technet.microsoft.com/en-us/library/jj863635.aspx"&gt;http://technet.microsoft.com/en-us/library/jj863635.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
3) How to write a windows azure listener:&lt;br /&gt;
&lt;a href="http://technet.microsoft.com/en-us/library/gg309615.aspx"&gt;http://technet.microsoft.com/en-us/library/gg309615.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
C# Sample code - Listener: &lt;br /&gt;
&lt;a href="http://technet.microsoft.com/en-us/library/gg309657.aspx"&gt;http://technet.microsoft.com/en-us/library/gg309657.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
4) To accomplish step 4, "How to write Azure Aware CRM Plugin":&lt;br /&gt;
&lt;a href="http://technet.microsoft.com/en-us/library/gg328194.aspx"&gt;http://technet.microsoft.com/en-us/library/gg328194.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Note, if you want to develop a custom workflow activity:&lt;br /&gt;
&lt;a href="http://technet.microsoft.com/en-us/library/gg327854.aspx"&gt;http://technet.microsoft.com/en-us/library/gg327854.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Registration step - FINAL:&lt;br /&gt;
&lt;a href="http://technet.microsoft.com/en-us/library/gg328524.aspx"&gt;http://technet.microsoft.com/en-us/library/gg328524.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
**Here is some sample code for all what i mentioned above "listeners &amp;amp; plugins":&lt;br /&gt;
&lt;a href="http://technet.microsoft.com/en-us/library/gg334712.aspx"&gt;http://technet.microsoft.com/en-us/library/gg334712.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Note: you should be having CRM SDK and Windows Azure SDK 1.7&amp;nbsp;or higher&amp;nbsp;to be able to exercise and develop the solution.&lt;br /&gt;
&lt;br /&gt;
Hope this helps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
-Azure Extensions for Microsoft Dynamics CRM 2011:&lt;br /&gt;
&lt;a href="http://technet.microsoft.com/en-us/library/gg309276.aspx"&gt;http://technet.microsoft.com/en-us/library/gg309276.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/03/how-to-enable-ms-dynamics-crm-2011-to.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-3236436367920248181</guid><pubDate>Thu, 28 Mar 2013 01:40:00 +0000</pubDate><atom:updated>2013-03-27T21:40:51.780-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VS</category><category domain="http://www.blogger.com/atom/ns#">WP8</category><category domain="http://www.blogger.com/atom/ns#">Developer Tools</category><title>Fix It: Application deployment Failed, Please try again in VS 2012</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
A well-known error message is being thrown from VS 2012 when you try to run the emulator for Windows Phone 8. After you installed all the tools and trying to see your application on the emulator you get the above error and it is a show stopper! It's so frustrating and annoying not to be able to view your running code.&lt;br /&gt;
&lt;br /&gt;
After i was stuck for 3 days, and posting my question in MSDN and contributing on StackOverflow and other forums, all of these suggestions didn't work with me.&lt;br /&gt;
&lt;br /&gt;
My case is fairly simple: I have a brand new laptop, Lenovo AMD E1500 (Supports SLAT) with 4GB RAM on Windows 8 Pro 64bit with VS 2012.&lt;br /&gt;
&lt;br /&gt;
Every time i try to run my windows phone 8 application after selecting "WVGA 512MB" Emulator, it takes forever and i got this error:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Application Deployment Failed, Please try again.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
When i check the output window in VS2012, I see the error happens when the VS 2012 tries to connect to the created VM in Hyper-V.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Here is the steps you have to make sure befor uninstalling the SDK or the other tools:&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1) Turn off windows firewall.&lt;br /&gt;
2) Make sure that you are running VS 2012 as an administrator.&lt;br /&gt;
3) Make sure that you are a member of Hyper-V Administrator on your machine.&lt;br /&gt;
4) Open Hyper-V and check the you have a VM called "&lt;b&gt;Emulator WVGA 512MB&lt;/b&gt;" since this is the VM that VS 2012 is trying to deploy the xap file into.&lt;br /&gt;
NOTE: IF YOU DON'T HAVE THE VM, THIS POST IS NOT INTENTED TO FIX IT.&lt;br /&gt;
&lt;br /&gt;
5) Check the connection type for "&lt;b&gt;Windows Phone Emulator Internal Switch&lt;/b&gt;" in Hyper-V manager by clicking on Virtual Switch Manager link on the right pane is Internal.&lt;br /&gt;
&lt;br /&gt;
6) In the control panel, Check Network and Sharing Center and then click on change adapter settings --&amp;gt; you should be able to find 3 adapters starts with vEthernet, those are being used with Hyper-V.&lt;br /&gt;
Don't change any configuration by your self without any direction from a network guy! missing around these configuration might need you to re-install all the tools and rebuild all virtual switches!&lt;br /&gt;
&lt;br /&gt;
7) Check below Article for MSDN and verify you have the following configuration for "&lt;span style="color: darkgreen; font-family: Consolas, Courier, monospace; font-size: 14px; line-height: 19px;"&gt;vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)&lt;/span&gt;"&lt;br /&gt;
&lt;br /&gt;
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681694(v=vs.105).aspx&lt;br /&gt;
&lt;br /&gt;
8) &lt;span style="color: red;"&gt;IMPORTANT&lt;/span&gt;: Turn off &amp;nbsp;any antivirus real time scanning, This turns into scanning all communications which slow down the VS/Emulator and times out the emulator running process so you won't be able to deploy your application. THIS WAS MY FINDING AFTER SPENT 3 DAYS!&lt;br /&gt;
&lt;br /&gt;
After following all above instructions you shouldn't have any issues with running your WP8 Emulator.&lt;br /&gt;
&lt;br /&gt;
Have Fun.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/03/fix-it-application-deployment-failed.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-2745344403285973198</guid><pubDate>Wed, 27 Mar 2013 17:05:00 +0000</pubDate><atom:updated>2013-03-27T13:05:13.589-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VS</category><category domain="http://www.blogger.com/atom/ns#">Developer Tools</category><title>VS 2012 Update 1 is available </title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
Yesterday, Microsoft released a new update for VS 2012. In this first update for VS 2012, They included a lot of enhancements in terms of TFS services, SharePoint Development ALM, .NET Framework enhancements, Mobile development Enhancements and&amp;nbsp;IDE fixes. &lt;br /&gt;
&lt;br /&gt;
The complete list of all the updates in details&amp;nbsp;are listed here:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://support.microsoft.com/kb/2797915"&gt;http://support.microsoft.com/kb/2797915&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
So, if you are developing using VS 2012, it is strongly recommended to install this update, this is the download link:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=35774"&gt;http://www.microsoft.com/en-us/download/details.aspx?id=35774&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Hope this helps.&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/03/vs-2012-update-1-is-available.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-4300354822087174581</guid><pubDate>Mon, 25 Mar 2013 00:20:00 +0000</pubDate><atom:updated>2013-03-24T20:31:36.927-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Windows 8</category><category domain="http://www.blogger.com/atom/ns#">WP8</category><category domain="http://www.blogger.com/atom/ns#">Hyper-V</category><title>Generic Failure in WP8 Emulator and Error when opening Hyper-V Switch Manager!</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
I was developing a windows phone 8 application using VS 2012, and after i did some changes in the network adapter by disabling the hyper-v virtualization protocol "vEthernet" and all its components, the&amp;nbsp;emulator&amp;nbsp;stops working!.&lt;br /&gt;
&lt;br /&gt;
The reason i did this because i wasn't able to give a static IP to my machine so i can access it from my second machine, installing TCP/IP 4 to set the static IP and&amp;nbsp;unchecked&amp;nbsp;Hyper-V protocol screw my virtual&amp;nbsp;Ethernet&amp;nbsp;adapter and emulator components that are using it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I was looking and searching what caused this problem, the only thing i was sure about it it is something related to the network adapter settings! since the network adapter&amp;nbsp;doesn't&amp;nbsp;have the required&amp;nbsp;settings&amp;nbsp;for the Hyper-V neither The emulator nor the Hyper-V switch manager is working and throwing errors.&lt;br /&gt;
&lt;br /&gt;
The&amp;nbsp;emulator&amp;nbsp;was throwing an error: Generic Failure in VS 2012.&lt;br /&gt;
&lt;br /&gt;
The Hyper-V Switch&amp;nbsp;manager&amp;nbsp;is throwing this error message: &lt;u&gt;An error&amp;nbsp;occurred while trying to retrieve a list of virtual switches.&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-biB5SlRIqXo/UU-PxxYO14I/AAAAAAAABCg/vqKzLzXz9xY/s1600/HyperVSwitchManagerErrorCapture.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="303" src="http://1.bp.blogspot.com/-biB5SlRIqXo/UU-PxxYO14I/AAAAAAAABCg/vqKzLzXz9xY/s320/HyperVSwitchManagerErrorCapture.PNG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
To cleanup your machine and get back developing on the emulator, do the following:&lt;br /&gt;
&lt;br /&gt;
1) Open Hyper-V Manager, you will find a VM created for your emulator, Delete this VM.&lt;br /&gt;
&lt;br /&gt;
2) From Control Panel, Open Add or Remove windows Features -&amp;gt; Un check Hyper-V. This will un install all Hyper-V configuration. Reboot your machine.&lt;br /&gt;
&lt;br /&gt;
3) From Control Panel, Add back Hyper-V to your windows, this will install Hyper-V manager and install all required vEthernet and other&amp;nbsp;components&amp;nbsp;that are required to run the emulator.&lt;br /&gt;
&lt;br /&gt;
4) Open Hyper-V Manager, Click on "Add Virtual Switch Manager" and then add a virtual switch of type Internal.&lt;br /&gt;
Notice: you won't get the error message we had earlier!&lt;br /&gt;
&lt;br /&gt;
5) Open your visual studio, and run your WP8 application, this will configure the emulator VM and all its components.&lt;br /&gt;
Notice: The first will take a longer time to run, since the windows will install all required drivers and create the VM used by the emulator and setup the network adapters between the PC and the VM.&lt;br /&gt;
&lt;br /&gt;
6) If you check the Hyper-V manager after the first run for your application, VS 2012 has created a new VM and used the new Virtual Switch we created earlier.&lt;br /&gt;
&lt;br /&gt;
Hope this helps!&lt;br /&gt;
&lt;br /&gt;
Drop me a line if you have this problem and have other solutions or workarounds to it.&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/03/generic-failure-in-wp8-emulator-and.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-biB5SlRIqXo/UU-PxxYO14I/AAAAAAAABCg/vqKzLzXz9xY/s72-c/HyperVSwitchManagerErrorCapture.PNG" height="72" width="72" /><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-687103549460538618</guid><pubDate>Wed, 20 Mar 2013 15:13:00 +0000</pubDate><atom:updated>2013-03-20T11:13:23.117-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">EF</category><category domain="http://www.blogger.com/atom/ns#">asp.net</category><category domain="http://www.blogger.com/atom/ns#">SQL Server</category><category domain="http://www.blogger.com/atom/ns#">Performance</category><title>Calling Stored procedure from EF takes long time and times out!</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Hi Folks,&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;I was going through an interesting performance issue when calling a stored procedure from my&amp;nbsp;web application&amp;nbsp;more than one time and the WCF was timing out because of the stored procedure execution takes long time to execute.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;At the first, I have a parameterized stored procedure that takes different parameters. First time it executes as expected.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;The second time, the EF calls the stored procedure and i don't get any results back to my application. i thought there is an issue in the Stored procedure but no because the stored procedure works as expected from the SQL management studio.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;This means, there is something is going on between the EF bindings&amp;nbsp;and getting results to mapped views/entities we have in the DBML file.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;I was searching and trying to find any clue why this could happen ? I tried different things but it didn't work, until i read the following articles about performance issues in EF:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/library/cc853327.aspx"&gt;&lt;span style="font-family: inherit;"&gt;http://msdn.microsoft.com/en-us/library/cc853327.aspx&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;I realized that i don't have issues in terms of the SQL performance, but EF does have some overhead on executing any stored procedure and getting the results back to&amp;nbsp;mapped view objects. Since this search stored procedure return list of objects to one of my entities, i want to know why does it take long time to execute and i don't get my results back ?!&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;I found the solution for my problem by doing 2 steps:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;1) Since i don't want to track any loaded objects for my entities, i added the following merge option with &lt;u&gt;No Tracking&lt;/u&gt; when i call my stored procedure.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
C# Code:&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;this&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;.ObjectContext.Search(EmpId,EmpName, DeptId,DeptName, &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;System.Data.Objects.&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;MergeOption&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;.NoTracking).ToList();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;2) Since SQL Server has a known performance issue called &lt;strong&gt;&lt;u&gt;Paramter sniffing&lt;/u&gt;&lt;/strong&gt;, which means the SQL Server engine allows to compile the plan for the stored procedure and reuse this plan for subsequent calls of the same stored procedure with different paramters! and this&amp;nbsp;was my case, i pass long list of parameters but with different values. the first time executes as expected because the server chose to compile the plan&amp;nbsp;with the results but the second time it re-uses the compiled plan which might not work well with the results that i want and this takes long time to get the expected results!&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;This is a known issue when your stored procedure inlcudes Like keyword&amp;nbsp;in your queries and you use the input paramters directly to filter your results without using&amp;nbsp;other temp paramters assigned from the input parameters.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;What you need to do is to force SQL to compile the query each call&amp;nbsp;and not to use a precompiled plan and this can be accomplished by using : RECOMPILE query hints along with your query. This is supported in SQL 2005 and above. I'm using SQL 08 R2 server.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;Select * &lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: teal; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: teal; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: teal; font-family: Consolas; font-size: x-small;"&gt;myView&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;WHERE &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: teal; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: teal; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: teal; font-family: Consolas; font-size: x-small;"&gt;DeptName &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;like&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;'%'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;+&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: teal; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: teal; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: teal; font-family: Consolas; font-size: x-small;"&gt;@DeptName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;+&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;'%'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;OPTION &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;RECOMPILE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: grey; font-family: Consolas; font-size: x-small;"&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;-- This enhance the performance query and fix the parameter sniffing issue for multiple calls stored procedure.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;   &lt;/span&gt;&lt;/span&gt;&amp;nbsp;After these 2 changes, I ran my web application, the application works as expected and no times out for the stored procedure that is being called twice!&lt;br /&gt;
&lt;br /&gt;
Hope this helps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
1) Table Hints in SQL Server:&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/library/ms181714.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms181714.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2)&amp;nbsp; Paramter Sniffing in SQL Enginer:&lt;br /&gt;
&lt;a href="http://blogs.technet.com/b/mdegre/archive/2012/03/19/what-is-parameter-sniffing.aspx"&gt;http://blogs.technet.com/b/mdegre/archive/2012/03/19/what-is-parameter-sniffing.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/03/calling-stored-procedure-from-ef-takes.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-5189289819055537324</guid><pubDate>Tue, 19 Mar 2013 20:06:00 +0000</pubDate><atom:updated>2013-03-19T16:07:11.021-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">EF</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">MSDN</category><title>What do you expect from Entity Framework 6 Alpha ?</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;Hi,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;I
was reading the MSDN magazine March 2013 and i found an article by Julie Lerman
about EF 6 Alpha features.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;If
you haven't had the chance to read the article, here is a summary of this
article for .NET developers and architects:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoListParagraph" style="margin: 0in 0in 0pt 0.25in; mso-list: l0 level1 lfo2;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;span style="mso-list: Ignore;"&gt;1)&lt;span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-bidi-font-family: Arial;"&gt;EF 6
will be supporting multiple schemas. So in your dbml file you will be able to
reference and import multiple schemas in your database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoListParagraph" style="margin: 0in 0in 0pt 0.5in; mso-list: none; text-indent: 0in;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-bidi-font-family: Arial;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;Julie
has written a detailed article about this feature, here is the link for this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;a href="http://thedatafarm.com/blog/data-access/digging-in-to-multi-tenant-migrations-with-ef6-alpha/"&gt;&lt;span style="color: blue;"&gt;http://thedatafarm.com/blog/data-access/digging-in-to-multi-tenant-migrations-with-ef6-alpha/&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoListParagraph" style="margin: 0in 0in 0pt 0.25in; mso-list: l0 level1 lfo2;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;span style="mso-list: Ignore;"&gt;2)&lt;span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-bidi-font-family: Arial;"&gt;EF6
will be supporting the asynchronous processing (Async). &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;Since
we have Asynchronous pattern supported in .NET 4.5. The EF 6 will be bringing
some of these features by having: SaveChangesAsync(), ExecuteSqlCommandAsync
and FindAsync() functions that don't block the UI while executing and you will
be able to write asynchronous code in your application in EF 6. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;For
Linq to Entities, they have added bunch of other Async methods for enumerations
such as: ToListAsync(), FirstOrDefaultAsync(), MaxAsync().&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;This
is a very important feature especially for Silverlight, WPF and Windows Phone
developers in addition to web developers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoListParagraph" style="margin: 0in 0in 2pt 0.25in; mso-list: l0 level1 lfo2;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;span style="mso-list: Ignore;"&gt;3)&lt;span style="font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; mso-bidi-font-family: Arial;"&gt;Enum
and Spatial support&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 6pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;EF 6
will be supporting enums and Spatial data types. Unlike earlier version where dependent
on the .NET framework you are using/targeting. The new EF 6 will be supporting
this no matter which .NET framework you are targeting. So you can use enums and
spatial support even you are targeting .NET 4.0 framework that doesn’t support
certain EF 6 features.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 6pt;"&gt;
&lt;o:p&gt;&lt;span style="font-family: Garamond;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 6pt;"&gt;
&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Hope
this helps.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/03/what-do-you-exepct-from-entity.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-5030500478595288588</guid><pubDate>Mon, 11 Mar 2013 16:32:00 +0000</pubDate><atom:updated>2013-03-11T12:35:04.269-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">WP8</category><title>Conditional using statement in C# debug versus Release</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
I'm writing this blog post to share how to write conditional using statements in C#. The meaning of this is how to use&amp;nbsp;using statements in Debug mode versus Release mode in reference to different dlls. This is needed when&amp;nbsp;you are using any testing/sandbox DLLs that use any non production&amp;nbsp;environment and you want your code to use other reference when you build a Release for your application in reference to&amp;nbsp;production dlls.&lt;br /&gt;
&lt;br /&gt;
The below code is using In-App Purchase library for Windows Phone 8.&lt;br /&gt;
&lt;br /&gt;
C# Code:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: blue;"&gt;#if&lt;/span&gt; DEBUG&lt;br /&gt;
&lt;span style="color: blue;"&gt;using&lt;/span&gt; MockIAPLib;&lt;br /&gt;
&lt;span style="color: blue;"&gt;using&lt;/span&gt; &lt;strong&gt;Store&lt;/strong&gt; = MockIAPLib;&lt;br /&gt;
&lt;span style="color: blue;"&gt;#else&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;using&lt;/span&gt; Windows.ApplicationModel.&lt;strong&gt;Store&lt;/strong&gt;;&lt;br /&gt;
&lt;span style="color: blue;"&gt;#endif&lt;/span&gt;&lt;br /&gt;
Notice: you give the same alias name for the testing Libaray namespace as the one that will be used in production so you don't need to re-write your code.&lt;br /&gt;
&lt;br /&gt;
Then, you can use any class for the referenced namespace:&lt;br /&gt;
&lt;br /&gt;
ProductListing p = &lt;span style="color: blue;"&gt;new&lt;/span&gt; ProductListing();&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Tip: You should select Release before your deploy your application to products so the application will refer to the production assemblies and not the ones are used in the debug mode.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope this tip helps!&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/03/conditional-using-statement-in-c-debug.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-3273225721767877726</guid><pubDate>Tue, 22 Jan 2013 17:13:00 +0000</pubDate><atom:updated>2013-01-22T12:13:27.348-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">EF 4.0</category><category domain="http://www.blogger.com/atom/ns#">asp.net</category><category domain="http://www.blogger.com/atom/ns#">C#</category><title>Adding Custom Propeties to EF 4.0 that doesn't exist in the DB model</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
I was extending my EF 4.0 model by having custom propeties that don't exist in my DB, Since EF 4.0 doesn't support adding custom properties if it doesn't exist in the DB, I found a workaround for that by creating a partial class with my custom properties in it.&lt;br /&gt;
&amp;nbsp;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;partial&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;class&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;myEntityName&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;: &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;EntityObject&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;    {&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;[DataMemberAttribute&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;()]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; customerName{ &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;get&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;set&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;

&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;
[&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;DataMemberAttribute&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;()]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; customerCode{ &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;get&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;set&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Implementing this workaround will help you to add any properties you would like to add in your EF 4.0 entities.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You might encounter this error since you are adding properties to your entity that doesn't exist in the edm file:&lt;br /&gt;
&lt;br /&gt;
"The number of members in the conceptual type does not match with the number of members on the object side type .Make sure the number of members are the same."&lt;br /&gt;
&lt;br /&gt;
The fix for error; Remove "&lt;span style="color: green;"&gt;EdmScalarPropertyAttribute&lt;/span&gt;" attribute from your custom propeties:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;//[EdmScalarPropertyAttribute(EntityKeyProperty = false, IsNullable = true)]&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: green; font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;[DataMemberAttribute&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;()]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; customerName{ &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;get&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;set&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;; }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;Hope this helps!&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/01/adding-custom-propeties-to-ef-40-that.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-4797432389763833281</guid><pubDate>Wed, 02 Jan 2013 20:04:00 +0000</pubDate><atom:updated>2013-01-02T15:17:06.603-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Security</category><category domain="http://www.blogger.com/atom/ns#">IIS</category><category domain="http://www.blogger.com/atom/ns#">SaaS</category><category domain="http://www.blogger.com/atom/ns#">asp.net</category><category domain="http://www.blogger.com/atom/ns#">Integration</category><category domain="http://www.blogger.com/atom/ns#">WCF</category><title>WCF Error: The service cannot be activated because it does not support ASP.NET compatibility. </title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
I was developing a secure WCF service that allows only authenticated windows users to access this service in IIS 7.5. After disabling the anonymous access i figured that wsHttpBinding will not work because you have to enable it to make the WCF binding&amp;nbsp;working, then i changed the WCF binding to basicHttpBinding and passed the user credentials from the web application by using below line of code:&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;strong&gt;C# Code:&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;svc.ClientCredentials.Windows.AllowedImpersonationLevel = &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;TokenImpersonationLevel&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;.Impersonation; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;The above line passed the user credentials from the client web application to the service.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Passing the credentials from the client web application wasn't accepted by the WCF service because i was getting another error message from the wcf service:&lt;br /&gt;
&lt;br /&gt;
"The underlying provider failed on Open WCF when hosting in IIS with impersonation is enabled"&lt;br /&gt;
&lt;br /&gt;
Since i have enabled the impersonation to pass the user credentials from the web application to the wcf i was missing the step to add the following configuration in the web.config of the WCF service:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;system.serviceModel&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;serviceHostingEnvironment&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;aspNetCompatibilityEnabled&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;multipleSiteBindingsEnabled&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;lt;/&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #a31515; font-family: Consolas; font-size: x-small;"&gt;system.serviceModel&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
"&lt;strong&gt;The default is false. When this attribute is set to true, requests to Windows Communication Foundation (WCF) services flow through the ASP.NET HTTP pipeline, and communication over non-HTTP protocols is prohibited&lt;/strong&gt;"&lt;br /&gt;
&lt;br /&gt;
One last thing you should add in the service class "aspNetCompatibilityEnabled" attribute to comply with configuration entry otherwise still your service won't work because it will&amp;nbsp;use the default IIS account to access your database.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;strong&gt;C# Code:&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;[&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;AspNetCompatibilityRequirements&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;(RequirementsMode = &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;AspNetCompatibilityRequirementsMode&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;.Allowed)]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;class&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; my&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;Service&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; : &lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;ImyService&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;{&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
// your implementation to the service.&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope this helps!&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;strong&gt;References:&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
1) WCF serviceHostingEnvironment element:&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/library/ms731336(v=VS.110).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms731336(v=VS.110).aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2013/01/wcf-error-service-cannot-be-activated.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-7917075079271685571</guid><pubDate>Thu, 13 Dec 2012 22:22:00 +0000</pubDate><atom:updated>2012-12-13T17:36:07.783-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL 2005</category><category domain="http://www.blogger.com/atom/ns#">SQL Azure</category><category domain="http://www.blogger.com/atom/ns#">SQL 2008</category><category domain="http://www.blogger.com/atom/ns#">MS SQL 2000</category><category domain="http://www.blogger.com/atom/ns#">DBMS</category><title>How to parse comma delimited string into IN Clause in SQL Server</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
Today i was trying to pass multi-value parameter into my select query in SQL Server. To accomplish this i stored the multi-value parameter in a comma delimited string. Then, i want to pass it&amp;nbsp;in my IN clause of the select statement. here is an example to what i want to accomplish:&lt;br /&gt;
&lt;br /&gt;
Delcare @myVar varchar(500)&lt;br /&gt;
Set @myVar='1,2,3,4,5,7'&lt;br /&gt;
&lt;br /&gt;
Select * from Employee&lt;br /&gt;
where EmployeeId IN (@myVar)&lt;br /&gt;
&lt;br /&gt;
You will get this error:&lt;br /&gt;
&lt;span style="font-size: xx-small;"&gt;Msg 245, Level 16, State 1, Line 7&lt;br /&gt;Conversion failed when converting the varchar value '1,2,3,4,5,7' to data type int.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
It makes sense, because i have a varchar that holds all my values and i want to pass those in the IN clause that only accepts integer values!. &lt;br /&gt;
&lt;br /&gt;
The solution for this problem is to parse this string into set of integers and pass it back to your query in your IN clause. For this reason, i have created a function that return a table of 1 column of type int. This will be passed back to the select statement i have mentioned above.&lt;br /&gt;
&lt;br /&gt;
The function code to parse comma delimited string into set of integers:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: green; font-size: x-small;"&gt;&lt;span style="color: green; font-size: x-small;"&gt;-- =============================================&lt;br /&gt;-- Author: Mostafa Elzoghbi&lt;br /&gt;-- Create date: 12/10/2012&lt;br /&gt;-- Description: Parse a string into set of numbers&lt;br /&gt;-- =============================================&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;CREATE &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;FUNCTION&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; [dbo]&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;[ParseCommaDelimitedString]&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;@CommaSeparatedStr &lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;nvarchar&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;1000&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;=NULL&lt;/span&gt;&lt;/span&gt;)&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;RETURNS&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @myTable &lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;TABLE&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;[Id] [int] &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;NOT&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;NULL&lt;/span&gt;&lt;/span&gt;)&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;declare&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @pos &lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="color: blue;"&gt;declare&lt;/span&gt; @piece &lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;varchar&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey;"&gt;&lt;span style="color: grey;"&gt;(&lt;/span&gt;&lt;/span&gt;500&lt;span style="color: grey;"&gt;&lt;span style="color: grey;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: green; font-size: x-small;"&gt;&lt;span style="color: green; font-size: x-small;"&gt;-- Need to tack a delimiter onto the end of the input string if one doesn't exist&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;right(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: magenta; font-size: x-small;"&gt;&lt;span style="color: magenta; font-size: x-small;"&gt;rtrim&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;@CommaSeparatedStr &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;),&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;1&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: red; font-size: x-small;"&gt;&lt;span style="color: red; font-size: x-small;"&gt;','&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;set&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @CommaSeparatedStr &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @CommaSeparatedStr &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;+&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: red; font-size: x-small;"&gt;&lt;span style="color: red; font-size: x-small;"&gt;','&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;s&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;et&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @pos &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: magenta; font-size: x-small;"&gt;&lt;span style="color: magenta; font-size: x-small;"&gt;patindex&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-size: x-small;"&gt;&lt;span style="color: red; font-size: x-small;"&gt;'%,%'&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @CommaSeparatedStr &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;while&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @pos &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&amp;lt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; 0 &lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;begin&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;set&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @piece &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;left(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;@CommaSeparatedStr &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @pos &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;-&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; 1&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: green; font-size: x-small;"&gt;&lt;span style="color: green; font-size: x-small;"&gt;-- You have a piece of data, so insert it, print it, do whatever you want to with it.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;insert&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @myTable &lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;select&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @piece &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;set&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @CommaSeparatedStr &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: magenta; font-size: x-small;"&gt;&lt;span style="color: magenta; font-size: x-small;"&gt;stuff&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;@CommaSeparatedStr &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; 1&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @pos&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: red; font-size: x-small;"&gt;&lt;span style="color: red; font-size: x-small;"&gt;''&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;set&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @pos &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: magenta; font-size: x-small;"&gt;&lt;span style="color: magenta; font-size: x-small;"&gt;patindex&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-size: x-small;"&gt;&lt;span style="color: red; font-size: x-small;"&gt;'%,%'&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @CommaSeparatedStr &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;end&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;RETURN&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;END&lt;br /&gt;-- =============================================&lt;br /&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;What you need after that to re-write your query as follows:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;Select&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;*&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;from&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: black;"&gt; Employee&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;where&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-size: x-small;"&gt; EmployeeId &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;IN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;select&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;*&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;from&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-size: x-small;"&gt; ParseCommaDelimitedString&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: black; font-size: x-small;"&gt;@myVar&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;))&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: black;"&gt;Now, you will be able to pass any comma delimited string, varchar,nvarchar to this function and it returns table of integer that you can set in the IN clause of you select statement or any other T-SQL statements you works with your logic.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: black;"&gt;Hope this helps.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;--ME&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2012/12/how-to-parse-comma-delimited-string.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-8309968980277071117</guid><pubDate>Wed, 12 Dec 2012 17:55:00 +0000</pubDate><atom:updated>2012-12-12T14:30:03.994-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL 2008</category><title>Error: unable to retrieve column information from the data source in SSIS</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
I was trying to call a stored procedure from OLE DB Source in SSIS. and i getting this error:&lt;br /&gt;
&lt;br /&gt;
&lt;span name="subject"&gt;"Error: unable to retrieve column information from the data source"&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span name="subject"&gt;I wasn't even able to get the columns returned from this stored procedure.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span name="subject"&gt;My stored procedure is having a dynamic query i'm building based on passed parameters from SSIS package. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span name="subject"&gt;My Stored procedure code:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span name="subject"&gt;&lt;span style="font-size: xx-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;Declare&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @sqlStatement &lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;as&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;nvarchar&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;1000&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;SET&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @sqlStatement &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: red; font-size: x-small;"&gt;&lt;span style="color: red; font-size: x-small;"&gt;' SELECT * FROM dbo.myTable&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
WHERE ID IN ('&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;+&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @Ids &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;+&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: red; font-size: x-small;"&gt;&lt;span style="color: red; font-size: x-small;"&gt;' )'&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: green; font-size: x-small;"&gt;&lt;span style="color: green; font-size: x-small;"&gt;-- For tracing purposes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;print&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @sqlStatement&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;execute&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: maroon; font-size: x-small;"&gt;&lt;span style="color: maroon; font-size: x-small;"&gt;sp_executesql&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;@sqlStatement&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;To fix this problem, the SSIS when it executes the stored procedure in the design time, it doesn't pass any parameters, with that being said, you have to make sure that your stored procedure is working when you pass NULL values by default. and this was the trick to fix the problem. In my case, when i pass NULL values for my parameter that contains multiple values my SQL query statement is not valid!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;I fixed my stored procedure through the following:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;Declare&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @sqlStatement &lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;as&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;nvarchar&lt;/span&gt;&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;1000&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;IF&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @Ids &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;is&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;not&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;NULL&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;SET&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @sqlStatement &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: red; font-size: x-small;"&gt;&lt;span style="color: red; font-size: x-small;"&gt;' SELECT * FROM myTable &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-size: x-small;"&gt;&lt;span style="color: red; font-size: x-small;"&gt;WHERE ID IN ('&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;+&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @Ids &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;+&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: red; font-size: x-small;"&gt;&lt;span style="color: red; font-size: x-small;"&gt;' )'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;ELSE&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;SET&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @sqlStatement &lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;&lt;span style="color: grey; font-size: x-small;"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: red; font-size: x-small;"&gt;&lt;span style="color: red; font-size: x-small;"&gt;' SELECT *&lt;/span&gt;&lt;/span&gt;FROM myTable'&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: green; font-size: x-small;"&gt;&lt;span style="color: green; font-size: x-small;"&gt;-- For tracing purposes&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;print&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; @sqlStatement&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: green; font-size: x-small;"&gt;&lt;span style="color: green; font-size: x-small;"&gt;-- EXEC @sqlStatement&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;execute&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: maroon; font-size: x-small;"&gt;&lt;span style="color: maroon; font-size: x-small;"&gt;sp_executesql&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;@sqlStatement&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;After fixing my stored procedure to work with null passed values and my dynamic sql statement is correct i was able to view my columns returned from the stored procedure and it works like a charm!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;Hope this tip helps you when you create any stored procedure that is being called from SSIS objects such as OLE DB source or SQL Task.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;Thanks,&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;--ME&lt;/span&gt;</description><link>http://moustafa-arafa.blogspot.com/2012/12/error-unable-to-retrieve-column.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-3910167242427308921</guid><pubDate>Sun, 09 Dec 2012 15:47:00 +0000</pubDate><atom:updated>2012-12-09T11:42:24.605-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CSS3</category><category domain="http://www.blogger.com/atom/ns#">HTML5</category><category domain="http://www.blogger.com/atom/ns#">70-480</category><category domain="http://www.blogger.com/atom/ns#">VS</category><title>Study Material Notes for Programming HTML5 and CSS 3 Microsoft Exam</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
I got a free voucher from Microsoft for programming HTML 5 and CSS 3 Exam. I studied and reviewed online video materials and i want to share with you my study notes and hope this will be helpful for passing the exam. Congratulations in advance for everyone!.&lt;br /&gt;
&lt;br /&gt;
My Notes:&lt;br /&gt;
&lt;br /&gt;
&lt;ol style="text-align: left;"&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;Use
     &lt;b&gt;accepts:'application/bin,text/xml' &lt;/b&gt;to accepts only XML and binary content
     in HTML responses.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;Use the following condition
     to check if the html response content is binary:&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;If(request.getResponseHeader("Content-Type")=="application/bint"&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;To show the status of upload
     is displayed in the progress bar:&lt;/span&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;Xhr.upload.onprogress=&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;To support 2 way communication between a web page and a worker role, implement the following:&lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;From the main page, use &lt;/span&gt;&lt;span style="color: #c0504d; font-family: Calibri; font-size: 11.0pt;"&gt;onmessage&lt;/span&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt; event handler of the web
      worker to capture events.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;From the web worker, use the
      &lt;/span&gt;&lt;span style="color: #c0504d; font-family: Calibri; font-size: 11.0pt;"&gt;onmessage&lt;/span&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt; event handler of the main
      page to capture events.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;Standard-complaint screen
     readers must be able to identify the links contained within the navigation
     structure automatically: Use &lt;nav&gt;&lt;/nav&gt; semantic markup.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;Use appendChild to add a
     control in DOM document.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: 11pt;"&gt;To extend a class with a
     method you should use &lt;/span&gt;&lt;/span&gt;&lt;b style="font-family: Calibri; font-size: 11pt;"&gt;prototype&amp;nbsp;&lt;/b&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: 15px;"&gt;keyword&lt;/span&gt;&lt;span style="font-size: 11pt;"&gt;&amp;nbsp;as follows:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;Customer.prototype.GetCommission()
= funct() {…}&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;If you want an input control
     to allow only numeric values, use the following: &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: x-small;"&gt;type="number"&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;To pass objects between web
     page and web worker you can use: JSON,String and JavaScript types.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;To register an event listener
     for the web worker use &lt;b&gt;addEventListenr &lt;/b&gt;and to stop a web worker use:
     self.close();&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;Anchor selector order:&amp;nbsp;&lt;b&gt; a:link --&amp;gt; a:visted --&amp;gt; a:hover
     --&amp;gt; a:active&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;Use Figure semantic markup to
     include image and its caption using &lt;b&gt;figcaption &lt;/b&gt;markup.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;To store user's information
     you can use: &lt;b&gt;localStorage &lt;/b&gt;to get or set&amp;nbsp;
     user's data.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;To write a code to throw an
     error: throw new Error("Invalid",200)&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;To show @ in the email
     address for a submitted form, &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;Use:
     str=$("form").serialize()&lt;/span&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;str=decodeUriComeponent(str);&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;Apply styles from highest to
     lowest priority:&amp;nbsp; &lt;/span&gt;&lt;/li&gt;
&lt;ol&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;User agent style sheets&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;Author normal style sheets&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;Author important style
      hseets&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;User normal style sheets&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;User important style sheets&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;To make sure that the
     advertisement section on the right most of the page use: &lt;aside&gt; markup.&lt;/aside&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: 11pt;"&gt;To handle&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 15px;"&gt;automatically&lt;/span&gt;&lt;span style="font-size: 11pt;"&gt;&amp;nbsp;each
     time the request status change use &lt;b&gt;xhr.onreadstatechange&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;Catch specific error number
     by using &lt;u&gt;e.number&lt;/u&gt; and not e.message&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11.0pt;"&gt;To use text-transform in CSS,
     you should use captalize &amp;nbsp;semantic tag.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;You need to group page
     content together to maximize search engine readability use article
     semantic markup.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;When&lt;/span&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;you want the inner paragraph exactly far
     from the outer paragraph, then you should use Relative.&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;To show JSON confirmation
     number in a label: $("#txtValue").&lt;/span&gt;&lt;span style="color: #c0504d; font-family: Calibri; font-size: 11pt;"&gt;text&lt;/span&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;(JSONObject.Confirmation);&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;To show text around an image
     is showing in the center of the page use: -ms-wrap-side: both&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin-bottom: 0px; margin-top: 0px; vertical-align: middle;"&gt;&lt;span style="font-family: Calibri; font-size: 11pt;"&gt;Use &lt;b&gt;header &lt;/b&gt;to apply css or
     classes to different heading markup such as: H1,H2&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: 15px;"&gt;**Videos - Jump start from Microsoft Virtual academy:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: 15px;"&gt;https://www.microsoftvirtualacademy.com/tracks/developing-html5-apps-jump-start&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: 15px;"&gt;Good Luck, Feel free to drop a line with any feedback you would like to add.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2012/12/study-material-for-programming-html5.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-4198647719386361572</guid><pubDate>Wed, 05 Dec 2012 19:35:00 +0000</pubDate><atom:updated>2012-12-05T14:39:30.287-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">jQuery</category><title>Functions vs. Methods in JavaScript with Encapsulation!</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
I found something interesting to share with all of you in Javascript. Functions in javascript as we all know is defined with function keyword while Method in Javascript is a function but can have a scope and you can hide it as we do in object oriented programming. I will be showing 2 examples that implement function versus method in your web page to add 2 numbers.&lt;br /&gt;
&lt;br /&gt;
1) Function to add 2 numbers in Javascript:&lt;br /&gt;
&lt;br /&gt;
In your script tag, this is the declaration of the function:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;script&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;language&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;=javascript&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; myfunction() {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;document.getElementById(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;'txtResult'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;).value = parseInt(document.getElementById(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;'Text1'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;).value) +&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parseInt(document.getElementById(&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;'Text2'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;).value);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;script&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: black; font-family: Consolas; font-size: x-small;"&gt;&lt;u&gt;My page, see the result after you change the second text box:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;p&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;Using Functions&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;p&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;input&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;type&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="text"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;id&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="Text1"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;/&amp;gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;br&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;input&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;type&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="text"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;id&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="Text2"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;onchange&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="myfunction();"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;/&amp;gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;br&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;input&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;type&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="text"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;id&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="txtResult"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;p&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas;"&gt;&lt;span style="color: blue; font-family: Consolas;"&gt;&lt;span style="color: blue; font-family: Consolas;"&gt;&lt;span style="color: black; font-size: small;"&gt;2) Method to add 2 numbers using Methods:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;script&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: black; font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;language&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;=javascript&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: black; font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: darkgreen; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: darkgreen; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: darkgreen; font-family: Consolas; font-size: x-small;"&gt;// Methods&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; ops = {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
add: &lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; AddTwoNumbers() {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;document.getElementById(&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;'txtResult2'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;).value = &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parseInt(document.getElementById(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;'Text3'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;).value) +&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parseInt(document.getElementById(&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;'Text4'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;).value);&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;script&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: black;"&gt;&lt;u&gt;My page:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;p&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;Using Methods&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;p&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;input&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;type&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="text"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;id&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="Text3"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;/&amp;gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;br&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;input&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;type&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="text"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;id&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="Text4"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;onchange&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="ops.add();"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;/&amp;gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;br&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: maroon; font-family: Consolas; font-size: x-small;"&gt;input&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;type&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="text"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: red; font-family: Consolas; font-size: x-small;"&gt;id&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;="txtResult2"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: black; font-family: Consolas; font-size: x-small;"&gt;You will see that we implemented the add function that has the scope within ops object, and in this way you can design and organize your functions within different scopes and with that being said you implement encapsulation for your methods!.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: black; font-family: Consolas; font-size: x-small;"&gt;Anoter note, you gave an alias to your function with "&lt;strong&gt;add&lt;/strong&gt;" alias name&amp;nbsp;and this is not the actual name of the method since if you try to call the method as &lt;strong&gt;AddTwoNumbers&lt;/strong&gt; you won't be able to do that.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: black;"&gt;The running application:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-ko3ceCxI9FE/UL-glIar3VI/AAAAAAAABBg/0m-K5eIJ7HQ/s1600/Capture_js.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" nea="true" src="http://2.bp.blogspot.com/-ko3ceCxI9FE/UL-glIar3VI/AAAAAAAABBg/0m-K5eIJ7HQ/s1600/Capture_js.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: black;"&gt;Hope this helps!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2012/12/functions-vs-methods-in-javascript-with.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-ko3ceCxI9FE/UL-glIar3VI/AAAAAAAABBg/0m-K5eIJ7HQ/s72-c/Capture_js.JPG" height="72" width="72" /><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-3179721259772680285</guid><pubDate>Sun, 02 Dec 2012 18:17:00 +0000</pubDate><atom:updated>2012-12-02T13:17:45.139-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">design pattern</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">asynchronous</category><title>Asynchronous Programming in C# - async/await</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
Asynchronous Programming in C# - async/wait&lt;br /&gt;
&lt;br /&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
I want to share with you an important enhancement in&amp;nbsp;.NET framework 4.5. The asynchronous programming paradigm&amp;nbsp;for .NET developers using new C# keywords async/await. Since&amp;nbsp;I'm C# developer; I will be highlighting this new&amp;nbsp;design pattern keywords in&amp;nbsp;C#&amp;nbsp;for asynchronous programming which is async/await which is supported only starting from&amp;nbsp;.NET framework 4.5.&lt;br /&gt;
&lt;br /&gt;
what's async/await for C#?&lt;br /&gt;
&lt;br /&gt;
Async is a new &lt;u&gt;modifier&lt;/u&gt; in C# 4.5. async specifies to the compiler that the method is executing in asynchronous mode and not synchronous.&lt;br /&gt;
&lt;br /&gt;
For example - C# Code:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;async Task&lt;int&gt; Sum(int x, int y) {&lt;/int&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;// your method implementation.&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;}&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
The async method returns a Task&lt;tresult&gt; object or doesn't return any objects and this case you will write void instead of Task&lt;tresult&gt; object.&lt;/tresult&gt;&lt;/tresult&gt;&lt;br /&gt;
&lt;br /&gt;
The async method doesn't allow input parameters by reference or output. &lt;br /&gt;
&lt;br /&gt;
The&amp;nbsp; async method has to contain a line to call the async method by using await &lt;u&gt;operator&lt;/u&gt;.&lt;br /&gt;
&lt;br /&gt;
For example - C# Code:&lt;br /&gt;
&lt;span style="color: blue;"&gt;private&lt;/span&gt; &lt;span style="color: blue;"&gt;async&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; btnAdd_Click(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, RoutedEventArgs e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int x=10,y=15,z=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; // The complier will call Sum asynchronously and return the value in z.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; z=&lt;span style="color: blue;"&gt;await&lt;/span&gt; Sum(x,y);&lt;br /&gt;&amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An async method provides a convenient way to perform potentially long-running processing without blocking the caller's thread. &lt;br /&gt;
&lt;br /&gt;
The caller of an async method can resume its work without waiting for the async method to finish which makes your application more responsive and user friendly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Read more about async/await from MSDN:&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/library/hh156513(v=vs.110).aspx"&gt;http://msdn.microsoft.com/en-us/library/hh156513(v=vs.110).aspx&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/library/hh156528.aspx"&gt;http://msdn.microsoft.com/en-us/library/hh156528.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Hope this helps.&lt;br /&gt;
&lt;br /&gt;
-ME&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2012/12/asynchronous-programming-in-c-asyncawait.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-4125039676291996440</guid><pubDate>Tue, 20 Nov 2012 16:48:00 +0000</pubDate><atom:updated>2012-11-20T11:48:28.769-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VS</category><category domain="http://www.blogger.com/atom/ns#">TF</category><category domain="http://www.blogger.com/atom/ns#">Developer Tools</category><title>Error connecting to TFS 2010 using VS BIDS 2008</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: inherit;"&gt;Hi All,&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;If you are experiencing an error when connecting to TFS 2010 using Microsoft Visual Studio Business Intelligence Development Studio&amp;nbsp;(BIDS) while you don't have this problem connecting using VS 2010 so follow below steps to fix it.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;1) Close your VS 2008 instance if you have it open.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;2) Install VS 2008 SP1 if you don't have it already.&lt;/span&gt;&lt;br /&gt;
&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=10986"&gt;&lt;span style="font-family: inherit;"&gt;http://www.microsoft.com/en-us/download/details.aspx?id=10986&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;3) Install Team Explorer Forward Compatability Update:&lt;/span&gt;&lt;br /&gt;
&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=10834"&gt;&lt;span style="font-family: inherit;"&gt;http://www.microsoft.com/en-us/download/details.aspx?id=10834&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;4) From the start menu, Open Run window and type: regedit&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;we need to update the default entry of your Team Explorer for TFS server url.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Navigate to:&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: yellow;"&gt;&lt;span style="font-family: inherit;"&gt;HKEY_CURRENT_USER --&amp;gt;Software --&amp;gt;Microsoft--&amp;gt;VisualStudio--&amp;gt;9.0 --&amp;gt;TeamFoundation --&amp;gt;Servers &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Right click on Server and click on add string:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;set the name to: tfsservername&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;set the value to: your tfs server url, for example:&lt;/span&gt;&lt;br /&gt;
&lt;a href="http://tfsserver:8080/tfs/CollectionName"&gt;&lt;span style="font-family: inherit;"&gt;http://TFSServer:8080/tfs/CollectionName&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Collection Name: is the project collection you want to connect to in TFS.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;5) Close registry editor window and open VS 2008 BIDS.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;6) You will automatically be connected to the&amp;nbsp;project collection you previously&amp;nbsp;specified&amp;nbsp;and be able to bind your projects to the TFS 2010.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Enjoy Coding!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Hope this helps.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Regards,&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: inherit;"&gt;Mostafa E.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2012/11/error-connecting-to-tfs-2010-using-vs.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-304422418337074498</guid><pubDate>Sun, 04 Nov 2012 05:51:00 +0000</pubDate><atom:updated>2012-11-05T10:56:14.313-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Administration</category><category domain="http://www.blogger.com/atom/ns#">Windows</category><title>Error When activating Windows 8 Code 0x8007007B</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
If you are facing a problem activating your windows 8 machine this is because there is a bug till this point that won't allow you to activate or even change the product key from the &amp;nbsp;user interface. The solution for this problem is to change the key using the command line. you will be able to do this in 2 simple commands.&lt;br /&gt;
&lt;br /&gt;
The Error Code when trying to activate your windows 8:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://2.bp.blogspot.com/-oDgUFiJ0Ny8/UJYA0Z-BdEI/AAAAAAAABAw/ogSjwPHy2lw/s1600/ErrorWhenActivatingWin8.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"&gt;&lt;img border="0" height="169" src="http://2.bp.blogspot.com/-oDgUFiJ0Ny8/UJYA0Z-BdEI/AAAAAAAABAw/ogSjwPHy2lw/s320/ErrorWhenActivatingWin8.PNG" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1) Open Command Prompt as Administrator&lt;br /&gt;
From the Metro Desktop, Hover the top right corner to get the menu; then search for "Command Prompt" and then hit enter. you will get the command prompt tile. then right click on this tile and click on Run As Administrator.&lt;br /&gt;
&lt;br /&gt;
Below Figure shows the appearance before you click on Run as Administrator.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&amp;nbsp;&lt;a href="http://3.bp.blogspot.com/-K0RdE-3D2vM/UJYA0_0xJiI/AAAAAAAABA4/F3OVElH2KBg/s1600/ErrorWhenActivatingWin8_Step0.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"&gt;&lt;img border="0" height="252" src="http://3.bp.blogspot.com/-K0RdE-3D2vM/UJYA0_0xJiI/AAAAAAAABA4/F3OVElH2KBg/s320/ErrorWhenActivatingWin8_Step0.PNG" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
2) Type in this command to uninstall the product key&lt;br /&gt;
&lt;br /&gt;
&lt;em style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;slmgr /upk&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;em style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;span style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Once you enter this command you will get this popup window.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;em style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;a href="http://4.bp.blogspot.com/-mnMcjEQU_ds/UJYA1sapknI/AAAAAAAABBA/s6CGtdQZIqA/s1600/ErrorWhenActivatingWin8_Step1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"&gt;&lt;img border="0" height="149" src="http://4.bp.blogspot.com/-mnMcjEQU_ds/UJYA1sapknI/AAAAAAAABBA/s6CGtdQZIqA/s320/ErrorWhenActivatingWin8_Step1.PNG" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;span style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;3) Install your product key&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;em style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;em style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;em style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-weight: normal; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;em style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;em style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-weight: normal; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt;&lt;em style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;em style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-weight: normal; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt;&lt;span style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;Once you install the new key you will get this message&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;em style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;em style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-weight: normal; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-lTyvKwr4Pzs/UJYA2cBhHaI/AAAAAAAABBI/JZZ1Fyyvv9k/s1600/ErrorWhenActivatingWin8_Step2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="76" src="http://4.bp.blogspot.com/-lTyvKwr4Pzs/UJYA2cBhHaI/AAAAAAAABBI/JZZ1Fyyvv9k/s320/ErrorWhenActivatingWin8_Step2.PNG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;em style="background-color: white; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; color: #2a2a2a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 15px; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;em style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-weight: normal; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;strong style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; font-family: inherit; margin: 0px; outline-color: invert; outline-style: none; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/em&gt;
&lt;span style="color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 15px;"&gt;Once you installed the new key, you will notice that if you go back by typing Activate Windows in the search menu from Metro Desktop you will be noticing that the windows is activated.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 15px;"&gt;Congrats and have fun with Windows 8!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 15px;"&gt;Hope this helps.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 15px;"&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 15px;"&gt;Mostafa E.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #2a2a2a; font-family: Segoe UI, Lucida Grande, Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 12px; line-height: 15px;"&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2012/11/error-when-activating-windows-8-code.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-oDgUFiJ0Ny8/UJYA0Z-BdEI/AAAAAAAABAw/ogSjwPHy2lw/s72-c/ErrorWhenActivatingWin8.PNG" height="72" width="72" /><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-657125910795212369</guid><pubDate>Fri, 02 Nov 2012 15:29:00 +0000</pubDate><atom:updated>2012-11-02T11:52:32.676-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">surface</category><category domain="http://www.blogger.com/atom/ns#">Windows 8</category><category domain="http://www.blogger.com/atom/ns#">Visual Studio</category><category domain="http://www.blogger.com/atom/ns#">Store Apps</category><title>Getting Started Windows 8 Store Apps Resources</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
I'm writing this post to share the resources that every software engineer or developer needs to get started with Windows 8 Store App development.&lt;br /&gt;
&lt;br /&gt;
First, Before heading out and install Development resources (SDK)&amp;nbsp;to start playing and exploring with windows 8 store app tools&amp;nbsp;looks like. here&amp;nbsp;is some sites you need to read to have a&amp;nbsp;basic understanding about windows 8&amp;nbsp;store apps&amp;nbsp;principles, design and&amp;nbsp;concepts:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;1) Windows Store Apps development center:&lt;/strong&gt;&lt;br /&gt;
This site is the main site that contains all materials you want to get or read about Windows Store Apps design and development.&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/windows/apps"&gt;http://msdn.microsoft.com/en-us/windows/apps&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;2) First document i suggest to read, Windows 8 Product Guide for Developers, find it here:&lt;/strong&gt;&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-US/windows/apps/hh852650"&gt;http://msdn.microsoft.com/en-US/windows/apps/hh852650&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;3) Spend&amp;nbsp;some time understanding the API reference for Win Store apps using JavaScript, C#,C++ or VB.NET:&lt;/strong&gt;&lt;br /&gt;
This source shows&amp;nbsp;how to use,understand &amp;amp; explore&amp;nbsp;Windows 8&amp;nbsp;API using different programming languages.&amp;nbsp;Using C# or JavaScript to build HTML Store Apps is different than using Traditional JavaScript in some manner.&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/library/windows/apps/br211369"&gt;http://msdn.microsoft.com/library/windows/apps/br211369&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;4) Get some basic understanding of Metro Style Store apps guidelines and principles:&lt;/strong&gt;&lt;br /&gt;
Even if you are not a designer, it is crucial to have basic understanding of designing Views and pages.&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/library/windows/apps/hh779072"&gt;http://msdn.microsoft.com/library/windows/apps/hh779072&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
After the previous four steps, you should be able to build your development box with Windows 8,VS 2012 Express, Blend and SQL 2012 Express, so you proceed to the following resources.&lt;br /&gt;
Downloads link:&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-US/windows/apps/br229516"&gt;http://msdn.microsoft.com/en-US/windows/apps/br229516&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;5) Getting started with development tutorials:&lt;/strong&gt;&lt;br /&gt;
Get some samples, tutorials to get dirty hands working with VS 2012, Blend and All windows Store necessary tools to get up to speed in development.&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/library/windows/apps/br211386"&gt;http://msdn.microsoft.com/library/windows/apps/br211386&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Since I'm a C# guy, here is the Get Started Development resources for C# Developers:&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/library/windows/apps/hh974581.aspx"&gt;http://msdn.microsoft.com/en-us/library/windows/apps/hh974581.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Once you reach this step, you should be able to build your first windows store app. now the time for deployment/licensing and selling your application.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;6) Selling you application:&lt;/strong&gt;&lt;br /&gt;
Get to know the available markets, languages and how to get paid.&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/library/windows/apps/hh694064"&gt;http://msdn.microsoft.com/library/windows/apps/hh694064&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I will keep updating this post as i find good resources to read&amp;nbsp; for early adopters!&lt;br /&gt;
&lt;br /&gt;
Hope this helps,&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Mostafa E.&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2012/11/getting-started-windows-8-store-apps.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-4784129578901465741</guid><pubDate>Thu, 01 Nov 2012 15:00:00 +0000</pubDate><atom:updated>2012-11-13T09:27:47.721-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">surface</category><category domain="http://www.blogger.com/atom/ns#">Product Evaluation</category><category domain="http://www.blogger.com/atom/ns#">Product Review</category><title>Microsoft Surface  - Product Review</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
I'm writing this blog post to share with all my blog readers and friends my experience in using Microsoft Surface. I was eager and waiting till it&amp;nbsp;is available to pre-order it online&amp;nbsp;and i ended up getting it from the store right away with no waiting LONG lines...lucky me!&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/--DPqvnSMOQY/UJKIneno58I/AAAAAAAAA_w/8SJAwRYUv18/s1600/Surface+1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" qea="true" src="http://4.bp.blogspot.com/--DPqvnSMOQY/UJKIneno58I/AAAAAAAAA_w/8SJAwRYUv18/s1600/Surface+1.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-6ybo-_FmfHI/UJKIoQxS-QI/AAAAAAAAA_4/fYGrGD8djwg/s1600/Surface+2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" qea="true" src="http://2.bp.blogspot.com/-6ybo-_FmfHI/UJKIoQxS-QI/AAAAAAAAA_4/fYGrGD8djwg/s1600/Surface+2.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
I have been using Microsoft Surface for 6 days, and i want to share with you my personal insights from technical point of view and not from the marketing aspect! So, Let's start by answering basic questions:&lt;br /&gt;
&lt;br /&gt;
1) Why did i buy Microsoft Surface ?&lt;br /&gt;
Since&amp;nbsp;my wife has an iPad&amp;nbsp;and we are using it for quite long time,&amp;nbsp;I&amp;nbsp;have much deeper experience using&amp;nbsp;my&amp;nbsp;iPhone and iPad or in general Apple Products. Before i bought MS Surface; I&amp;nbsp;watched few reviews about mini iPad which is the latest and greatest from Apple. After comparing the&amp;nbsp;2 products i found that the mini iPad was over priced in comparison to the&amp;nbsp;MS Surface, doesn't have Office, OS is locked not as Windows 8 and it serve the purpose as a E-Reader and a handy PC with fully featured Windows OS including IIS, Control Panel and Services. In addition to&amp;nbsp;that, Fully fledged SDK for Developers to build Windows Phone Apps, Surface Apps and Web Apps for different platforms using HTML 5 and JavaScript!&lt;br /&gt;
&lt;br /&gt;
If i would buy an E-Reader tablet my choice will be Kindle Fire from Amazon for 199$ and not min iPad for 329$.&lt;br /&gt;
&lt;br /&gt;
All above was enough for me to go with the Surface!&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-OiamMDxlX1M/UJKIsBuOeiI/AAAAAAAABAA/fL2WqM6rLm4/s1600/Surface+3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" qea="true" src="http://2.bp.blogspot.com/-OiamMDxlX1M/UJKIsBuOeiI/AAAAAAAABAA/fL2WqM6rLm4/s1600/Surface+3.JPG" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
2) What you can do with the Surface ?&lt;br /&gt;
&lt;br /&gt;
a) Metro Style Experience: With Windows RT, You would have the same experience when you have Windows 8 on your PC. Very intuitive Tiles and fluid touch experience for what's in the start page, Pin to Task bar, and switch to Desktop Mode (You regular Windows Experience). The User Experience is fresh and new and this is a winner for The surface over iPad.&lt;br /&gt;
&lt;br /&gt;
b) Cloud Connected Device: With the surface as for iPad, you will be able to sync up all you files to SkyDrive - Cloud Service from MS and they offer you to upgrade with&amp;nbsp;extra 3GB for free when you purchase it! This is really cool. I have all my files linked to my Microsoft Account and i access it wherever i want and using any machine. MS is little behind since Apple introduced iCloud long time back, but here we are now we have it for both.&lt;br /&gt;
&lt;br /&gt;
c) Store: Windows RT comes with the store where you can install all your applications as AppStore for Apple. The MS store still doesn't have lots of applications as Apple AppStore but it is growing tremendously! &lt;br /&gt;
&lt;br /&gt;
d) MS Office: You have Word, PowerPoint, Excel, Access,&amp;nbsp;OneNote, InfoPath for Free&amp;nbsp;when you have Surface unlike iPad. Microsoft Office price is included and you don't need to pay extra for Office, this is a big plus!&lt;br /&gt;
&lt;br /&gt;
e) Kinect: If you have XBOX 360, you will be able to play&amp;nbsp;XBOX from the Surface, this is really cool! I tried it to surf internet&amp;nbsp;and run Netflix and other applications in my XBOX and it was amazing experience.&lt;br /&gt;
&lt;br /&gt;
Note: This feature requires you to have Windows Live Gold Membership to fully utilize all your applications in XBox.&lt;br /&gt;
&lt;br /&gt;
f) People Hub: Connect &amp;amp; Read&amp;nbsp;all your social media network notifications&amp;nbsp;including: Facebook, Twitter, Windows Live and Mail notifications all through one place.&lt;br /&gt;
&lt;br /&gt;
g) For Developers: If you are a geek and likes to develop apps for the surface. you can have all development environment for free from Microsoft. SDK,VS 2012 Express with&amp;nbsp;Blend&amp;nbsp;and SQL 2012 seamless integration for building Windows 8, Windows RT application with the ability to test your applications against these platforms. check out Windows&amp;nbsp;Store Dev Center for details: &lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/windows/apps/br229512.aspx"&gt;http://msdn.microsoft.com/en-us/windows/apps/br229512.aspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
-- Updated 11/13/2012&lt;br /&gt;
h) Connect the Surface to your TV: I bought a mini-HDMI cable from Amazon and now i'm able to stream any shows and vidoes i'm watching to my&amp;nbsp;TV. here is what you can search for: mini HDMI to HDMI cable and you can get it for only 5$ from Amazon.&lt;br /&gt;
&lt;br /&gt;
This is all what i have been&amp;nbsp;seeing&amp;nbsp;and experiencing during my last few days using the Surface! &lt;br /&gt;
&lt;br /&gt;
Hope you like it and see it useful! &lt;br /&gt;
Drop me a line if you have any other questions or a feedback!&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;
&lt;br /&gt;
Mostafa E.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div align="left"&gt;
﻿&lt;/div&gt;
&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2012/11/microsoft-surface-product-review.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/--DPqvnSMOQY/UJKIneno58I/AAAAAAAAA_w/8SJAwRYUv18/s72-c/Surface+1.JPG" height="72" width="72" /><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-8081931950724509914</guid><pubDate>Mon, 10 Sep 2012 14:52:00 +0000</pubDate><atom:updated>2012-09-10T10:52:44.918-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Social Media Tools</category><category domain="http://www.blogger.com/atom/ns#">Product Evaluation</category><category domain="http://www.blogger.com/atom/ns#">Product Review</category><category domain="http://www.blogger.com/atom/ns#">Enterpreneurship</category><title>Product Review: Zoomph</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;
&lt;o:p&gt;&lt;span style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;span style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;"&gt;Hi Folks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;"&gt;This is a product evaluation blog post about a product evaluation &amp;amp; review for a social media service called: Zoomph. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;"&gt;&lt;a href="https://www.zoomph.com/"&gt;Zoomph&lt;/a&gt; is a social media product that provides moderation, analytics, feed management &amp;amp; Social Media mash up information from Facebook and Twitter into one set of displays for all your twitter and social media activities.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;"&gt;Zoomph primarily provides a twitter moderation capabilities though setting up a feed moderation team in the product to moderate your feeds in your account. Setup a feed in few seconds by setting the hash tags, keywords or users you are looking to pull the information from Twitter and the rest will be done for you!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;"&gt;The intelligence set of real-time services in &lt;a href="https://www.zoomph.com/"&gt;Zoomph&lt;/a&gt; pulls Twitter tweets based on the keywords, hash tags and other set of configurations and gives the ability to the feed’s moderators to approve and reject tweets content from Twitter in few clicks!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;
&lt;span style="font-family: Calibri;"&gt;The product is supported by intuitive user interface that makes it easy for real time moderation that can be used in your conferences and events on the spot! In addition to that, the product pulls your content from your Facebook fan pages into the system.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;
&lt;span style="font-family: Calibri;"&gt;Zoomph contains set of analytics and reporting capabilities that provide each account manager to analyze all data that have been captured and provides more insights such as: geo-location information, top influencers, and top tweets.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;
&lt;span style="font-family: Calibri;"&gt;Last and most important features in &lt;/span&gt;&lt;a href="https://www.zoomph.com/"&gt;&lt;span style="font-family: Calibri;"&gt;Zoomph&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri;"&gt;, the product provides set of displays with different dimensions that you can use to display your moderators’ approved tweets on big display screens with creative nifty designs that you can customize and brand it as you want!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;
&lt;span style="font-family: Calibri;"&gt;What about the price? The service is not expensive at all! You setup your feed for only 9.99$&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;
&lt;span style="font-family: Calibri;"&gt;Check out all features of Zoomph in below URL:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;
&lt;a href="https://www.zoomph.com/features.aspx"&gt;&lt;span style="font-family: Calibri;"&gt;https://www.zoomph.com/features.aspx&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;
&lt;span style="font-family: Calibri;"&gt;This product is fully designed and developed on Microsoft Windows Azure cloud platform.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;
&lt;span style="font-family: Calibri;"&gt;Hope this post helps in evaluating Social Media products in the market and specially Zoomph and gives you insights about why would you sign up for Zoomph…&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;
&lt;span style="font-family: Calibri;"&gt;Feel free to provide your feedback! &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a href="https://www.zoomph.com/"&gt;https://www.zoomph.com&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;
</description><link>http://moustafa-arafa.blogspot.com/2012/09/product-review-zoomph.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-25545748.post-2257844782360747765</guid><pubDate>Tue, 24 Jul 2012 12:51:00 +0000</pubDate><atom:updated>2012-07-24T08:51:38.731-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SharePoint 2013</category><category domain="http://www.blogger.com/atom/ns#">SharePoint</category><title>SharePoint 2013 Training Materials</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Hi Folks,&lt;br /&gt;
&lt;br /&gt;
This post is to list all what you need as resources to get up to speed for SharePoint 2013. Either as Developer or ITPro you can check out below links and hopefully will be useful.&lt;br /&gt;
&lt;br /&gt;
Feel free to drop comments with more resources you are using to learn about SharePoint 2013.&lt;br /&gt;
&lt;br /&gt;
1) &lt;b&gt;SharePoint 2013 Developer Training Videos:&lt;/b&gt;&lt;br /&gt;
http://msdn.microsoft.com/en-us/office/apps/fp123626.aspx&lt;br /&gt;
&lt;br /&gt;
2) &lt;b&gt;SharePoint 2013 ITPro Training Videos:&lt;/b&gt;&lt;br /&gt;
http://technet.microsoft.com/en-us/sharepoint/fp123606&lt;br /&gt;
&lt;br /&gt;
3) &lt;b&gt;SharePoint 2013 TechNet KB url for all topics:&lt;/b&gt;&lt;br /&gt;
http://technet.microsoft.com/en-us/library/cc303422(v=office.15).aspx&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;A free ebook for SharePoint 2013 Deployment guide:&lt;/u&gt;&lt;br /&gt;
http://www.microsoft.com/en-us/download/details.aspx?id=30384&lt;br /&gt;
&lt;br /&gt;
Hope this helps.&lt;br /&gt;
&lt;br /&gt;
Happy SharePointing!&lt;br /&gt;
&lt;br /&gt;
-ME&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</description><link>http://moustafa-arafa.blogspot.com/2012/07/sharepoint-2013-training-materials.html</link><author>noreply@blogger.com (Mostafa Elzoghbi)</author><thr:total>0</thr:total><gd:extendedProperty name="commentSource" value="1" /><gd:extendedProperty name="commentModerationMode" value="FILTERED_POSTMOD" /></item></channel></rss>
