ASPSnippets.com
22 Jun 2018 22 Jun 2018 0 Comments  38 Views
Here Mudassar Ahmed Khan has explained with an example, how to build an Editable Table in ASP.Net MVC Razor.

Using an Editable Table one can perform CRUD operations i.e. Insert, Edit, Update and Delete operations using an HTML Table in ASP.Net MVC Razor.

This article will illustrate how to build an Editable Table using jQuery AJAX and Entity Framework in ASP.Net MVC Razor.
22 Jun 2018 22 Jun 2018 0 Comments  32 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate (bind) WebGrid using ADO.Net in ASP.Net MVC Razor.

Inside the Controller, the records from the Database Table will be fetched using traditional ADO.Net method i.e. using SqlConnection, SqlCommand, SqlDataAdapter, etc.

The fetched records will be populated into a DataSet which will be ultimately used to populate the WebGrid in ASP.Net MVC Razor.
22 Jun 2018 22 Jun 2018 0 Comments  29 Views
Here Mudassar Ahmed Khan has explained with an example, how to draw Bar and Column charts using ASP.Net Chart control with C# and VB.Net.
22 Jun 2018 22 Jun 2018 0 Comments  28 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Client Side AJAX based Paging using jQuery in ASP.Net GridView with C# and VB.Net.

In Client Side Paging, the GridView will not be populated from Server Side instead, a jQuery function will make an AJAX call to the server and fetch the records from database based on Page Index using SQL Server Custom Paging.

Later using jQuery, the fetched records will be used to populate the GridView on Client Side.
22 Jun 2018 22 Jun 2018 0 Comments  29 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform custom Paging in GridView using jQuery AJAX in ASP.Net with C# and VB.Net.

Custom Paging will be performed within Database using SQL Server Row_Number function and only the records for the requested Page will be sent to the jQuery function using AJAX.

Later using jQuery, the fetched records will be used to populate the GridView on Client Side.
22 Jun 2018 22 Jun 2018 0 Comments  26 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement an Editable WebGrid in ASP.Net MVC Razor.

Using an Editable WebGrid one can perform inline Row Edit operations i.e. Edit, Update and Cancel operations for a particular Row in WebGrid using Buttons in ASP.Net MVC Razor.

This article will illustrate how to build an Editable WebGrid using jQuery AJAX and Entity Framework in ASP.Net MVC Razor.
22 Jun 2018 22 Jun 2018 0 Comments  32 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind (populate) WebGrid using dynamic DataTable (DataSet) in ASP.Net MVC Razor.

Inside the Controller, first a DataTable object is created with some dynamic Columns and then records are added to the DataTable.

Finally the DataTable is added to a DataSet which is later used to populate the WebGrid in ASP.Net MVC Razor.
21 Jun 2018 21 Jun 2018 0 Comments  196 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Bootstrap DatePicker (Calendar) in ASP.Net MVC Razor.

This article will also illustrate how to get the selected Date of the Bootstrap DatePicker (Calendar) inside Controller on Button click in ASP.Net MVC Razor.

The Date format for the selected Date will be set to dd/MM/yyyy format.
20 Jun 2018 20 Jun 2018 0 Comments  288 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the Bootstrap DatePicker (Calendar) with TextBox ASP.Net.

This article will also illustrate how to get the selected Date of the Bootstrap DatePicker (Calendar) on Server Side (Code Behind) on Button click in ASP.Net using C# and VB.Net.

The Date format for the selected Date will be set to dd/MM/yyyy format.
20 Jun 2018 20 Jun 2018 0 Comments  205 Views
Here Mudassar Ahmed Khan has explained with an example, how to disable or prevent CUT, COPY and PASTE operations in TextBox or TextArea using JavaScript.

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

This article will illustrate how to disable Cut, Copy and Paste operations using both CTRL button and Mouse Right Click using JavaScript.
19 Jun 2018 19 Jun 2018 1 Comments  267 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  234 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  282 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  221 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  232 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  226 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  171 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  320 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  242 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  491 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  267 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  277 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  260 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  334 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  342 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.