Regular Expression for Email Address validation in C#

Saturday, June 6th, 2009

The task at hand is to validate the Textbox in asp.net for a valid email address. We can attach a RegularExpressionValidator to the text box with the following regular expression: <asp:RegularExpressionValidator ValidationExpression="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$" ID="rxpEmail" runat="server" ErrorMessage="Email Address is not valid" Text="*" Display="Static" ControlToValidate="txtEmail"></asp:RegularExpressionValidator> UPDATES Well i searched the net for the standards of a valid email [...] Read more »

  • Delicious
  • Yahoo Buzz
  • Digg
  • DZone
  • Facebook
  • LinkedIn
  • Twitter
  • Share/Bookmark

Help file from XML Documentation using NDoc

Friday, May 22nd, 2009

In this article we will explore the usage of Open Source tool NDoc to create MSDN type help file from the xml documentation in a DotNet assembly. To know how we can create XML documentation visit the link XML Documentation in Visual Studio using GhostDoc Ndoc basically uses two sources to generate documentation. One is [...] Read more »

  • Delicious
  • Yahoo Buzz
  • Digg
  • DZone
  • Facebook
  • LinkedIn
  • Twitter
  • Share/Bookmark

XML Documentation in Visual Studio using GhostDoc

Friday, May 22nd, 2009

In this article we will explore how to generate the xml documentation in Visual Studio for our .NET code. Basically Every .NET assembly can contain the comments as documentation which we place after ‘///’(Triple slash) in our code. For example: If we write the following code in visual studio it gets assigned into assembly as [...] Read more »

  • Delicious
  • Yahoo Buzz
  • Digg
  • DZone
  • Facebook
  • LinkedIn
  • Twitter
  • Share/Bookmark

Query to get a particular row in Sql Server 2005

Tuesday, May 19th, 2009

In this article we will look into how to write a sql query to get a particular row in sql. Lets write the code to find 2nd row in a table named mcc_measures. So first we declare a temporary table declare @temp table (id int) No in this temp table we insertrow numbers of the [...] Read more »

  • Delicious
  • Yahoo Buzz
  • Digg
  • DZone
  • Facebook
  • LinkedIn
  • Twitter
  • Share/Bookmark