Category - HTML
Results 121 - 140 of 223
30 Jul 2018 30 Jul 2018 0 Comments  24455 Views
ASP.Net  AJAX  jQuery  HTML  JSON  Table  MVC
Here Mudassar Ahmed Khan has explained with an example, how to convert HTML Table rows (data) to JSON array and send to Controller’s Action method using jQuery AJAX in ASP.Net MVC Razor.

The data from all the rows of the HTML Table will be added to an array of JSON objects and sent to Controller using jQuery AJAX.

Finally, the data will be saved to database using Entity Framework in ASP.Net MVC Razor.
30 Jul 2018 30 Jul 2018 0 Comments  69693 Views
Here Mudassar Ahmed Khan has explained with an example, how to display HTML content (data) from Model in View in ASP.Net MVC Razor.

The HTML content (data) will be displayed using Html.Raw Helper method in ASP.Net MVC Razor.
23 Jul 2018 23 Jul 2018 1 Comments  37875 Views
ASP.Net  AJAX  SQL Server  jQuery  HTML  JSON  Table  MVC  TextBox
Here Mudassar Ahmed Khan has explained with an example, how to validate at-least one CheckBox is checked (selected) from a group of multiple CheckBoxes in ASP.Net MVC Razor.

There is no Data Annotation attribute to perform at-least one CheckBox checked (selected) validation in a group of multiple CheckBoxes, hence the validation will be performed using jQuery in ASP.Net MVC Razor.

The list of CheckBoxes will be populated from database using Model in ASP.Net MVC Razor.
20 Jul 2018 20 Jul 2018 1 Comments  21212 Views
ASP.Net  ADO.Net  HTML  Table  MVC
Here Mudassar Ahmed Khan has explained with an example, how to perform CRUD operation (Create, Read, Update and Delete) using ADO.Net in ASP.Net MVC Razor.

CRUD operation in simple terms means Select, Insert, Edit, Update and Delete operations.
06 Jul 2018 06 Jul 2018 0 Comments  42175 Views
Here Mudassar Ahmed Khan has explained with an example, how to sort (reorder) Table rows with jQuery using Drag and Drop method.

The HTML Table rows will be sorted (reordered) with Drag and Drop method using the jQuery UI Sortable Plugin.
04 Jul 2018 04 Jul 2018 0 Comments  36033 Views
Here Mudassar Ahmed Khan has explained with an example, how to use For Each loop for populating DropDownList using Model in ASP.Net MVC Razor.

HTML SELECT element will be created in View and a For Each loop will be executed over the Model to create and add HTML OPTION elements to the DropDownList.

The Selected Value of DropDownList is easily available using Model or using Request.Form collection, but in order to get the Selected Text, the Selected Text is copied to a Hidden Field using jQuery and then it is fetched inside Controller in ASP.Net MVC Razor.
22 Jun 2018 01 Aug 2018 4 Comments  135967 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.
19 Jun 2018 19 Jun 2018 1 Comments  7015 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.
04 Jun 2018 04 Jun 2018 0 Comments  65481 Views
Here Mudassar Ahmed Khan has explained with an example, how to convert (export) HTML Table to Excel file using JavaScript.

Using plain JavaScript it is not possible to convert HTML Table to Excel and hence this article will use how to convert (explain) HTML Table to Excel file with the help of the jQuery table2excel plugin.
17 Apr 2018 17 Apr 2018 0 Comments  14351 Views
ASP.Net  HTML  MVC  Word
Here Mudassar Ahmed Khan has explained with an example, how to convert Office Word document (Doc & Docx) files to HTML in ASP.Net MVC Razor.

The Office Word document i.e. Doc & Docx files will be first uploaded, then it will be converted to HTML using Microsoft Office Interop Library and finally it will be displayed in View in ASP.Net MVC Razor.
17 Apr 2018 17 Apr 2018 0 Comments  31146 Views
ASP.Net  HTML  Word
Here Mudassar Ahmed Khan has explained with an example, how to convert Office Word document (Doc & Docx) to HTML using C# and VB.Net.

The Office Word document (Doc & Docx) will be converted to HTML using Microsoft Office Interop Library in C# and VB.Net.
13 Apr 2018 13 Apr 2018 0 Comments  37105 Views
ASP.Net  HTML  MVC  Word
Here Mudassar Ahmed Khan has explained with an example, how to display Word document (DOC and DOCX) files in Web Page (View) in ASP.Net MVC Razor.

The Word document will be first uploaded, then it will be converted to HTML using Microsoft Office Interop Library and finally the converted HTML it will be displayed in View in ASP.Net MVC Razor.
14 Mar 2018 14 Mar 2018 0 Comments  13627 Views
Here Mudassar Ahmed Khan has explained with an example, how to export Partial View to Excel file in ASP.Net MVC Razor.

First the Grid (Html Table) will be populated from database using Entity Framework inside the Partial View and then the HTML Table will be sent as HTML string to the Controller which ultimately will be exported to Excel file in ASP.Net MVC Razor.
06 Mar 2018 06 Mar 2018 0 Comments  19442 Views
ASP.Net  YouTube  HTML  MVC
Here Mudassar Ahmed Khan has explained with an example, how to play (embed) YouTube Videos in ASP.Net MVC Razor.

The ID of the YouTube video will be extracted and the extracted YouTube Video ID is appended to the YouTube embed video URL which is ultimately assigned to HTML IFRAME element in ASP.Net MVC Razor.
22 Feb 2018 22 Feb 2018 0 Comments  17152 Views
Here Mudassar Ahmed Khan has explained with an example, how to play (embed) YouTube Videos using IFRAME with AutoPlay in HTML Page.
22 Feb 2018 22 Feb 2018 0 Comments  12296 Views
Here Mudassar Ahmed Khan has explained with an example, the different ways to embed and play YouTube Videos in HTML Page.

Following are the different ways to embed and play YouTube Videos in HTML Page.
1. IFRAME element.
2. EMBED element.
22 Feb 2018 22 Feb 2018 0 Comments  32268 Views
Here Mudassar Ahmed Khan has explained with an example, how to play (embed) YouTube Videos without using IFRAME in HTML Page.

In order to play (embed) YouTube Videos without using IFRAME, the EMBED element needs to be used as the HTML5 Video tag is not meant to play videos from other domain URLs and hence the only solution other than IFRAME is the EMBED tag.
22 Feb 2018 22 Feb 2018 0 Comments  2246 Views
Here Mudassar Ahmed Khan has explained with an example, how to play (embed) YouTube Videos in HTML Page.

This article will explain how to play (embed) YouTube Videos in HTML Page using:
1. IFRAME element.
2. EMBED element.
17 Jan 2018 17 Jan 2018 2 Comments  25201 Views
Here Mudassar Ahmed Khan has explained with an example, how to export HTML string to Excel file in ASP.Net MVC Razor.

First the Grid (Html Table) will be populated from database using Entity Framework and then the HTML Table will be sent as HTML string to the Controller which ultimately will be exported to Excel file in ASP.Net MVC Razor.
16 Jan 2018 16 Jan 2018 0 Comments  112733 Views
Here Mudassar Ahmed Khan has explained with an example, how to open Fileupload (Upload File) on Button Click using JavaScript and jQuery.

This article will illustrate how to hide HTML Fileupload element and open its File Upload dialog on click of a Button using JavaScript and jQuery.
Results 121 - 140 of 223