Items By Type: Tutorial

Loading ASP.NET Core MVC Views From A Database Or Other Location

21 July 2016 08:56

ASP.NET MVC ASP.NET Core

For the vast majority of applications, the conventional method of locating and loading views from the file system does the job nicely. But you can also load views from other sources including a database. This is useful in scenarios where you want to give users the option to craft or modify Razor files but don't want to give them access to the file system. This article looks at the work required to create a component to obtain views from other sources, using the database as a working example.

Click to read more about Loading ASP.NET Core MVC Views From A Database Or Other Location ...

Viewed 1504 times

4 Comments for this item

Entity Framework Code First and Stored Procedures

16 June 2016 07:38

Entity Framework

A key reason behind the decision to use an ORM such as Entity Framework for your data access is to reduce or eliminate the need to write SQL as part of the development process. Nevertheless, there are times when you might need to make use of database stored procedures, and Entity Framework 6 Code First provides support for using existing stored procedures as well as generating new ones.

Click to read more about Entity Framework Code First and Stored Procedures ...

Viewed 3834 times

3 Comments for this item

Implementing SQL Server Full-Text Search In An ASP.NET MVC Web Application With Entity Framework

13 May 2016 08:13

SQL ADO.NET ASP.NET MVC Entity Framework

The search facility on this site has been rudimentary at best. I have recently upgraded it to take advantage of the Full-Text Search feature in SQL Server. Although it is still a basic implementation, it is a vast improvement on the search system that existed before, which was based on Entity Framework dynamically generating SQL LIKE clauses. This article describes how I got SQL Server Full-Text Search up and running.

Click to read more about Implementing SQL Server Full-Text Search In An ASP.NET MVC Web Application With Entity Framework ...

Viewed 3562 times

2 Comments for this item

The Best Way To Import Data From Excel To SQL Server via ASP.NET

14 April 2016 13:42

ADO.NET ASP.NET MVC ASP.NET Web Forms ASP.NET Web Pages EPPlus

I've seen a lot of questions about the best way to import data from uploaded Excel files to a SQL Server database in an ASP.NET application. Most solutions involve the use of the JET or ACE OLEDB providers to read data from the saved Excel file, and some even show how to use Office Interop to obtain the data. However, all of these solutions rely on additional components being installed on the server, and they also require the uploaded file to be saved somewhere, even temporarily, which creates an additional maintenance task. The solution that follows makes use of a Nuget package that gets deployed with your application and can work with streams, so the uploaded file doesn't need to be saved. It is, in my submission, THE best way to import data from uploaded Excel files to SQL Server in an ASP.NET application.

Click to read more about The Best Way To Import Data From Excel To SQL Server via ASP.NET ...

Viewed 8653 times

3 Comments for this item

Encryption and Decryption in ASP.NET Core

01 March 2016 13:15

ASP.NET MVC ASP.NET Core

The ASP.NET Core framework provides a new API for protecting data, including mechanisms for encryption and decryption. This article takes a quick look at how they can be used.

Click to read more about Encryption and Decryption in ASP.NET Core ...

Viewed 9491 times

1 Comment for this item

View Components in ASP.NET Core MVC

12 February 2016 08:45

ASP.NET MVC ASP.NET 5 ASP.NET Core

The ASP.NET Core MVC framework (previously known as MVC 6) includes a new feature called View Components. Here, I take a look at them, the kind of problems they are designed to solve and how to use them.

Click to read more about View Components in ASP.NET Core MVC ...

Viewed 11217 times

2 Comments for this item

Request.Form Is Empty When Posting To ASPX Page

26 January 2016 07:39

ASP.NET Web Forms

A couple of threads have been posted recently to the ASP.NET forums complaining that values posted to ASPX files are mysteriously disappearing. This post looks at the most likely cause and provides some solutions.

Click to read more about Request.Form Is Empty When Posting To ASPX Page ...

Viewed 3900 times

5 Comments for this item

Configuring SQL Server For Session State In ASP.NET Core 1.0 MVC

11 January 2016 13:14

ASP.NET MVC ASP.NET 5 ASP.NET Core

This article looks at the steps required to enable SQL Server as a backing store for Session State in an ASP.NET Core 1.0 MVC application. It builds on my previous article which introduces how to configure and use session state in ASP.NET 5.

Click to read more about Configuring SQL Server For Session State In ASP.NET Core 1.0 MVC ...

Viewed 7688 times

4 Comments for this item

SEO For ASP.NET Web Sites: Getting content indexed

16 December 2015 07:37

ASP.NET MVC ASP.NET Web Forms ASP.NET 5 SEO

This is the last in a series of articles that explore how to optimise ASP.NET web sites for search engines. Each article in the series concentrates on a specific topic and looks at the features and tools available to ASP.NET developers to help make sites search engine friendly and thereby improve rankings and click throughs from search results. This article explores how to ensure that search engines are aware of all of the content you want them to crawl and how to inform them when the location of that content is no longer valid.

Click to read more about SEO For ASP.NET Web Sites: Getting content indexed ...

Viewed 2660 times

0 Comments for this item

SEO For ASP.NET Web Sites: URLs

07 December 2015 08:57

ASP.NET MVC ASP.NET Web Forms ASP.NET 5 SEO

This is the second in a series of articles that explore how to optimise ASP.NET web sites for search engines. Each article in the series concentrates on a specific topic and looks at the features and tools available to ASP.NET developers to help make sites search engine friendly and thereby improve rankings and click throughs from search results. This article will looks at some best practices concerning your site's URLs and how to make them more user friendly for search engines and humans alike.

Click to read more about SEO For ASP.NET Web Sites: URLs ...

Viewed 5508 times

1 Comment for this item

SEO For ASP.NET Web Sites: Content

01 December 2015 07:53

ASP.NET MVC ASP.NET Web Forms ASP.NET 5 SEO

This is the first in a series of articles that explore how to optimise ASP.NET web sites for search engines. Each article in the series concentrates on a specific topic and looks at the features and tools available to ASP.NET developers to help make sites search engine friendly and thereby improve rankings and click-throughs from search results. This first article will look at how to present your site content to search engines in the most optimal way.

Click to read more about SEO For ASP.NET Web Sites: Content ...

Viewed 3715 times

5 Comments for this item

Uploading files with ASP.NET Core 1.0 MVC

27 October 2015 13:58

ASP.NET MVC ASP.NET 5 ASP.NET Core

Handling file uploads has changed quite a bit in ASP.NET Core. This article looks at the new objects that have been introduced to replace the old System.Web based approach from previous versions of ASP.NET. **Updated to RTM**

Click to read more about Uploading files with ASP.NET Core 1.0 MVC ...

Viewed 27457 times

11 Comments for this item

Uploading multiple files with ASP.NET MVC

19 October 2015 21:09

ASP.NET MVC

I have looked at uploading individual files and downloading multiple files in MVC, and I've had a few requests recently asking me to complete the series by showing how to upload multiple files in an ASP.NET MVC application.

Click to read more about Uploading multiple files with ASP.NET MVC ...

Viewed 27236 times

1 Comment for this item

Downloading multiple files in ASP.NET

09 October 2015 08:53

ASP.NET MVC ASP.NET Web Forms

This short article examines the baffling issue that a lot of people seem to encounter when attempting to send multiple files to the client from an ASP.NET application, and provides the solution.

Click to read more about Downloading multiple files in ASP.NET ...

Viewed 12885 times

3 Comments for this item

ASP.NET Core: Dependency Injection and Services in MVC

24 September 2015 08:05

ASP.NET MVC ASP.NET 5 ASP.NET Core

This is the fourth in a series of articles that explores ASP.NET Core by reconstructing the Visual Studio 2015 Web Application template from an Empty template. This article looks at the role of services and the new ASP.NET Core dependency injection system. The series of articles has been developed using Visual Studio RTM and ASP.NET Core Beta 6. It will be kept updated along with newer releases.

Click to read more about ASP.NET Core: Dependency Injection and Services in MVC ...

Viewed 46376 times

13 Comments for this item

Recent Comments

dave 20/08/2016 14:57
In response to ASP.NET Web Pages vNext or Razor Pages
Do SimplemembershipProvider in viewpages is supported?...

Steven 18/08/2016 04:40
In response to Entity Framework Code First and Stored Procedures
Can you provide the directives (using statements) you're using for EF7 example?...

yousaid 17/08/2016 22:08
In response to ASP.NET Web Pages vNext or Razor Pages
Increasingly, learning a Microsoft tool is no longer worth the return on investment. Too many tools...

jared 12/08/2016 05:54
In response to ASP.NET Web Pages vNext or Razor Pages
hi mike, just for clarification, is viewpages something different from webpages? is webpages still...

Jocke 08/08/2016 20:37
In response to Loading ASP.NET Core MVC Views From A Database Or Other Location
Good post! If this was to be implemented in a CMS where users can change the view files, how would I...

cyrus 05/08/2016 19:49
In response to ASP.NET Web Pages vNext or Razor Pages
I think adding these features to webpages make it complicated. msft forget webpages goal so we move...

Curt Smith 27/07/2016 20:38
In response to ASP.NET Web Pages vNext or Razor Pages
I am only slightly disappointed to hear that WebMatrix is officially dead, because I suspected this...

Darshan Raj L G 27/07/2016 13:20
In response to Implementing SQL Server Full-Text Search In An ASP.NET MVC Web Application With Entity Framework
I though it would be more helpful for somebody who wants to work with Entity Framework... please EF...

Satyabrata 25/07/2016 08:09
In response to Loading ASP.NET Core MVC Views From A Database Or Other Location
Very Interesting!!...

Jerrie Pelser 23/07/2016 05:08
In response to Loading ASP.NET Core MVC Views From A Database Or Other Location
Very cool concept Mike!...