Category - MVC
Results 1 - 5 of 143
Here Mudassar Ahmed Khan has explained with an example, how to Import (Insert) Excel file data into Database using SqlBulkCopy in ASP.Net MVC Razor.

The uploaded Excel file data will be read using OLEDB library and the read data will be inserted into SQL Server database using SqlBulkCopy.

SqlBulkCopy class as the name suggests does bulk insert from one source to another and hence all rows from the Excel sheet can be easily read and inserted using the SqlBulkCopy class.
Here Mudassar Ahmed Khan has explained with an example, how to upload, read and display CSV file (Text File) data in ASP.Net MVC Razor.
CSV file is a Text file which contains Comma Separated (Comma Delimited) values. The data from a CSV file will be read and then after separating the values, the data will be populated in HTML Table (Grid) format.
Here Mudassar Ahmed Khan has explained with an example, how to upload, read and display Excel file data using OLEDB in ASP.Net MVC Razor.
The uploaded Excel file data will be read using OLEDB library and the read data will be displayed in View in HTML Table (Grid) format.
Here Mudassar Ahmed Khan has explained with an example, how to get ID of last inserted record using Entity Framework in ASP.Net MVC Razor.

When the Form is submitted, the value of the submitted Form fields will be fetched using Entity Framework Model class object and will be inserted into database using Entity Framework. After successful insert, the ID of the last inserted record fetched using SCOPE_IDENTITY will be displayed using JavaScript Alert Message Box.

Entity Framework by default internally uses SCOPE_IDENTITY for fetching ID of the last inserted record.
Here Mudassar Ahmed Khan has explained with an example, how to use Rich Text Editor (WYSIWYG Editor) in ASP.Net MVC 5 Razor.
Rich Text Editor (WYSIWYG Editor) in ASP.Net MVC 5 Razor will be implemented using TinyMCE RichTextBox (RichTextEditor) which is a JavaScript plugin and is applied to the HTML TextArea element.
This article will also illustrate how to validate contents of Rich Text Editor (WYSIWYG Editor) using Data Annotations in ASP.Net MVC 5 Razor.
Results 1 - 5 of 143