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

<channel>
	<title>OmanDev &#187; Microsoft</title>
	<atom:link href="http://www.omandev.net/tag/microsoft/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.omandev.net</link>
	<description>Technical, computer related articles and projects.</description>
	<lastBuildDate>Sat, 17 Jul 2010 18:54:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Exchange 2010 DAG problem?</title>
		<link>http://www.omandev.net/2010/03/exchange-2010-dag-problem/</link>
		<comments>http://www.omandev.net/2010/03/exchange-2010-dag-problem/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 10:30:37 +0000</pubDate>
		<dc:creator>khalid.almamari</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[mail database]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.omandev.net/2010/03/exchange-2010-dag-problem/</guid>
		<description><![CDATA[Hay,
So I was working on Exchange 20210 and I thought of sharing this with you. As you all know Exchang 2010 comes with new database availability feature called &#8220;Database Availability Group&#8221; or DAG.This Clustering feature allow creating database copies across servers, data centers, or even across countries. DAG works as replication boundary for databases and it works per membership   . if a server is member of a DAG [...]


Related posts:<ol><li><a href='http://www.omandev.net/2009/12/oman-government-sign-new-enterprise-agreemant-with-microsoft/' rel='bookmark' title='Permanent Link: Oman Government Sign New Enterprise Agreemant with Microsoft'>Oman Government Sign New Enterprise Agreemant with Microsoft</a></li>
<li><a href='http://www.omandev.net/2010/02/tchat-event-for-15-feb-2010/' rel='bookmark' title='Permanent Link: TChat  event for 15 feb 2010'>TChat  event for 15 feb 2010</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hay,</p>
<p>So I was working on Exchange 20210 and I thought of sharing this with you. As you all know Exchang 2010 comes with new database availability feature called &#8220;Database Availability Group&#8221; or DAG.This Clustering feature allow creating database copies across servers, data centers, or even across countries. DAG works as replication boundary for databases and it works per membership <img src='http://www.omandev.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . if a server is member of a DAG it can create and get copies of databases in the DAG when needed (you can specify which database or databases).</p>
<p><img src="http://www.omandev.net/wp-content/uploads/2010/03/031010_1030_Exchange2011.png" alt="" /></p>
<p>If you are working with Exchange 2010 and try to create Database Availability Group (DAG), then u may have come across this weird error message that does not tell you anything when you try to join the first node in the DAG. Ok, let&#8217;s recap a lab scenario:</p>
<ul>
<li>You installed 2 exchange servers.</li>
<li>You already successful on creating the DAG.</li>
<li>When u try to add the first node this error come up:</li>
</ul>
<p>&#8221; A server-side database availability group administrator operation failed. Error: The operation failed with message: Error 0&#215;6f7 (The stub received bad data) from cli_RpccCreateCluster</p>
<p>Error 0&#215;6f7 (The stub received bad data) from cli_RpccCreateCluster</p>
<p>Warning:</p>
<p>The operation wasn&#8217;t successful because an error was encountered. You may find more details in log file</p>
<p>&#8220;C:\ExchangeSetupLogs\DagTasks\dagtask_XXXXXXXXXXXXXXXXXXX_add-databaseavailabilitygroupserver.log&#8221;</p>
<p><img src="http://www.omandev.net/wp-content/uploads/2010/03/031010_1030_Exchange2012.jpg" alt="" /></p>
<p>The solution: it is a small thing you missed actually. Just adding the default gateway on NIC will solve it. The second server I added was smooth I didn&#8217;t have to add the gateway!</p>
<p>The reason is that it seems the DAG creation is not complete (specifically the cluster related resources and configuration) until the first node is created.</p>
<p>I hope that was informative for you.</p>
<p>More Resources:</p>
<ul>
<li><a href="http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/a8c59d3f-04f0-4fda-9ff8-d66181ec72e6/">http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/a8c59d3f-04f0-4fda-9ff8-d66181ec72e6/</a></li>
<li><a href="http://www.shudnow.net/2009/10/29/exchange-2010-rtm-dag-using-server-2008-r2-%E2%80%93-part-1/">http://www.shudnow.net/2009/10/29/exchange-2010-rtm-dag-using-server-2008-r2-–-part-1/</a></li>
<li><a href="http://www.thecabal.org/2009/12/busting-the-exchange-trusted-subsystem-myth/">http://www.thecabal.org/2009/12/busting-the-exchange-trusted-subsystem-myth/</a></li>
<li><a href="http://technet.microsoft.com/en-us/library/dd638129.aspx">http://technet.microsoft.com/en-us/library/dd638129.aspx</a></li>
<li><a href="http://msexchangeteam.com/videos/9/drandha/entry451348.aspx">http://msexchangeteam.com/videos/9/drandha/entry451348.aspx</a></li>
</ul>


<p>Related posts:<ol><li><a href='http://www.omandev.net/2009/12/oman-government-sign-new-enterprise-agreemant-with-microsoft/' rel='bookmark' title='Permanent Link: Oman Government Sign New Enterprise Agreemant with Microsoft'>Oman Government Sign New Enterprise Agreemant with Microsoft</a></li>
<li><a href='http://www.omandev.net/2010/02/tchat-event-for-15-feb-2010/' rel='bookmark' title='Permanent Link: TChat  event for 15 feb 2010'>TChat  event for 15 feb 2010</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.omandev.net/2010/03/exchange-2010-dag-problem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oman Government Sign New Enterprise Agreemant with Microsoft</title>
		<link>http://www.omandev.net/2009/12/oman-government-sign-new-enterprise-agreemant-with-microsoft/</link>
		<comments>http://www.omandev.net/2009/12/oman-government-sign-new-enterprise-agreemant-with-microsoft/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 12:15:52 +0000</pubDate>
		<dc:creator>khalid.almamari</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Agreemant]]></category>
		<category><![CDATA[Exceed]]></category>
		<category><![CDATA[Exchange 2010]]></category>
		<category><![CDATA[ITA]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office 2010]]></category>
		<category><![CDATA[OHI]]></category>
		<category><![CDATA[Oman Government]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.omandev.net/?p=241</guid>
		<description><![CDATA[ 
The government have now license for Windows 7 Congratulations for all for the renewal of Oman-Microsoft agreement. It has been known that the actual signing was last week but it only showed up today on the ITA.Gov.OM . the greemant with microsoft has new proxy (Exceed) insted of the last agreemant (OHI).
Ok, here is the [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img class="alignnone" src="http://www.ita.gov.om/ITAPortal/Data/News/FID2009123010595366/1.jpg" alt="" width="388" height="181" /> </p>
<p>The government have now license for Windows 7 Congratulations for all for the renewal of Oman-Microsoft agreement. It has been known that the actual signing was last week but it only showed up today on the ITA.Gov.OM . the greemant with microsoft has new proxy (Exceed) insted of the last agreemant (OHI).</p>
<p>Ok, here is the great news: in addition that we will have Exchange 2010, Windows 7, Office 2010, and all the other cool Microsoft products we will have 60 training opportunities (on Microsoft Products) for college graduates! The new (renewed) agreement has more focus on training and accountability on number of the actual used licenses unlike the previous garment. I will update this post as i have more details on the terms of the agreement. You can read the news on the ITA website: <a href="http://www.ita.gov.om">www.ita.gov.om</a> .</p>
<p>As conclusion I would like to say:: YaaaaYYyyyy Windows 7  for my Laptop Wooohooo.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.omandev.net/2009/12/oman-government-sign-new-enterprise-agreemant-with-microsoft/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ويندوز 7</title>
		<link>http://www.omandev.net/2008/11/%d9%88%d9%8a%d9%86%d8%af%d9%88%d8%b2-7/</link>
		<comments>http://www.omandev.net/2008/11/%d9%88%d9%8a%d9%86%d8%af%d9%88%d8%b2-7/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 18:14:00 +0000</pubDate>
		<dc:creator>Ali AL Lawati</dc:creator>
				<category><![CDATA[أخبار]]></category>
		<category><![CDATA[عربي]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[ميكرسوفت]]></category>
		<category><![CDATA[نظام تشغيل]]></category>
		<category><![CDATA[ويندوز]]></category>

		<guid isPermaLink="false">http://66.147.242.194/~omandevn/wrd1/wordpress/?p=80</guid>
		<description><![CDATA[
  الوحش الجديد الذي ستطلقه الميكرسوفت في الأسواق خلال السنة القادمة ويندوز 7 أصبح حديث الكل هذه الأيام و على عكس كل مرة حين يكون المبرمجين و منتقدي ميكرسوفت متشائمين من المشاكل التي ستأتي مع الإصدار الأحدث هذه المرة الجميع متفائل (طبعا ما ممكن تكون فيه مشاكل قد فيستا على كل حال   [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><img src="http://docs.google.com/File?id=dhxndmq_1084sm66252t_b" width="111" height="111" />
<div style="text-align: right;">  الوحش الجديد الذي ستطلقه الميكرسوفت في الأسواق خلال السنة القادمة <a title="ويكي" target="_blank" href="http://ar.wikipedia.org/wiki/%D9%88%D9%8A%D9%86%D8%AF%D9%88%D8%B2_7" id="fxa0">ويندوز 7</a> أصبح حديث الكل هذه الأيام و على عكس كل مرة حين يكون المبرمجين و منتقدي ميكرسوفت متشائمين من المشاكل التي ستأتي مع الإصدار الأحدث هذه المرة الجميع متفائل (طبعا ما ممكن تكون فيه مشاكل قد فيستا على كل حال <img src='http://www.omandev.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>حاليا هناك نسخ خاصة جدا من هذا الويندوز متوفر لبعض المبمرجين و التقنيين المختارين من ميكرسوفت حتى يقوموا بتجربته و يقترحوا التحسينات الممكنة و على حسب ما يتم الحديث عن هذه الإصدارة من ويندوز أظنها ستكون من الإصدارات التي نجحت نجاحا بهارا مثل ويندوز 95 و ويندوز 98 و ويندوز اكس بي كلها حققت النجاح و الإستقرار الكامل للمستخدم</p>
<p>هنا اود ذكر بعض الخصائص التي سيمتاز بها هذا الإصدار من ويندوز</p>
<p><span style="font-size:100%;"><b>القائمة الجانبية غير موجودة </b></span><br />كل من استخدم فيستا يعرف القائمة الجانبية و البريمجيات المفيدة جدا التي توفرها، بالنسبة لي في اول الأيام ظننتها اروع عمل قامت به ميكرسوفت (طبعا لم احب استخدام فيستا ابدا) فوضع القائمة الجانبية لجوجل ديسكتوب على الاكس بي ، ولكن بعد فترة بسيطة لاحظت ان مضارها أكثر من فوائدها فهي أولا تستعمل جزء من الشاشة قد أحتاجه في الكثير من الأحيان (حين تصميم المواقع، لعبة معينة ، متابعة فلم) وغيرها كما انني لم ارتح لوضع البريمجيات في تلق القائمة فكنت اضعها حرة على سطح المكتب، أظن ان الكثير من برمجي ميكرسوفت يوافقوني في شعوري هذا لهذا لا أثر للقائمة الجانبية في ويندوز 7 ولكن بريمجيات تلك القائمة موجودة و بامكان المستخدم ان يضعها حيث يشاء على سطح المكتب</div>
<div id="euvy" style="padding: 1em 0pt; text-align: right;"><img style="width: 600px; height: 375px;" src="http://docs.google.com/File?id=dhxndmq_1085ghb9bggt_b" /></div>
<div style="text-align: right;"><span style="font-size:130%;"><b>تطوير البرامج الكلاسيكية</b></span><br />بالبرامج الكلاسيكية أقصد البرامج التي نعرفها بالويندوز ولا نستغني عنها منذ 95 او ربما منذ ويندوذ 3.11  لا اذكر ، و هم برنامج الورد باد و الرسام و الآلة الحاسبة ، نعم هذه البرامج في كل اصداره نراها كما كانت ولكن هذه المرة لا فتم تغييرهم كليا حتى اصبحوا اقرب إلى برامج أوفيس 2007 ،</p>
<p><span style="font-size:130%;"><b>استهلاك أقل للبطارية </b></span><br />مستخدمي اللابتوبات سيفرحون كثيرا لمعرفتهم ان استهلاك ويندوز 7 للبطارية أقل بكثير عن فيستا فستدوم بطارية الكمبيوتر المحمول اكثر بكثير .</p>
<p><span style="font-size:130%;"><b>تحكم في رؤية برامج الشغالة عند الساعة</b></span><br />كمبيوتري مثلا دائما فيه الكثير من البرامج التي تشتغل و تملأ المساحة الفاضية جمب الساعة و هذا شي مؤذي كثير في برامج انا ما احتاج اشوفها لأني دائما ابيها شغالة ويندوز 7 يسمح بهذا الشيء</div>
<div id="tu9e" style="padding: 1em 0pt; text-align: right;"><img src="http://docs.google.com/File?id=dhxndmq_10866968fmd5_b" width="391" height="349" /></div>
<div style="text-align: right;"><span style="font-size:130%;"><b>حركاااات</b></span><br />ويندوز 7 لديه بعض الحركات المميزة، احد هذه الحركات للأشخاص امثالي إلي شاشتنا تمتلي بعشرات النوافذ الشغالة و كل شي مغطي على كل شي ، في مثل هذا الوضع في ويندوز 7 كل ما عليك هو ان تمسك احد النوافذ بالماوس و تنفضها و كل شي ثاني راح يطير من مكانه مثل الغبار و تتنظف الشاشة لنافذتك<br /><embed flashvars="intl_lang=en-us&amp;photo_secret=cbd5644492&amp;photo_id=3005356495" allowfullscreen="true" bgcolor="#000000" src="http://www.flickr.com/apps/video/stewart.swf?v=61761" type="application/x-shockwave-flash" width="499" height="312"></embed></p>
<p><span style="font-size:130%;"><b>قائمة التشغيل </b></span><br />قليلون جدا من يستغنون عن قائمة التشغيل في الويندوز ولكن لم نرا تغييرا كبيرا في هذه القائمة سوى اللون و يمكن شي بسيط في فيستا اما الآن يمكنكم رؤية التغيير من الفيديو التالي</p>
<p><embed flashvars="intl_lang=en-us&amp;photo_secret=d90a4243f6&amp;photo_id=3005903840" allowfullscreen="true" bgcolor="#000000" src="http://www.flickr.com/apps/video/stewart.swf?v=61761" type="application/x-shockwave-flash" width="500" height="394"></embed></p>
<p>فشو رأيكم بالويندوز الجديد هل تظنونه سينجح ام &#8230;&#8230;&#8230;&#8230;&#8230;</p>
<p>للمزيد<br />http://lifehacker.com/5078582/top-10-things-to-look-forward-to-in-windows-7</p>
<p></div>
<div class="blogger-post-footer">Omandev.net Arabic feed</div>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.omandev.net/2008/11/%d9%88%d9%8a%d9%86%d8%af%d9%88%d8%b2-7/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>sharepoint SPListItem</title>
		<link>http://www.omandev.net/2008/11/sharepoint-splistitem/</link>
		<comments>http://www.omandev.net/2008/11/sharepoint-splistitem/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 08:15:00 +0000</pubDate>
		<dc:creator>Ali AL Lawati</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[enterprise]]></category>
		<category><![CDATA[lits]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[portal]]></category>
		<category><![CDATA[sharepoint]]></category>

		<guid isPermaLink="false">http://66.147.242.194/~omandevn/wrd1/wordpress/?p=49</guid>
		<description><![CDATA[Shareponit SPListItem
Hello there, well to be honest I am not a fan of Microsoft technologies well any how I cannot live without my XP these days (one of the best things the big M have done), but SharePoint is completely different story. It has a lot of potentials and abilities and once I saw the [...]


Related posts:<ol><li><a href='http://www.omandev.net/2009/05/sharepoint-list-data-with-sql-server-reporting-services/' rel='bookmark' title='Permanent Link: SharePoint List data with SQL Server Reporting Services'>SharePoint List data with SQL Server Reporting Services</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Shareponit SPListItem</p>
<p>Hello there, well to be honest I am not a fan of Microsoft technologies well any how I cannot live without my XP these days (one of the best things the big M have done), but SharePoint is completely different story. It has a lot of potentials and abilities and once I saw the first time I said to myself this will finish all of my working place&#8217;s problems. But I had a feeling something will be wrong in it. To be honest I have faced a lot of challenges many times I was surprised with what SharePoint provides and many many more times I was disappointed with its limitations. But thanks to friends and fellow bloggers who helped a lot out of the problems.</p>
<p>This time I was facing a very strange problem that I am even not sure if it is SharePoint problems or it is just our environment, I was not able to find any similar problem on the net so thought I could document it here.</p>
<p>SharePoint API provides a great API to access list items , search them, add, delete, and update them that save you the effort of reading list information from SharePoint’s database directly, and it is provided in a very nice way. But the updating I have had some strange issue with that I have solved now, but I couldn’t understand why I got it in the first place.</p>
<p>Here I will give you the basics of accessing items from SharePoint Lists and show the issue</p>
<p>To access a list is very simple make a variable and assign it the url where you see the list in the sharepoint</p>
<p><span style="color: rgb(51, 204, 0); font-style: italic;">string </span><span style="font-style: italic;">strDashListRoot = &#8220;</span><span style="color: rgb(255, 0, 0); font-style: italic;">http://[Servername]/[subsite/subsite]/Lists/[list name]/AllItems.aspx</span><span style="font-style: italic;">&#8220;;</span><span style="color: rgb(153, 255, 153); font-style: italic;">// just copy past the link form your browser</span></p>
<p>Then from the link you can get the site and website and the list easily</p>
<p><span style="color: rgb(51, 102, 255); font-style: italic;">using </span><span style="font-style: italic;">(</span><span style="color: rgb(51, 204, 0); font-style: italic;">SPSite </span><span style="font-style: italic;">site = </span><span style="color: rgb(51, 102, 255); font-style: italic;">new </span><span style="font-style: italic;">SPSite(strDashListRoot))</span><br /><span style="font-style: italic;">{</span></p>
<p><span style="color: rgb(51, 102, 255); font-style: italic;">using </span><span style="font-style: italic;">(</span><span style="color: rgb(51, 204, 0); font-style: italic;">SPWeb </span><span style="font-style: italic;">web = site.OpenWeb())</span><br /><span style="font-style: italic;">{</span><br /><span style="color: rgb(51, 204, 0); font-style: italic;">SPList list </span><span style="font-style: italic;">= web.Lists["</span><span style="color: rgb(255, 0, 0); font-style: italic;">listname</span><span style="font-style: italic;">"]; </span><span style="color: rgb(153, 255, 153); font-style: italic;">// do not forget to close the brakets after your code is done } }</span></p>
<p>Now here you can access the list items easily</p>
<p><span style="font-style: italic;"><span style="color: rgb(51, 204, 0);">String </span>information=Lists.items[<span style="color: rgb(51, 102, 255);">2</span>][“<span style="color: rgb(255, 0, 0);">fieldname</span>”].toString(); </span><span style="color: rgb(51, 255, 51); font-style: italic;">// simply put the index of the item you need and then the field name that you want to show</span></p>
<p>Now the main thing here is when we want to change field of the list item we could do easily this</p>
<p><span style="font-style: italic;">Lists.items[<span style="color: rgb(51, 102, 255);">2</span>][“<span style="color: rgb(255, 0, 0);">fieldname</span>”]= “<span style="color: rgb(255, 0, 0);">myvalues</span>”;</span></p>
<p><span style="font-style: italic;">Lists.items[<span style="color: rgb(51, 102, 255);">2</span>].Update();</span></p>
<p>but that didn’t worked in our environment while doing the folling code worked !!!</p>
<p><span style="color: rgb(51, 204, 0); font-style: italic;">SPListItem</span><span style="font-style: italic;"> item = Lists.items[</span><span style="color: rgb(51, 102, 255); font-style: italic;">2</span><span style="font-style: italic;">];</span></p>
<p><span style="font-style: italic;">item[“<span style="color: rgb(255, 0, 0);">fieldname</span>”]= “<span style="color: rgb(255, 102, 102);">myvalues</span>”;</span></p>
<p><span style="font-style: italic;">item.Update();</span></p>
<p>Well may be that is something related to our environment but hope through this simple blog you know how to access and edit SPList items.
<div class="blogger-post-footer">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
omandev.net English feed</div>


<p>Related posts:<ol><li><a href='http://www.omandev.net/2009/05/sharepoint-list-data-with-sql-server-reporting-services/' rel='bookmark' title='Permanent Link: SharePoint List data with SQL Server Reporting Services'>SharePoint List data with SQL Server Reporting Services</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.omandev.net/2008/11/sharepoint-splistitem/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Calling ASP Functions from java script</title>
		<link>http://www.omandev.net/2008/08/calling-asp-functions-from-java-script/</link>
		<comments>http://www.omandev.net/2008/08/calling-asp-functions-from-java-script/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 20:49:00 +0000</pubDate>
		<dc:creator>Ali AL Lawati</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[NET]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://66.147.242.194/~omandevn/wrd1/wordpress/?p=35</guid>
		<description><![CDATA[Umm i think some may get confused that isn&#8217;t it that Ajax can call server side functions from JavaScript ?? ! well thats write but i want to talk about those people who are still using Microsoft .NET 2005 and not lucky enough to get gaya or other ajax plug-in from Microsoft, or those who [...]


Related posts:<ol><li><a href='http://www.omandev.net/2008/08/adding-a-friendly-splash-waiting-screen-while-the-code-is-being-executed-in-asp/' rel='bookmark' title='Permanent Link: Adding a friendly splash (waiting screen) while the code is being executed in ASP'>Adding a friendly splash (waiting screen) while the code is being executed in ASP</a></li>
<li><a href='http://www.omandev.net/2007/10/jcodebase-1-1-beta/' rel='bookmark' title='Permanent Link: JCodeBase 1.1 Beta'>JCodeBase 1.1 Beta</a></li>
<li><a href='http://www.omandev.net/2008/09/javascript-the-language-for-them-all-jquery-with-gridview-in-asp-net-2-0/' rel='bookmark' title='Permanent Link: JavaScript, the language for them all!! (Jquery with gridview in asp.net 2.0)'>JavaScript, the language for them all!! (Jquery with gridview in asp.net 2.0)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Umm i think some may get confused that isn&#8217;t it that <a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29" title="Ajax (programming)" rel="wikipedia" target="_blank" class="zem_slink">Ajax</a> can call server side functions from JavaScript ?? ! well thats write but i want to talk about those people who are still using <a href="http://www.microsoft.com/" title="Microsoft" rel="homepage" target="_blank" class="zem_slink">Microsoft</a> .NET 2005 and not lucky enough to get gaya or other ajax plug-in from Microsoft, or those who are still not ready to deal with Ajax and other Ajax/<a href="http://en.wikipedia.org/wiki/JavaScript" title="JavaScript" rel="wikipedia" target="_blank" class="zem_slink">JavaScript</a> plug ins such as jquery .</p>
<p>Most of the old .NET developer are used to have their <a href="http://en.wikipedia.org/wiki/Web_application" title="Web application" rel="wikipedia" target="_blank" class="zem_slink">web applications</a> deal with post-backs but very few of them really knows how these post-backs do work. well most of the things in .NET application are done depending on  client side script (JavaScript).</p>
<p>For that when you have a good amount of JavaScript controlling your application you need to know how to make that JavaScript call an asp function.</p>
<p>Before explaining how to do this first lets see why do we need it ? Well may be you will need to do something with JavaScript before calling server side codes, like validating entered data ( well i know that is a very bad example since in .NET there is a ready validating controles) a better example lets say you have created a web page that allow users to draw for example mind maps, or charts, or mouse gestures so that when user drag his mouse in a specific way there will be a specific response from your web application.</p>
<p>well in all of these examples JavaScript or JavaScript frameworks like jquery  will be doing most of the things in the application here the decision to make a server side function call should be given to java script code.</p>
<p>Calling asp.NET function by JavaScript you need to do a simple trick,</p>
<p>Well as i found from some of my tries to  get there, that you can not do it having normal form buttons you will need at least one &#8220;link button&#8221; (sure you can hide it, but NEVER make visible = false because it will be removed from the HTML code; instead apply <a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets" title="Cascading Style Sheets" rel="wikipedia" target="_blank" class="zem_slink">CSS</a> style on it that make it hidden)</p>
<p><span style="color: rgb(255, 0, 0);">visibility</span>:<span style="color: rgb(51, 102, 255);">hidden</span>;</p>
<p>then you need to call the post back function that usually is called if you really do click that link_button and in the asp.NET code do call your asp function in the link_button event handler function.</p>
<p>well thats a lot of blah blah, theoretical talks, well then lets get into action then.</p>
<p>here i will show a very simple example (sorry i am out of creativity by now so the example will be very simple) i created a very simple page with a text box an a link button</p>
<p><textarea rows="10" cols="40"><br />
<form id="form1" runat="server">>
<div>      <asp:textbox id="TextBox1" runat="server"></asp:textbox>  </div>
<p>     <asp:linkbutton style="font-weight: bold;">CssClass=&#8221;hdn&#8221; ID=&#8221;LinkButton1&#8243; runat=&#8221;server&#8221;         onclick=&#8221;LinkButton1_Click&#8221;>LinkButton</asp:linkbutton> </p>
</p></form>
<p></textarea></p>
<p>i added a very simple response code to the link button click event in C#<br /><textarea rows="5" cols="40">  protected void LinkButton1_Click(object sender, EventArgs e)  {  Response.Write(&#8220;yooohooo&#8221;);  }</textarea><br />well yeah this is our server side function (i told you this week i am out of creativity).</p>
<p>and then i added they style to hide the link button<br /><textarea rows="4" cols="40"><br />
<style>    .hdn{ visibility:hidden;    }    </style>
<p></textarea><br />now even in the IDE you just cannot see the link button</p>
<p>now the real thing is in the java script i have done a very simple and a very boring thing witch is on each button press it makes the text in the text box uppercase and if the length of text reaches to 6 it will call the server side function</p>
<p>i have added it just before the end of form tag</p>
<p><textarea rows="20" cols="40">     <script type="text/javascript">    var t =document.getElementById("TextBox1");          // well you can imagen this function is any thing else may be figuring out how did you made your mouse gesture     document.getElementById("TextBox1").onkeydown = function ss(){        t.value= t.value.toUpperCase();            // may be here there is a condition to know if it should call the server side function       if(t.value.length >5)      {   __doPostBack('LinkButton1','');        }        }    </script></textarea><br />well you can see the real point is in the function  __doPostBack(&#8221;,&#8221;)<br />which is created by Visual Studio it self you do not have to program it and it can call server side functions by its own way (well what you do not know that there are a lot of hidden fields in your page that are getting created by visual studio and are used for these kind of stuff)</p>
<p>and the reason i say that we must have a link button is that i found Visual studio do not create this JavaScript function __doPostBack(&#8221;,&#8221;)  if we dont have link button</p>
<p>well thats all for today i think hope this thing (which i had to search and try a lot of things to be able to do) will help you in your projects
<div class="blogger-post-footer">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
omandev.net English feed</div>


<p>Related posts:<ol><li><a href='http://www.omandev.net/2008/08/adding-a-friendly-splash-waiting-screen-while-the-code-is-being-executed-in-asp/' rel='bookmark' title='Permanent Link: Adding a friendly splash (waiting screen) while the code is being executed in ASP'>Adding a friendly splash (waiting screen) while the code is being executed in ASP</a></li>
<li><a href='http://www.omandev.net/2007/10/jcodebase-1-1-beta/' rel='bookmark' title='Permanent Link: JCodeBase 1.1 Beta'>JCodeBase 1.1 Beta</a></li>
<li><a href='http://www.omandev.net/2008/09/javascript-the-language-for-them-all-jquery-with-gridview-in-asp-net-2-0/' rel='bookmark' title='Permanent Link: JavaScript, the language for them all!! (Jquery with gridview in asp.net 2.0)'>JavaScript, the language for them all!! (Jquery with gridview in asp.net 2.0)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.omandev.net/2008/08/calling-asp-functions-from-java-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Surface &#8220;A Rich Man&#8217;s Gadget&#8221;</title>
		<link>http://www.omandev.net/2007/07/surface-a-rich-mans-gadget/</link>
		<comments>http://www.omandev.net/2007/07/surface-a-rich-mans-gadget/#comments</comments>
		<pubDate>Tue, 24 Jul 2007 05:52:00 +0000</pubDate>
		<dc:creator>szakwani</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Future]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Microsoft Surface]]></category>
		<category><![CDATA[Multi Touch Screen]]></category>
		<category><![CDATA[Surface]]></category>
		<category><![CDATA[Table top]]></category>
		<category><![CDATA[Touch Screen]]></category>

		<guid isPermaLink="false">http://66.147.242.194/~omandevn/wrd1/wordpress/?p=6</guid>
		<description><![CDATA[

Surface
                Did we really reach the future? Some would stop and think on such a question but it surely is a leap ahead for the Microsoft Surface. The device is actually sculptured into a kitchen table topped with a 30 [...]


Related posts:<ol><li><a href='http://www.omandev.net/2009/11/sonyericsson-x2-vs-htc-touch-pro-2-fight-of-the-windows-mobile-slider-phones-giants/' rel='bookmark' title='Permanent Link: SonyEricsson X2 vs HTC Touch Pro 2 (Fight of the Windows Mobile Slider Phones Giants)'>SonyEricsson X2 vs HTC Touch Pro 2 (Fight of the Windows Mobile Slider Phones Giants)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_emLBvfBccUg/RqWWyY1Y1GI/AAAAAAAAAAM/GtqQQ8L4Xn8/s1600-h/logo.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 101px; height: 95px;" src="http://1.bp.blogspot.com/_emLBvfBccUg/RqWWyY1Y1GI/AAAAAAAAAAM/GtqQQ8L4Xn8/s200/logo.JPG" alt="" id="BLOGGER_PHOTO_ID_5090640746216215650" border="0" /></a>
<p class="MsoNormal"><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">  <v:stroke joinstyle="miter">  <v:formulas>   <v:f eqn="if lineDrawn pixelLineWidth 0">   <v:f eqn="sum @0 1 0">   <v:f eqn="sum 0 0 @1">   <v:f eqn="prod @2 1 2">   <v:f eqn="prod @3 21600 pixelWidth">   <v:f eqn="prod @3 21600 pixelHeight">   <v:f eqn="sum @0 0 1">   <v:f eqn="prod @6 1 2">   <v:f eqn="prod @7 21600 pixelWidth">   <v:f eqn="sum @8 21600 0">   <v:f eqn="prod @7 21600 pixelHeight">   <v:f eqn="sum @10 21600 0">  </v:formulas>  <v:path extrusionok="f" gradientshapeok="t" connecttype="rect">  <o:lock ext="edit" aspectratio="t"> </v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style="'width:48pt;">  <v:imagedata src="file:///C:\DOCUME~1\szakwani\LOCALS~1\Temp\msohtml1\01\clip_image001.png" title=""> </v:shape><![endif]--><!--[if !vml]--><!--[endif]--></p>
<p class="MsoNormal"><span style="line-height: 115%;font-size:18;" >Surface<o:p></o:p></span></p>
<p class="MsoNormal"><span style="">            </span>    Did we really reach the future? Some would stop and think on such a question but it surely is a leap ahead for the Microsoft Surface. The device is actually sculptured into a kitchen table topped with a 30 inch touch screen in a clear acrylic frame. It has got five cameras to enable multi touch access to music, photos, surf the web, exchange files and many more. </p>
<p class="MsoNormal"><span style="">            </span>    Surface history takes us back to 25 years of history when <st1:place st="on"><st1:placename st="on">Toronto</st1:placename> <st1:placetype st="on">University</st1:placetype></st1:place> started working on the multi touch screen (Bell Labs). The surface idea came later on 2001 with the Microsoft Company. In 2003 a go ahead was given by the Microsoft chairman Bill Gates. After a month a T1 prototype was later design which was based on IKEA table.</p>
<p class="MsoNormal"><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">  <v:stroke joinstyle="miter">  <v:formulas>   <v:f eqn="if lineDrawn pixelLineWidth 0">   <v:f eqn="sum @0 1 0">   <v:f eqn="sum 0 0 @1">   <v:f eqn="prod @2 1 2">   <v:f eqn="prod @3 21600 pixelWidth">   <v:f eqn="prod @3 21600 pixelHeight">   <v:f eqn="sum @0 0 1">   <v:f eqn="prod @6 1 2">   <v:f eqn="prod @7 21600 pixelWidth">   <v:f eqn="sum @8 21600 0">   <v:f eqn="prod @7 21600 pixelHeight">   <v:f eqn="sum @10 21600 0">  </v:formulas>  <v:path extrusionok="f" gradientshapeok="t" connecttype="rect">  <o:lock ext="edit" aspectratio="t"> </v:shapetype><v:shape id="_x0000_s1027" type="#_x0000_t75" style="'position:absolute;" wrapcoords="-105 0 -105 21501 21600 21501 21600 0 -105 0">  <v:imagedata src="file:///C:\DOCUME~1\szakwani\LOCALS~1\Temp\msohtml1\01\clip_image001.png" title="">  <w:wrap type="tight"> </v:shape><![endif]--><!--[if !vml]--><!--[endif]-->    Surface is said to be a new era of computing, although it uses mostly the same consumer<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_emLBvfBccUg/RqWXPo1Y1II/AAAAAAAAAAc/a0o6vq9yJn0/s1600-h/Surface+touch.JPG"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://2.bp.blogspot.com/_emLBvfBccUg/RqWXPo1Y1II/AAAAAAAAAAc/a0o6vq9yJn0/s320/Surface+touch.JPG" alt="" id="BLOGGER_PHOTO_ID_5090641248727389314" border="0" /></a> technology such as a 2GB of RAM, Core 2 Duo chip etc, which seems that “it is going to replace old machines”. The frustrating mess of cables, drivers and protocols that people must use to link their peripheral devices to their personal computers, seems to have come to an end. Surface has no cables or external USB ports for plugging in peripherals. Surface has no keyboard, no mouse, no trackball — no obvious point of interaction except its screen.</p>
<p class="MsoNormal"><!--[if gte vml 1]><v:shape id="_x0000_s1026" type="#_x0000_t75" style="'position:absolute;margin-left:392pt;margin-top:86.85pt;width:198pt;" wrapcoords="-65 0 -65 21513 21600 21513 21600 0 -65 0">  <v:imagedata src="file:///C:\DOCUME~1\szakwani\LOCALS~1\Temp\msohtml1\01\clip_image003.png" title="">  <w:wrap type="tight"> </v:shape><![endif]--><!--[if !vml]--><!--[endif]--><span style="">            </span>    Surface specifications are, a 30-inch multi touch screen displayed in a table-like form, 22 inches high, 21 inches deep, and 84 inches wide. The Surface interior frame is powder-coated steel. The software platform runs on Windows Vista and has wired Ethernet 10/100, wireless 802.11 b/g, and Bluetooth 2.0 connectivity.</p>
<p class="MsoNormal">    How it works, the Surface features a touch interface, but it doesn&#8217;t use a touch screen. Instead, five separate cameras are used to record motion on the table&#8217;s surface. The cameras were <a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_emLBvfBccUg/RqWXd41Y1JI/AAAAAAAAAAk/DHOD3cY3JXE/s1600-h/surface.JPG"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_emLBvfBccUg/RqWXd41Y1JI/AAAAAAAAAAk/DHOD3cY3JXE/s320/surface.JPG" alt="" id="BLOGGER_PHOTO_ID_5090641493540525202" border="0" /></a>needed because of field angle issues. In order to get the table in a small size, five cameras are used so that each one can control a small area of the surface. Having multiple cameras also helps in a better resolution and speed than a single camera with an exceptionally wide-angle view of the table surface. Data is transferred as dots which are called “domino”. The entire surface of Surface is bathed in light, by illuminating the top of the table; the cameras can easily see when things are placed on it. Shining colored light across the surface of the table would spoil the effect, so near-infrared light is used for invisible illumination and not reading heat signatures. </p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Microsoft notes four main components being important in <i>Surface&#8217;s</i> interface: </p>
<p class="ListParagraphCxSpFirst" style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span style="">·<span style="">         </span></span></span><!--[endif]--><span dir="ltr">direct interaction</span></p>
<p class="ListParagraphCxSpMiddle" style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span style="">·<span style="">         </span></span></span><!--[endif]--><span dir="ltr">multi-touch contact</span></p>
<p class="ListParagraphCxSpMiddle" style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span style="">·<span style="">         </span></span></span><!--[endif]--><span dir="ltr">a multi-user experience</span></p>
<p class="ListParagraphCxSpLast" style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family:Symbol;"><span style="">·<span style="">         </span></span></span><!--[endif]--><span dir="ltr">object recognition</span></p>
<p class="MsoNormal" style="text-indent: 0.5in;"><o:p> </o:p></p>
<p class="MsoNormal"><!--[if gte vml 1]><v:shape id="_x0000_s1028" type="#_x0000_t75" style="'position:absolute;margin-left:0;margin-top:32.35pt;width:108pt;" wrapcoords="-165 0 -165 21355 21600 21355 21600 0 -165 0">  <v:imagedata src="file:///C:\DOCUME~1\szakwani\LOCALS~1\Temp\msohtml1\01\clip_image005.png" title="">  <w:wrap type="tight"> </v:shape><![endif]--><!--[if !vml]--><!--[endif]--><span style="">            </span>    Surface’s actual use is not very clear yet as it seems like a rich man’s gadget. The real question <a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_emLBvfBccUg/RqWYQY1Y1KI/AAAAAAAAAAs/vMSCLmt8Ilo/s1600-h/blue+screen.png"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 109px; height: 83px;" src="http://1.bp.blogspot.com/_emLBvfBccUg/RqWYQY1Y1KI/AAAAAAAAAAs/vMSCLmt8Ilo/s320/blue+screen.png" alt="" id="BLOGGER_PHOTO_ID_5090642361123919010" border="0" /></a>that still lies “Is it worth $10k when all that could be done, can actually be done”? Using a normal PC, most of the functionalities can actually be performed in fact by just moving a mouse a couple of inches. The market has seen wonders of Microsoft launching products but all that really matters is consumer’s experience. One wonders if the Surface actually has a blue screen of death. </p>
<p class="MsoNormal"><span style="">            </span></p>
<p class="MsoNormal">    Can you create your own surface? Well I think we all can, having a touch screen with the necessary consumer technology, what is left is applications to display graphic and understand movements, not to forget that a carpenter also plays part in the design.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Link to Microsoft surface: <a href="http://www.microsoft.com/surface/">http://www.microsoft.com/surface</a></p>
<p class="MsoNormal">You-tube links :<object height="350" width="425"><embed src="http://www.youtube.com/v/CZrr7AZ9nCY" type="application/x-shockwave-flash" wmode="transparent" height="350" width="425"></embed></object></p>
<div class="blogger-post-footer">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
omandev.net English feed</div>


<p>Related posts:<ol><li><a href='http://www.omandev.net/2009/11/sonyericsson-x2-vs-htc-touch-pro-2-fight-of-the-windows-mobile-slider-phones-giants/' rel='bookmark' title='Permanent Link: SonyEricsson X2 vs HTC Touch Pro 2 (Fight of the Windows Mobile Slider Phones Giants)'>SonyEricsson X2 vs HTC Touch Pro 2 (Fight of the Windows Mobile Slider Phones Giants)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.omandev.net/2007/07/surface-a-rich-mans-gadget/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
