Tuesday, March 24, 2009

Extension Methods in C#

Hi all,

I have submitted a new article in C# Corner website "Extension methods in C#" since i see this is one of most important C# 3.0  language enhancements.

read more about it :



Regards,
Mostafa arafa

Tuesday, March 17, 2009

ASP.Net web development server stop working in VS 2008

Hi folks,

One of my friends told me that he had a problem in the last couple of days, when he is trying to run asp.net web application; he was getting this error message is showing in his browser:
"Internet Explorer cannot display the webpage"

He uninstalled and installed VS 08 since he taught that this will fix the problem.

If you are facing this problem, simply do the following to fix it :

1) open the following file: "c:\windows\system32\drivers\etc\hosts"

2) Add the following entry in this file:

127.0.0.1        local host


Save the file and then try to run your asp.net application the development server will work perfect :).

Hope this helps.

Reference:

Regards,
Mostafa arafa

Saturday, March 14, 2009

Difference between clear and remove in web.config

Hi all,

I had a discussion with one of my friends about the difference between clear and remove keys in web.config, and I would like to share it with you.
Remove in web.config is to remove a specific key from the web.config, for example:
Note: <> have been replaced by {} because it is not allowed to be posted in http request.

{appSettings}
{add key="MyName" value="Mostafa1"/}
{add key="MyName" value="Mostafa2"/}
{add key="MyName1" value="Mostafa3"/}
{remove key="MyName1"/}
{/appSettings}
Remove is removing the key MyName1.
Clear is used to remove all key mentioned above it, for example:
{appSettings}
{add key="MyName" value="Mostafa1"/}
{add key="MyName" value="Mostafa2"/}
{add key="MyName1" value="Mostafa3"/}
{clear/}
{/appSettings}
I don’t recommend to use clear key in the web.config because it will cause a disaster in your application.
Hope this tip helps.

Thursday, March 12, 2009

Free ASP.Net MVC tutorial

Hi folks,

New ebook for ASP.Net MVC is now available for free to download and start practicing ASP.Net MVC framework:

"There has been a lot of excitement in the community about the new ASP.NET MVC framework that is about to ship (literally any day now – announcement coming soon). As with anything new, people are also asking for more tutorials/samples/documentation that cover how to get started and build applications with it." -- ScottGu

download link :
http://aspnetmvcbook.s3.amazonaws.com/aspnetmvc-nerdinner_v1.pdf

Read more from Scott Gu's Blog:
http://weblogs.asp.net/scottgu/archive/2009/03/10/free-asp-net-mvc-ebook-tutorial.aspx?CommentPosted=true#commentmessage

Happy .Netting.

Regards,
Mostafa arafa

Sunday, March 08, 2009

Export office system files to PDF

Hi all,

Office System 2007 save as PDF add-in now is available without 3rd party tools/add-ins.

Download link:

http://www.microsoft.com/downloads/details.aspx?familyid=4D951911-3E7E-4AE6-B059-A2E79ED87041&displaylang=en

This add-in work with all office 2007 applications such as: Word,Excel,PowerPoint,Access,Visio,InfoPath and OneNote.


Regards,
Mostafa arafa

Wednesday, March 04, 2009

24 Hour Virtual Event - TechEd 2009 Developers !!!

Hi folks,

Do you have a problem of different time zones for online trainings and workshops ? If Yes, here is a good news from microsoft :

Defy all challenges of different time zones, Now you can attend Virtual Tech Ed Event for Developers on 1st April 2009 after your registration. No matter which time zone you belongs to.

Event contains 5 tracks:
1) Windows Development.
2) Windows Mobile Development.
3) Office & Sharepoint development.
4) Developer tools , Languages and tools.
5) Web Development & User Experience.

Read more on below link:

https://www.msfttechdays.com/public/home.aspx

Happy .Netting !!!

Regards,
Mostafa arafa