New Additions
Here Mudassar Ahmed Khan has explained with an example, how to pass and show Exception (Error) message from Controller to View in ASP.Net MVC Razor.
The Exception (Error) message will be displayed from Controller to View using Html.ValidationSummary Html Helper function in ASP.Net MVC Razor.
Here Mudassar Ahmed Khan has explained with an example, how to add (apply) CSS Class (Styles) in Html.ValidationMessageFor Helper method in ASP.Net MVC Razor.
The Html.ValidationMessageFor Helper method has a parameter named htmlAttributes which is used for adding (applying) CSS Class (Styles) to the displayed validation message.
Here Mudassar Ahmed Khan has explained with an example, how to use TinyMCE RichTextBox (RichTextEditor) in ASP.Net MVC Razor.
TinyMCE RichTextBox (RichTextEditor) is a JavaScript plugin and is applied to the HTML TextArea element.
This article will also illustrate how to validate contents of TinyMCE RichTextBox (RichTextEditor) using Data Annotations in ASP.Net MVC Razor.
Here Mudassar Ahmed Khan has explained a simple tutorial on what is the AllowHtml attribute in ASP.Net MVC, what is its use and also examples explaining its usage.
AllowHtml attribute is used to allow sending HTML content or codes to server which by default is disabled by ASP.Net MVC to avoid XSS (Cross Site Scripting) attacks.
Here Mudassar Ahmed Khan has explained a simple tutorial on what is the ValidateInput(false) attribute in ASP.Net MVC, what is its use and also examples explaining its usage.
ValidateInput(false) attribute is used to allow sending HTML content or codes to server which by default is disabled by ASP.Net MVC to avoid XSS (Cross Site Scripting) attacks.
Here Mudassar Ahmed Khan has explained with an example, what is the difference between ValidateInput(false) v/s AllowHtml in ASP.Net MVC i.e. what is the difference between ValidateInput(false) and AllowHtml in ASP.Net MVC.
Both ValidateInput(false) and AllowHtml attributes are used to allow sending HTML content or codes to server which by default is disabled by ASP.Net MVC to avoid XSS (Cross Site Scripting) attacks.
Here Mudassar Ahmed Khan has explained with an example, how to solve the error exception occurring in ASP.Net MVC i.e. A potentially dangerous Request.Form value was detected from the client.
The error exception A potentially dangerous Request.Form value was detected from the client occurs someone tries to submit HTML or JavaScript code to server. Such exception comes since ASP.Net MVC has inbuilt mechanism to prevent XSS (Cross Site Scripting) attacks.
Here Mudassar Ahmed Khan has explained with an example, how to use the RegularExpression Data Annotation in ASP.Net MVC Razor.
The RegularExpression Data Annotation can be applied to Model Properties and used for enforcing Regular Expression (Regex) validations in ASP.Net MVC Razor.
Here Mudassar Ahmed Khan has explained with an example, how to perform Mobile Number (Cellphone Number) TextBox validation i.e. exact Ten Numbers (Digits) validations using Data Annotations and RegularExpressions (Regex) on Client Side in ASP.Net MVC Razor.
A Mobile Phone Number (Cellphone Number) is a numeric value with exact ten (10) digits and such validation can be achieved using the RegularExpression Data Annotation attribute in ASP.Net MVC Razor.
Here Mudassar Ahmed Khan has explained with an example, how to perform Decimal TextBox Validation i.e. Decimal Number with maximum up to two decimal places validation using Data Annotations on Client Side in ASP.Net MVC Razor.
The Client Side Decimal TextBox Validation i.e. Decimal Number with maximum up to two decimal places validation will be performed using Model class and RegularExpression Data Annotation attribute in ASP.Net MVC Razor.
Here Mudassar Ahmed Khan has explained with an example, how to perform AlphaNumeric TextBox Validation i.e. allow only Alphabet and Number characters validation on Client Side using Data Annotations and jQuery in ASP.Net MVC Razor.
The Client Side AlphaNumeric TextBox Validation i.e. allow only Upper Case and Lower Case Alphabet and Number (Digits) characters validation will be performed using Model class and Data Annotation attributes.
Here Mudassar Ahmed Khan has explained with an example, how to zoom (enlarge) images on MouseOver in ASP.Net GridView using jQuery ElevateZoom Image Zoom plugin.
The images will be displayed in GridView and the jQuery ElevateZoom Image Zoom plugin will be applied to all the images present in the GridView control, which will then allow to zoom (enlarge) each image present in the GridView control.
Here Mudassar Ahmed Khan has explained with an example, how to compare (match) values of Model Properties using Data Annotations in ASP.Net MVC Razor.
Here Mudassar Ahmed Khan has written an informative article on how to download Crystal Reports for Visual Studio 2015 (VS 2015).
Here Mudassar Ahmed Khan has explained with an example, how to implement and display jQuery Modal Popup Dialog (Window) in ASP.Net MVC Razor.
The Partial View will be populated and fetched using jQuery AJAX and finally it will be rendered as HTML inside jQuery Modal Dialog (Modal Popup window).
Here Mudassar Ahmed Khan has explained with an example, how to implement Google RECaptcha in ASP.Net MVC Razor
The Google RECaptcha version 2.0 allows to validate the Captcha response on client side using its Callback functions.
This article will also explain how to validate Google RECaptcha version 2.0 on Client Side using JavaScript and jQuery in ASP.Net MVC Razor.
Here Mudassar Ahmed Khan has explained with an example, how to create Password TextBox using Html.TextBoxFor in ASP.Net MVC Razor.
Html.TextBoxFor cannot create Password TextBox and hence Html.PasswordFor Helper function needs to be used.
This article will also explain how to perform Client Side validation for Password TextBox using Model class and Data Annotation attributes in ASP.Net MVC Razor.
Here Mudassar Ahmed Khan has explained with an example, how to build a simple user registration form that will allow user register to the website in ASP.Net MVC Razor. The Registration Form will save (insert) data to database using Entity Framework.
User will fill up the registration form with details such as username, password, email address, etc. and these details will be saved in the database table.
The registration form will also make sure that duplicate username and email addresses are not saved by verifying whether username and email address must not exists in the table.
Here Mudassar Ahmed Khan has explained with an example, how to implement validate Google RECaptcha version 2.0 on Client Side using JavaScript and jQuery in ASP.Net.
The Google RECaptcha version 2.0 allows to validate the Captcha response on client side using its Callback functions.
The Google RECaptcha will be validated using ASP.Net RequiredField Validator.
Here Mudassar Ahmed Khan has explained with an example, how to display data in Single View from Multiple Tables in ASP.Net MVC Razor.
By default, a View can be associated with only one Model and hence this article will explain how to display data in Single View from Multiple Tables using Multiple Models in ASP.Net MVC Razor.
Here Mudassar Ahmed Khan has explained with an example, how to perform Client Side Password and Confirm Password validation in ASP.Net MVC Razor using Data Annotations and jQuery.
The Client Side Password and Confirm Password validation will be performed using Model class and Data Annotation attributes.
Here Mudassar Ahmed Khan has explained a simple Tutorial with an example, how to use MySql Database with MySql Connector in ASP.Net MVC Razor.
By default, .Net Framework cannot connect to MySql Database and hence MySql Connector needs to be downloaded.
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Multiple Models to one View in ASP.Net MVC Razor.
By default, a View can be associated with only one Model and hence this article will explain how to pass (send) Multiple Models to one View in ASP.Net MVC Razor.
Here Mudassar Ahmed Khan has explained with an example, how to perform Client Side Email Validation using Data attribute and jQuery in ASP.Net MVC Razor.
The Client Side Email Validation will be performed using Model class and Data Annotation attributes.
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) data from one Controller to another Controller in ASP.Net MVC Razor.
This article will illustrate how to pass (send) data from one Controller to another Controller using TempData object in ASP.Net MVC Razor.