web stats analysis

Archive for March 22nd, 2013

How to validate html.textboxfor length in asp.net mvc

Min and Max value validation in asp.net mvc

How to create an ASP.NET MVC validation for minimum and maximum length?

Validating html.textboxfor length in asp.net mvc

Length validation in asp.net mvc

Type following code

[MaxLength(20, ErrorMessage = "Password must between 6 to 20"), MinLength(6, ErrorMessage = "Password must between 6 to 20")]

public string Password { get; set; }

How to validate email in asp.net mvc

How to validate email address in asp.net mvc razor

Validate email in Asp.Net MVC 3

Expression for email validation in asp.net mvc

RegularExpression for email validation in asp.net mvc

Type following code
[RegularExpression(".+\\@.+\\..+", ErrorMessage = "Please Enter your valid email")]
public string Email { get; set; }

The type or namespace name ‘MemoryStream’ could not be found (are you missing a using directive or an assembly reference?)

Add Following Namespace in your page
using System.IO;

The name ‘ConfigurationManager’ does not exist in the current context

Add Following Namespace in your page
using System.Configuration;

The type or namespace name ‘Imaging’ does not exist in the namespace ‘System.Windows.Media’ (are you missing an assembly reference?)

The type or namespace name ‘BitmapSource’ could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name ‘TransformedBitmap’ could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name ‘ScaleTransform’ could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name ‘CroppedBitmap’ could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name ‘BitmapEncoder’ could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name ‘BitmapMetadata’ could not be found (are you missing a using directive or an assembly reference?)

Follow the below steps
Step:-1 Right click on your solution explorer
Step:-2 Click on Add Reference
Step:-3 Go to .NET Tab
Step:-4 Select PresentationCore
Step:-5 Click on OK
Step:-6 Now Compile your project

How to integrate paypal in asp.net mvc Razor

Paypal integration in MVC3 and Razor