Wednesday, January 28, 2009

ASP.Net MVC RC1 is available now

Hi all,

Long time waiting for this new baby,ASP.Net MVC (Model View Controller) RC1 is available now to download,and the final release will be there soon,this is a big SHIFT for all web developers.

New Architecture design for our web application will be implemented using this new pattern,i suggest if you didn't know enough information about Model View Controller Pattern,see below link :

http://www.c-sharpcorner.com/UploadFile/napanchal/MVCDesign12052005035152AM/MVCDesign.aspx

once you understand the purpose and the use of it for your enterprise project,here you can see the new features for RC1:

http://weblogs.asp.net/scottgu/archive/2009/01/27/asp-net-mvc-1-0-release-candidate-now-available.aspx

Happy times with .Net

Regards,
Mostafa arafa

Thursday, January 22, 2009

Update Lists in SharePoint using web services

Hi,

I got the following email from a developer,it says as follows:
"
Hello Moustafa. I don't want to bother you, but I've been searching for examples of MOSS 2007 Web Services development, and I have not found anything. I have this situation. There is a document library with some items on it. I need to edit some properties of a document (on that doc libr) from an Office application, using the MOSS web services. I need to change the Title and the Category of that document, but I don't know how to do that. Could you help me please, with an example that could guide to me how to do that? ( If you have some interesting links or something about MOSS 2007 development (using web services or api) I'm going to thank you so much ). Regards ...
------------------------------------------------ Ing. José Mauricio Molina Pérez

"

He wants to update Document Library which is a list using sharepoint web services, and he has a windows application which will invoke this web serivce to update document information,Here you go :

http://msdn.microsoft.com/en-us/library/ms440289.aspx

If you want a useful site for sharepoint developers :
http://www.microsoft.com/click/SharePointDeveloper/


Hope this helps.


Regards,
Mostafa arafa

Friday, January 16, 2009

New Edition of Patterns and Best Practices Application Architecture Guide

Hi Folks,

New Edition V2.0 has been released from patterns and best practices application architecture Team,This Guide is very important for Architect & senior Designer and Developer who are building and design Complex Enterprsie Projects and Application using .Net Technology.

The book is showing the following:
1) Different patterns for design your applications (Web,Mobile,RIA).
2) Layering and Tiers in .Net.
3) SharePoint LOB Applications.
4) How to build Services using different technologies in .Net.
5) Deployment scenarios in .net.

Download link:
http://www.codeplex.com/AppArchGuide/


I recomment every one to read it to follow the best practices and avoid common pitfalls in your design.

Regards,
Mostafa arafa

Wednesday, January 14, 2009

3 Tier Architecture Using VS.Net 2008

Hi All,

I had delivered a session on How to build "3 Tier Architecture Applications Using .Net" and i have uploaded my presentation and my demo project on the following link:

1) Presentation:
http://cid-4bc94054914a6469.skydrive.live.com/self.aspx/Blog%20Code/3LayerArchitectureUsingdotNet011209.pptx

2) Demo Solution contains 3 Layer Asp.Net website and 3 Tier Asp.net Web Application:
http://cid-4bc94054914a6469.skydrive.live.com/self.aspx/Blog%20Code/EAADemos.zip

Hope this helps.

Regards,
Mostafa arafa

Friday, January 09, 2009

Cookies in Asp.net - An Important Tip

Hi folks,

In this post i want to show how to create a cookie in asp.net page which contains a counter ,This counter will be increased every time you visit the page.

The tip which i want to highlight here-(I got this question from one of my firends),That when you try to update the cookie value in asp.net you have to update the expiry date of the httpcookie object,otherwise the asp.net will store the default value which is : 1/1/0001,which let your code to create a cookie every time instead of update the counter value in the cookie file.

The code to do this on page_load event in C# :


if (Request.Cookies["counter"] != null)
{
HttpCookie coo=Request.Cookies["counter"];
int x = int.Parse(coo.Value);
x += 1;
coo.Value = x.ToString();
coo.Expires = DateTime.Now.AddDays(7);// if you omit this line,the cookie will be created each time.

Response.Cookies.Add(coo);
Response.Write(coo.Value);
}
else
{
HttpCookie coo = new HttpCookie("counter", "0");
coo.Expires = DateTime.Now.AddDays(7);
Response.Cookies.Add(coo);
Response.Write(coo.Value);
}



The code for this post is uploaded here:
http://cid-4bc94054914a6469.skydrive.live.com/self.aspx/Blog%20Code/CookiePageTest.aspx.cs


Hope this helps.

Regards,
Mostafa arafa

Monday, December 29, 2008

Application Lifecycle Management (ALM) in Visual Studio 2008

Hi All,

A wonderful series of webcasts for managing application lifecycle in VS 2008, this series contains 4 webcasts each cover one role in SDLC activities.

If you are familiar with VS team system 2005, this series covers a little bit new features which shipped with VS 2008.

If you are not familiar with VS2005 or VS 2008 Team suite capabilities, then these webcasts are really a MUST good start to you.

The best is to watch all of them, but if you are playing a specific role in the application lifecycle, you can jump to the specific role which you play in your company as I will describe below.

Web cast 1: covers Business analyst and project manager roles
Including: Tasks, Different Reports, Code churn Report, bugs report, Qos(Quality of Service) document and Requirements, Persona, MSF and CMMI methodologies.
http://www.microsoft.com/events/series/detail/webcastdetails.aspx?seriesid=127&webcastid=5404

Webcast 2: covers Architect role
Including: Application designer, system designer, logical data center designer & Top-Down Design
http://www.microsoft.com/events/series/detail/webcastdetails.aspx?seriesid=127&webcastid=5405

Webcast 3: covers Developer role
Including: code analysis, code analysis configuration and code matrix.
http://www.microsoft.com/events/series/detail/webcastdetails.aspx?seriesid=127&webcastid=5406

Webcast 4: covers Tester role
Including: Load, Unit, Manual, Web, Generic and Orders tests in VS 2008http://www.microsoft.com/events/series/detail/webcastdetails.aspx?seriesid=127&webcastid=5407


Happy New Year for all and Happy New Hijri Year for all muslims.

See you all next year since this is the last post for this year 2008 :)




Regards,
Mostafa arafa

Thursday, December 25, 2008

super & base keywords in Java and C#

Hi folks,

Nowadays i'm doing some programming in java,and since all of you know each of these languages are close to each other, I was implementing a class diagram i have done it on class designer in VS 2008.

I had the following inheritance case : a parent class called Publication and a dervied class called Book from publication.

I want in this post to highlight the difference to call the parent class from the derived class in java vs. C#,this is very useful for C# developers if they are reading any java code or vice versa.

If you try to implement the following: the derived class constructor is calling the parent class constructor the code in java and C# will be as follows:

// Java Code :

public class Publication
{
public Publication(String title)
{
this.title=title;
}
}
public class Book extends Publication
{
public Book(String title,String ISBN)
{
//super means the constructor of book will pass title to the publication constructor (Parent).
super(title);
this.ISBN=ISBN;
}
}


// C# Code :

public class Book
{
public Book(string title, string issueNo) : base(title)
{ // base means the title parameter will be passed to the parent class constructor.
this.issueNo = issueNo;
}
}

base and super keywords in c# and java are doing the same functionality by calling the parent class constructor in this case.

base and super used to refer to the parent class in general.


Hope this tip be useful.



Regards,
Mostafa arafa

Monday, December 22, 2008

Get Started with SharePoint Development...

Hi All,

For .Net Experienced developers a good resource to start SharePoint Development,here is the link :

http://www.microsoft.com/click/SharePointDeveloper/

Also, ebook for free "Getting Started with Sharepoint" ,Download link:

http://windowsitpro.com/eBooks/index.cfm?ebid=eeac7d33-c9bb-4059-a0ad-480799e93512&fuseaction=ebook


Regards,
Mostafa arafa

Saturday, December 06, 2008

New useful tool to prepare your web server or development machine

Hi All,

We used when we want to install any software for our web servers or any of our development machine is to read alot of KBs article how to install .Net Framewort 3.5,SQL 2005 express edition...etc. and it was a long process you have to have your DVDs or download it from your partnet account website,then start your software installtion process.

Microsoft has released a new wonderful tool,to prepare all required software for installations on your machine,it shows you all available SW based on your machine OS and architecture (32 or 64bit ) and make it available on a list.

The new tool called "Web platform installer",and you can download it from the following link:
http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx

This tool should be used by .net web developers who prepare their web server or system admins.

The tool has alot of sensitive tools and updates,the person who use it should be aware about the tools and the conflict that might happen.

I have used it and it's pretty easy and fast :).



Regards,
Mostafa arafa

Sunday, November 30, 2008

Write arabic even if you don't have arabic keyboard !!

Hi All,

I had a problem few days ago,I was working on a laptop with English Only characters and i can't write arabic character because i can't memorize the location of arabic keys.

One of my friends sent me a very good site which you can write your word in english and it will be converted to Arabic word representation,then you can (copy) take this word and search on Live.come with it for example.

I want to get this word written in arabic : Shahr,write it on this site it will be converted to : شهر



Wonderful site url :
http://www.yamli.com/editor/ar/




Regards,
Mostafa arafa

Friday, November 21, 2008

Test the performance of you web pages

Hi All,

For all web developers to measure the performance of your web pages,now MS has released new tool to visualize analyze the performance of your roundtrip in your webpages called VRTA.

download link :

http://www.microsoft.com/downloads/details.aspx?familyid=119F3477-DCED-41E3-A0E7-D8B5CAE893A3&displaylang=en


This is not a substitute for the tests that you can do it with VS team system testing tools such as : load test.

hope this helps.


Regards,
Mostafa arafa

Tuesday, November 18, 2008

What's behind XBAP web pages ?

Hi Folks,

If you visit one of the sites and you find an interactive website pages with xbap extensions ( such as : home.xbap) those files are .net pages with WPF browser template project available in .Net 3.5.

Don't think its a silverlight pages or any other technology has been used,it's pure WPF browser project in .net 3.5,and all created pages take xbap extension,those files have the power of .net framework in your browser,it's tested on IE and FireFox,I have test it also on the last version of Firefox 3.0.4,it works fine.

If you would like to see a sample of simple interactive page using WPF browser application,here it is :

http://www.hanselman.com/clickonce/takethree/WpfBrowserApplication1.xbap

If you are familiar with ClickOnce Deployment in Windows Applications in .Net,it's the same but on your browser :).

It's really a great step in the web development by using the full power of .Net functionality and deployment mechanism on your favorite web browser.


If you want the sample code for the posted sample,it is here :

http://www.hanselman.com/blog/FirefoxWPFAndXBAP.aspx

Happy .Netting...



Regards,
Mostafa arafa

Saturday, November 15, 2008

Different Languages Interface for VS 2008

Hi All,

MS has released a new tool since that all developers all over the globe can see the translation of VS Interface in different languages other than english Interface (CLIP).

This is one announcement,the other one which is interesting,that i have participated in this product 1 year ago and i'm very happy to see it in place and all MVPs efforts are presented in one of the most favourable products for all .Net developers.

One Question will come which language did I support in the VS Dictionary : Sure It's Arabic Translations for VS.


Tool download link :

http://www.microsoft.com/downloads/details.aspx?FamilyID=4E5258D2-52F4-46B8-8B74-DA2DBEC7C2F7&displaylang=en


Happy time with VS IDE.

Regards,
Mostafa arafa

Friday, November 07, 2008

jQuery ? New easy life for web developers

Hi All,

For all web developers,new library which ease your life to write javascript code and it is also integrated with VS.Net IDE. if you have your asp.net application or Ajax enables asp.net application you can now download an integrate jQuery with your existing web application or website.

jQuery gives you a great advantage of manipulating your html elements by providing an API selector with the intellisense in VS.Net.

Read more and the download link of jQuery Library :
http://jquery.com/

How to integrate jQuery in your asp.net application:
http://www.hanselman.com/blog/jQuerytoshipwithASPNETMVCandVisualStudio.aspx

Scott Gu announcing the jQuery integration with VS.Net :
http://weblogs.asp.net/scottgu/archive/2008/09/28/jquery-and-microsoft.aspx

Happy .Net programming :)







Regards,
Mostafa arafa

Thursday, November 06, 2008

Download SharePoint 2007 VPC Now

Hi All,

If you are looking to work or evaluate SharePoint 2007 for training or development purposes,here's the full download for SharePoint 2007 VPC Files:

http://www.microsoft.com/downloads/details.aspx?FamilyID=67f93dcb-ada8-4db5-a47b-df17e14b2c74&DisplayLang=en

Thanks Microsoft :)

If you are one of who like to create their VPC manually, here's a great post for this :

http://www.pptspaces.com/sharepointreporterblog/Lists/Posts/Post.aspx?ID=28


Regards,
Mostafa arafa

PDC 2008 Videos

Hi All,

Best link to view a categorized videos of PDC 2008 Event :

http://channel9.msdn.com/pdc2008/

Regards,
Mostafa arafa

Saturday, November 01, 2008

Integrate your SQL Reporting Services Reports in MOSS 2007

Hi Folks,

Out of the box add-on for MOSS 2007 which you can deploy your Sql Reporting Services Reports in MOSS 2007 Sites,Download the Add-on now and you can add Report Viewer webpart and integrate your created reports inside SharePoint Sites ,Download Link :

http://www.microsoft.com/downloads/details.aspx?FamilyID=1e53f882-0c16-4847-b331-132274ae8c84&displaylang=en

Note: This build working only with SQL 2005 SP2

Hope this helps.

Regards,
Mostafa arafa

Friday, October 31, 2008

Friday, October 24, 2008

WOW... Get Started with SQL 2008

Hi Folks,


New Site has been published for New MS Product SQL 2008, if you are developer,IT Professional or want to know about the product for fun,Get started with this site :

http://www.microsoft.com/sql/experience/html/Default.aspx?loc=en



Regards,
Mostafa arafa

Sunday, October 19, 2008

Next MS Event @ Gulf - Register Now !

Hi All,

"IT Evolution 08" Event is the new MS Event will be around on November 2008 at all Gulf Cities, Register Now and Book your seat in any city in Gulf.

Registration site :

http://www.microsoft.com/middleeast/gulf/ITEvolution/IT_Times/default.htm



Regards,
Mostafa arafa