Ahmed Abu Dagga's Recent Blogshttp://www.ahmedblog.comAhmed Abu Dagga's Recent BlogsRSS Generated By Ahmed Abu Dagga www.ahmedblog.comAhmed Abu DaggaTip: Be careful when making quires using LINQhttp://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=9ac89235-577a-499a-919d-09113c383dd1<p>If you’re using LINQ just be careful when you are using functions or properties while comparing the data</p> <p>For example if you have a date field and you want to get today items, if you use the following code</p> <p class="MsoNormal" style="margin...Tue, 16 Feb 2010 12:48:27 PM G2T.NET1http://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=9ac89235-577a-499a-919d-09113c383dd1#commentsAhmed Abu DaggaDeploy a cutom workflow developed by VS to MOSS 2007http://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=e13bad7e-a097-40f1-8771-264f1e82692eIf you create a workflow using Visual Studio for WSS 3.0 and you want to copy or move this workflow to other server like moving it from development server to the production server, so you have to follow these steps<br /> <br /> -&nbsp; Create a folder w...Wed, 05 Aug 2009 01:40:39 PM G8TSharePoint0http://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=e13bad7e-a097-40f1-8771-264f1e82692e#commentsAhmed Abu DaggaCreating a SharePoint 2007 Web Part with Custom Propertieshttp://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=fc75f33c-56b4-4fd4-aed5-b2f2185d7bc8Sometimes you want to allow the user to customize the web part so the custom properties will help you on this with a good user friendly interface like changing the title for the web part.<br /> <br /> The property for the web part same like any proper...Wed, 22 Jul 2009 09:32:44 AM G7TSharePoint0http://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=fc75f33c-56b4-4fd4-aed5-b2f2185d7bc8#commentsAhmed Abu DaggaEnable Server Side Code in SharePoint Pageshttp://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=f1c76b20-014d-4af5-9939-e3de71953911If you trying to writing server side code in a page in your SharePoint write you will get the error <br /> <br /> <span style="font-weight: bold; ">An error occurred during processing of </span><span style="font-style: italic; ">{page filename}</span>...Mon, 20 Jul 2009 08:19:30 AM G7TSharePoint0http://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=f1c76b20-014d-4af5-9939-e3de71953911#commentsAhmed Abu DaggaUsing Custom ASP.NET Controls in a SharePoint Web Parthttp://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=f32213b8-3418-490b-81c5-8b7ed1b8d1b4<p class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none">You also can add a custom controls “ascx” files which is allowing you to put your controls, html layout, css, javascripts and events handlers, so you can cr...Thu, 16 Jul 2009 09:21:46 AM G7TSharePoint1http://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=f32213b8-3418-490b-81c5-8b7ed1b8d1b4#commentsAhmed Abu DaggaUsing ASP.NET Controls in SharePoint Web Parthttp://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=38dfd4ae-6a3a-4988-8b9d-e24a32e7c5fcI explained before <a href="ShowBlog.aspx?Id=50b61564-5810-425c-b484-f6fd7fc01c1a" target="_blank">how to create a simple SharePoint web part</a>, but if you want to use ASP.NET controls or any of server side controls you can add it in the Controls proper...Thu, 16 Jul 2009 08:12:31 AM G7TSharePoint0http://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=38dfd4ae-6a3a-4988-8b9d-e24a32e7c5fc#commentsAhmed Abu DaggaCreate Simple Web Part for SharePoint 2007http://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=50b61564-5810-425c-b484-f6fd7fc01c1aTo create Web Part for MOSS 2007 you can create new Class Library Project with C# or VB and you have to add “System.Web”, “Microsoft.SharePoint.dll” to the references of the project.<br /><br />After that you can create class and inherit a WebPart class f...Tue, 14 Jul 2009 10:42:33 AM G7TSharePoint6http://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=50b61564-5810-425c-b484-f6fd7fc01c1a#commentsAhmed Abu DaggaCustomize MySite style in MOSS 2007http://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=7a2db822-fa7f-41c1-80ba-ecfa56e16265There are two views to the mysite, the first one for the public view for the anonymous or the other users and the other one for the private view for the same user. <br><br>To change the public view mysite you can change it by SharePoint Designer and open ...Mon, 13 Jul 2009 06:28:54 AM G7TSharePoint1http://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=7a2db822-fa7f-41c1-80ba-ecfa56e16265#commentsAhmed Abu DaggaMOSS 2007 Backup Strategyhttp://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=55a4f24e-44d1-48d5-b5fb-2f88dec311acTo Backup the portal web site which contains everything except users profile and my site and search index database<br><br><strong>Stsadmn –o backup –url http://servername –filename c:\folder\file.bak –overwrite</strong><br><br>The filename path it can be ...Thu, 28 May 2009 11:28:25 AM G5TSharePoint0http://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=55a4f24e-44d1-48d5-b5fb-2f88dec311ac#commentsAhmed Abu DaggaSend a Meeting Request with System.Net.Mailhttp://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=2dc7e9e7-92b4-48cc-a7d1-d6535e5554abThe calendar appointment email is just normal email attached with ics file contains appointment details.<br>This code will show you how to create simple ics file and how to attach it with the email.<br><div><p style="font-family: Courier New; font-size: 9...Sun, 17 May 2009 08:50:15 AM G5TASP.NET25http://www.ahmedblog.com/Blogs/ShowBlog.aspx?Id=2dc7e9e7-92b4-48cc-a7d1-d6535e5554ab#comments