ASPSnippets.com
19 Jun 2018 19 Jun 2018 0 Comments  35 Views
Here Mudassar Ahmed Khan has explained with an example, how to disable Cut, Copy and Paste in TextBox or TextArea using AngularJS.

Cut, Copy and Paste operations in TextBox or TextArea can be performed using CTRL button or using Mouse Right Click.

This article will illustrate how to disable Cut, Copy and Paste operations using both CTRL button and Mouse Right Click.
18 Jun 2018 18 Jun 2018 0 Comments  154 Views
Here Mudassar Ahmed Khan has explained with an example, how to set enctype = ‘multipart/form-data’ attribute for Form Tag with Html.BeginForm Helper method in ASP.Net MVC Razor.

The enctype = ‘multipart/form-data’ attribute is required when the Form is used for uploading Files using HTML FileUpload element.
18 Jun 2018 18 Jun 2018 0 Comments  182 Views
Here Mudassar Ahmed Khan has explained with an example, how to clear Model Fields such as TextBox, DropDownList, RadioButtons, CheckBoxes, ListBox etc. after Form Submit in ASP.Net MVC Razor.

The Form Fields which are created using Model class retain the values even after Form submission and hence to clear such Form Fields, Model state needs to be cleared.
15 Jun 2018 15 Jun 2018 0 Comments  163 Views
Here Mudassar Ahmed Khan has explained with an example, how to insert Date in dd/MM/yyyy format in SQL Server Database Table using ASP.Net MVC Razor.

This article will illustrate how to insert Date in dd/MM/yyyy format in Database Table using Stored Procedures and the SQL Server DATEFORMAT command in ASP.Net MVC Razor.
15 Jun 2018 15 Jun 2018 0 Comments  150 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind and display data in GridView in ASP.Net MVC Razor.

In MVC, GridView has been replaced with WebGrid. WebGrid control is used to display data from database in Tabular format in ASP.Net MVC Razor.
15 Jun 2018 15 Jun 2018 0 Comments  147 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement jQuery UI DatePicker (Calendar) in ASP.Net MVC Razor.
15 Jun 2018 15 Jun 2018 0 Comments  128 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement dd/MM/yyyy Date format validation for TextBox in ASP.Net MVC Razor.

The RegularExpression Data Annotation will be used along with Regular Expression (Regex) for enforcing dd/MM/yyyy Date format validation for TextBox in ASP.Net MVC Razor.
14 Jun 2018 14 Jun 2018 0 Comments  266 Views
Here Mudassar Ahmed Khan has explained with an example, how to insert Date in dd/MM/yyyy format in SQL Server Database Table using ASP.Net with C# and VB.Net.

This article will illustrate how to insert Date in dd/MM/yyyy format in Database Table using Stored Procedures and the SQL Server DATEFORMAT command in ASP.Net.
14 Jun 2018 14 Jun 2018 0 Comments  202 Views
Here Mudassar Ahmed Khan has explained with an example, how to convert (select) Date in dd/MM/yyyy format in SQL Server.

This article will illustrate how to use Stored Procedures for converting Dates in dd/MM/yyyy format.
14 Jun 2018 14 Jun 2018 0 Comments  347 Views
Here Mudassar Ahmed Khan has explained a simple tutorial with example, how to perform CRUD operations i.e. Select, Insert, Edit, Update and Delete in ASP.Net Web Forms using C# and VB.Net.
14 Jun 2018 14 Jun 2018 0 Comments  202 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform CRUD operations i.e. Select, Insert, Edit, Update and Delete using ADO.Net in ASP.Net with C# and VB.Net.
14 Jun 2018 14 Jun 2018 0 Comments  248 Views
Here Mudassar Ahmed Khan has explained with an example, what is DATEFORMAT command in SQL Server, why it is used and also an example which helps understanding the DATEFORMAT command in better way.
14 Jun 2018 14 Jun 2018 0 Comments  219 Views
Here Mudassar Ahmed Khan has explained with an example, how to insert and select Date in dd/MM/yyyy format in DateTime Column of SQL Server database.

This article will illustrate how to use Stored Procedures for inserting and selecting Dates in dd/MM/yyyy format.
12 Jun 2018 12 Jun 2018 0 Comments  291 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform simple Email validation using JavaScript.

The value of the Email TextBox will be validated with the help of Regular Expressions in JavaScript.
12 Jun 2018 12 Jun 2018 0 Comments  298 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Date format validation (dd/MM/yyyy) using Regular Expression in C# and VB.Net.

The User will enter Date in TextBox and when the Button is clicked, the Date will be tested against the Regular Expression for dd/MM/yyyy format and if invalid, a Message Box will be displayed.
12 Jun 2018 12 Jun 2018 0 Comments  207 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Email Validation using Regular Expression in C# and VB.Net.

The User will enter Email Address in TextBox and when the Button is clicked, the Email Address will be tested against the Regular Expression and if invalid, a Message Box will be displayed.
11 Jun 2018 11 Jun 2018 0 Comments  309 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Required Field validation for multiple TextBoxes using JavaScript in ASP.Net.
11 Jun 2018 11 Jun 2018 0 Comments  317 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate Date of Birth (DOB) i.e. the Age entered in TextBox is minimum 18 years in ASP.Net using Regular Expression and Custom Validator.
08 Jun 2018 08 Jun 2018 0 Comments  402 Views
Here Mudassar Ahmed Khan has explained with an example, how to set a Custom Date as Today’s Date (Selected Date) programmatically in ASP.Net Calendar control using C# and VB.Net.
08 Jun 2018 08 Jun 2018 0 Comments  384 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate multiple TextBoxes using JavaScript on Button Click in ASP.Net.
06 Jun 2018 06 Jun 2018 0 Comments  468 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Local SSRS Reports in ASP.Net MVC Razor.

When the ReportViewer is configured to process the Report locally then such report is called as Local SSRS Report.
05 Jun 2018 05 Jun 2018 0 Comments  349 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind (populate) Bind (Populate) AutoComplete ComboBox from Database in Windows Forms application using C# and VB.Net.

The population of an AutoComplete ComboBox is done in same way as the normal ComboBox, just the AutoCompleteMode needs to be enabled.
05 Jun 2018 05 Jun 2018 0 Comments  479 Views
Here Mudassar Ahmed Khan has explained with an example, how to get all photos of Album using FaceBook Graph API and the Free ASPSnippets FaceBook API in ASP.Net using C# and VB.Net.
05 Jun 2018 05 Jun 2018 0 Comments  415 Views
Here Mudassar Ahmed Khan has explained with an example, how to export HTML Table to Excel file with a Custom File Name using JavaScript and jQuery.

The jQuery table2excel plugin provides feature to set a Custom File Name of the exported Excel file.
05 Jun 2018 05 Jun 2018 0 Comments  322 Views
Here Mudassar Ahmed Khan has explained with an example, how to fill the ComboBox from Database in Windows Forms using C# and VB.Net.