Learning Entity Framework

Here are some resource links that will help you get started learning the Entity Framework.
Learn Entity Framework (MSDN site) Entity Framework
101 LINQ Examples – Great Resource to get you started writing queries (C#) 101 LINQ Samples

Working with POCO Entities

POCO Proxies
POCO Proxies Part 1 – ADO.NET Blog – Site Home – MSDN Blogs
POCO Proxies Part 2- Serializing POCO Proxies – ADO.NET Blog – Site Home – MSDN Blogs

POCO Example:

Simple Regular Expressions in Javascript

Need to remove everything except alphabetic/letters in javascript?

Here is a simple example of using javascript to replace/remove characters

Step 1: Create a sample string

var a = “This is a test of the JavaScript RegExp objectZ”

Step 2: Use a regular expression to remove characters that don’t match the characters you want

a.replace(/[^a-zA-Z]/g, ”)

For more hints and examples in using Regular Expressions

Visit JavaScript RegExp Example- Online Regular Expression Tester

Pretty powerful and awesome one you learn how.

ASP.NET Server.Transfer Vs Response.Direct

In essence:

Response.Redirect simply sends a message back to the browser, telling it to move to another page.


Server.Transfer conserves server resources. Instead of telling the browser to redirect, it simply changes the “focus” on the Web server and transfers the request. This means you don’t get as many HTTP requests coming through, which should ease the pressure on your Web server and make your application run faster.

Keep in mind though, because the “transfer” process can work on only those sites running on the server, you can’t use Server.Transfer to send the user to an external site. Only Response.Redirect can do that!!

HTML Validation and DTD In Visual Studio 2005/2008

  1. Some explanations on DTD declarations: http://www.w3.org/QA/2002/04/valid-dtd-list.html
  2. Why XHTML 1.0 Strict is not included in Visual Studio 2005/2008
  3. http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=114516

  4. Proposed Solution: Include only HTML 4.01 Strict, Transitional, Frameset; XHTML 1.0 Strict, Transitional, Frameset; and XHTML 1.1 DTDs as defined by W3C at http://www.w3.org/QA/2002/04/valid-dtd-list.html

    Scott G’s Web log on HTML Validation