20 signs you don’t want that web design project

by Khaled Elmahdi 24. May 2010 12:05
20 signs you don’t want that web design project [More]

Tags:

Loading Images Asynchronously

by Khaled Elmahdi 11. May 2010 10:19
Do you have a list or a grid where you load lots of images or images from external URLs? I thought so This is a nice way of loading your page faster then load the image asynchronously: Create you image tage like this: <img border="1" src="images/cursor.jpg" onerror="this.src='images/error.jpg... [More]

Tags:

ASP.NET | Design

Calculate distance between 2 points using SQL Server 2008

by Khaled Elmahdi 4. May 2010 17:25
With 2008 it is really easy to calculate the distance between 2 points, just use this query: SELECT geography::Point(lat1, lon1, 4326).STDistance(geography::Point(lat2, lon2, 4326)) 4326 is SRID for WGS84 elipsoidal Earth model

Tags:

SQL

ASP.NET: MemberShip – get the UserID of the User

by Khaled Elmahdi 4. May 2010 17:22
If you want resolve the UserID of the currently logged in user: MembershipUser myObject = Membership.GetUser);string UserID = myObject.ProviderUserKey.ToString();

Tags:

ASP.NET

بالعربي

by Khaled Elmahdi 20. April 2010 22:19
أهلا.. في الأيام القليله القادمة، سوف اقوم بتقديم بعض الدروس الخفيفة لتعليم كيف تصمم مواقع الانترنت. تابع الموقع، وشارك.

Tags:

بالعربي

Visual Studio 2010 and Silverlight 4 Released

by Khaled Elmahdi 15. April 2010 09:00
Microsoft today is officially launching Visual Studio (VS) 2010 at the Microsoft Visual Studio Conference & Expo in Las Vegas. A major update of Microsoft's flagship integrated development environment (IDE), VS2010 incorporates an advanced user interface, powerful integration and customization t... [More]

Tags:

ASP.NET

Web Form Design: Modern Solutions and Creative Ideas

by Khaled Elmahdi 4. March 2010 04:42
Web form is often the main communication channel between visitors and site owners. Feedback is always important which is why it’s necessary to make sure that web forms are easy to understand and intuitive to use. Nevertheless, even in form design one can afford some healthy portion of creativi... [More]

Tags:

Design

Add images to SQL Server 2008 directly with stored procedure

by Khaled Elmahdi 16. February 2010 16:14
This is a query to loop inside a folder and insert all the files inside it to a database table DECLARE @imgString varchar(80)DECLARE @insertString varchar(3000) -- Load the files inisde temp table create table #files (imageName varchar(50))insert into #files exec master..xp_cmdshell  'DIR /b... [More]

Tags: ,

SQL

ASP.NET MVC 2 (RC2)

by Khaled Elmahdi 9. February 2010 10:24
Microsoft has made available a second Release Candidate build for ASP.NET MVC 2, approximately a month and a half after the first RC was delivered to testers. Phil Haack, a senior program manager at Microsoft on the ASP.NET team, revealed that ASP.NET MVC 2 Release Candidate 2 was considered necessa... [More]

Tags:

Inline asp.net tags (<%$, <%=, <%, <%#, etc.)

by Khaled Elmahdi 26. January 2010 10:36
There are all sorts of different inline tags, and I haven't found a place that explains them all in one place, so here is the quick and dirty... <% ... %> The most basic inline tag, basically runs normal code: <% if (User.IsInRole("admin")) { %>  You can see this<% } else { %&... [More]

Tags: , ,

ASP.NET

2009 © Khaled Elmahdi. All rights reserved



About the author

My name is Khaled Elmahdi, and I am a Web Developer.

Follow me on twitter Follow me on Facebook Follow me on Linkedin