Items By Type: Tutorial

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 533 times

1 Comment 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 1707 times

1 Comment 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 3491 times

2 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 6698 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 8196 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 2553 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 6862 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 2265 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 4449 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 3178 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 RC2**

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

Viewed 20593 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 20975 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 10734 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 39771 times

13 Comments for this item

ASP.NET 5: Configuration

04 September 2015 09:32

ASP.NET MVC ASP.NET 5

This is the third in a series of articles that explores ASP.NET 5 by reconstructing the Visual Studio 2015 Web Application template from an Empty template. This article looks at the new configuration system added to ASP.NET 5 and will also cover how services like Entity Framework and MVC itself are added to the project. The series of articles has been developed using Visual Studio RTM and ASP.NET 5 Beta 6. It will be kept updated along with newer releases.

Click to read more about ASP.NET 5: Configuration ...

Viewed 16376 times

4 Comments for this item

Recent Comments

satyabrata 19/06/2016 18:53
In response to Entity Framework Code First and Stored Procedures
Nice article. Thanks. The menu on this website not working in mobile....

satyabrata 16/05/2016 06:28
In response to Implementing SQL Server Full-Text Search In An ASP.NET MVC Web Application With Entity Framework
This is great. Thanks for sharing....

sharey 06/05/2016 13:15
In response to The Best Way To Import Data From Excel To SQL Server via ASP.NET
nice work gentleman.Really helpfull....

Satyabrata Mohapatra 20/04/2016 04:36
In response to The Best Way To Import Data From Excel To SQL Server via ASP.NET
Another beauty !!!! Thanks for sharing....

Avinash Setty 18/04/2016 18:39
In response to Exploring Prefix: A Free ASP.NET Profiling Tool
This tool is awesome! I am very thankful for introducing this tool for us! By any chance, do you is...

flyingtigerfan 17/04/2016 22:56
In response to Request.Form Is Empty When Posting To ASPX Page
Thanks - spent hours trying to figure this out. I'm out of date and trying to start working on some...

Darren Evans 12/04/2016 16:42
In response to Exploring Prefix: A Free ASP.NET Profiling Tool
'Tis indeed a marvellous thing. Just waiting on its appearance for ASP.NET Core. Hopefully not long...

Arkady 03/04/2016 12:09
In response to Request.Form Is Empty When Posting To ASPX Page
Thank you! I spent a day to understand what problem is before I found your article! But I made of...

satyabrata 03/04/2016 03:50
In response to Exploring Prefix: A Free ASP.NET Profiling Tool
This is great!!!!!...

John Dave Bumatay 01/04/2016 02:01
In response to Windows Authentication With ASP.NET Web Pages
+1 ! This worked for me like a magic!~ thank you very much Mike! ;)...