78 items found in the ASP.NET Web Pages Category

Scheduled Tasks In ASP.NET With Quartz.Net

Thursday, August 7, 2014 8:34 AM

General ASP.NET MVC ASP.NET Web Forms ASP.NET Web Pages

A perennial question on the ASP.NET forums concerns how to schedule regular tasks as part of a web application. Typically, the requirement is to send emails once every 24 hours at a particular time each day, but it could actually be anything from tweeting on a schedule to performing maintenance tasks. Equally typically, half a dozen members on the forum dive in with recommendations to install Windows Services or schedule batch files with the Task Scheduler - regardless of the fact that most web site owners are not afforded such privileges as part of their shared hosting plan.

Click to read more about Scheduled Tasks In ASP.NET With Quartz.Net ...

Viewed 27218 times

24 Comments for this item

Using ASP.NET Identity with Razor Web Pages

Friday, July 4, 2014 7:27 AM

ASP.NET Web Pages WebMatrix Razor

ASP.NET Identity is the new membership system for ASP.NET applications and is the recommended system for new MVC 5 and Web Forms projects. Among other things, it moves membership away from being dependent on System.Web, which is the general direction that the next version of ASP.NET is taking. News on how the Web Pages framework will be impacted by this evolution in ASP.NET is scarce at the moment, and so is information on how to incorporate ASP.NET Identity into a Razor Web Pages site. This article demonstrates the steps required to make use of the ASP.NET Identity framework in your Web Pages application.

Click to read more about Using ASP.NET Identity with Razor Web Pages ...

Viewed 32611 times

9 Comments for this item

Migrating Classic ASP To ASP.NET Razor Web Pages Part Three- Include Files And Reusable Code

Monday, March 10, 2014 1:23 PM

Classic ASP VB.Net ASP.NET Web Pages WebMatrix Razor

This is the third in a series of articles that explore how to migrate classic ASP web sites to the ASP.NET Web Pages framework. I covered Razor syntax and data access in the previous articles. This article shows how to deal with reusable code that typically inhabits include files in classic ASP.

Click to read more about Migrating Classic ASP To ASP.NET Razor Web Pages Part Three- Include Files And Reusable Code ...

Viewed 14590 times

3 Comments for this item

Migrating Classic ASP To ASP.NET Razor Web Pages Part Two- Data Access

Monday, March 3, 2014 1:26 PM

Classic ASP VB.Net ASP.NET Web Pages WebMatrix

The first article in this series explored the differences (and similarities) between classic ASP inline syntax and Razor syntax, the templating technology behind ASP.NET Razor Web Pages. The work required so far to port intermixed HTML and simple conditional and selection statements across from classic ASP to Razor didn't require a lot of effort. That is about to change in this article as I look at data access.

Click to read more about Migrating Classic ASP To ASP.NET Razor Web Pages Part Two- Data Access ...

Viewed 17113 times

4 Comments for this item

Migrating Classic ASP To ASP.NET Razor Web Pages Part One- Razor Syntax And Visual Basic

Monday, February 24, 2014 1:25 PM

Classic ASP ASP.NET Web Pages WebMatrix Razor

You have a classic ASP application that needs migrating to ASP.NET. You are comfortable working with classic ASP. but ASP.NET is fairly new to you. So what do you do? This article is the first in a series that looks at your options and proposes an approach to the migration that follows the path of least resistance.

Click to read more about Migrating Classic ASP To ASP.NET Razor Web Pages Part One- Razor Syntax And Visual Basic ...

Viewed 44033 times

2 Comments for this item

Creating Reusable Components For ASP.NET Razor Web Pages

Tuesday, February 4, 2014 7:39 PM

ASP.NET Web Pages WebMatrix

There are a number of ways that you can maximise code re-use within a Razor Web Pages site: Layout pages, helpers, functions and so on. As you build more sites, you soon find that you are repeating code between them. You might have a collection of custom utility functions and extension methods, for example that you find yourself copying and pasting across sites. Over time, this will become a maintenance nightmare as different versions of the methods live in different sites. This article shows how to solve that problem easily by creating a library that can be shared across multiple sites.

Click to read more about Creating Reusable Components For ASP.NET Razor Web Pages ...

Viewed 14393 times

4 Comments for this item

Adding a New Row In The Razor WebGrid

Thursday, January 23, 2014 8:10 AM

ASP.NET Web Pages WebMatrix Razor WebGrid

The Razor WebGrid isn't just used for displaying data. I have already looked at how to edit data inline within the WebGrid, so this article looks at how to add new rows of data. within a rendered grid.

Click to read more about Adding a New Row In The Razor WebGrid ...

Viewed 21714 times

2 Comments for this item

Request Validation In ASP.NET Web Pages

Wednesday, December 18, 2013 11:24 AM

ASP.NET Web Pages WebMatrix Razor

Cross Site Scripting (XSS) attacks are the third on the Open Web Application Security Project's (OWASP) 2013 list of security vulnerabilities. This article looks at the defence mechanisms built into ASP.NET that protect against such attacks and how you can disable those defences in ASP.NET Razor Web Pages in a safe manner when you need to.

Click to read more about Request Validation In ASP.NET Web Pages ...

Viewed 46249 times

6 Comments for this item

Check Duplicate User Names In ASP.NET Web Pages Sites

Friday, November 29, 2013 3:22 PM

AJAX jQuery ASP.NET Web Pages WebMatrix Razor

The Web Pages Starter Site template provides a useful starting point for developing a Razor Web Pages site that includes membership. But it doesn't include any mechanism for preventing duplicate user names. This article offers one solution to the problem that uses jQuery.

Click to read more about Check Duplicate User Names In ASP.NET Web Pages Sites ...

Viewed 18420 times

9 Comments for this item

Posting Data With jQuery AJAX In ASP.NET Razor Web Pages

Wednesday, November 6, 2013 7:38 PM

AJAX jQuery ASP.NET Web Pages WebMatrix Razor

There have been a few questions recently about what you can post to the server using jQuery AJAX and where to find whatever you posted. This article looks at using the jQuery ajax method in ASP.NET Razor Web Pages and explores how different options have different results.

Click to read more about Posting Data With jQuery AJAX In ASP.NET Razor Web Pages ...

Viewed 109687 times

4 Comments for this item

Saving jQuery Sortables In ASP.NET Razor Web Pages

Monday, October 28, 2013 8:04 PM

jQuery ASP.NET Web Pages WebMatrix Razor

jQuery Sortables offer a way to specify the order of a collection of items through an easy drag and drop interface. I have just been working on the next release of Web Pages CMS and am in the process of implementing Sortables for managing the display order of menu items. This article looks at how they can be used in Razor Web Pages and shows one way of saving the resulting order to a database.

Click to read more about Saving jQuery Sortables In ASP.NET Razor Web Pages ...

Viewed 24505 times

0 Comments for this item

Managing Checkboxes And Radios In ASP.NET Razor Web Pages

Monday, October 14, 2013 9:04 PM

ASP.NET Web Pages WebMatrix Razor

Checkboxes and radio buttons cause more confusion than any other form control in ASP.NET Razor Web Pages. This article takes an in depth look at them and tackles the most frequently asked questions that they generate.

Click to read more about Managing Checkboxes And Radios In ASP.NET Razor Web Pages ...

Viewed 64596 times

0 Comments for this item

Code First Migrations With ASP.NET Web Pages Sites

Wednesday, August 28, 2013 8:14 PM

Visual Studio Entity Framework ASP.NET Web Pages WebMatrix

Entity Framework Code First Migrations enable changes to your model to be propagated to your database through code. Prior to the introduction of migrations, changes to the model resulted in the database being recreated from scratch with attendant loss of data. During development, this may not cause too many problems, but once the database has been deployed into production, it's another story. Migrations solve the problem in that changes are applied to the database schema without loss of data.

Click to read more about Code First Migrations With ASP.NET Web Pages Sites ...

Viewed 54799 times

5 Comments for this item

Windows Authentication With ASP.NET Web Pages

Wednesday, August 7, 2013 7:34 PM

ASP.NET Web Pages WebMatrix

The default authentication mechanism built into ASP.NET Web Pages site templates is Forms Authentication via the SimpleMembershipProvider, which is designed to enable authentication of users against a database. This requires the user to know their user name and password, and to enter those whenever they want to log in to access restricted areas within a site. If you are using the ASP.NET Web Pages framework to build an Intranet site that will be hosted within your own corporate network (i.e. client machines and web server are in the same domain), you can use Integrated Windows Authentication instead which simplifies authentication dramatically.

Click to read more about Windows Authentication With ASP.NET Web Pages ...

Viewed 85360 times

8 Comments for this item

Implementing Customers Also Bought In ASP.NET Web Pages

Thursday, August 1, 2013 3:32 PM

ASP.NET Web Pages WebMatrix Razor

Most successful e-commerce sites implement a mechanism that draws the customer's attention to other products that might be of interest to them. These products are selected on the basis that shoppers who purchased the item currently being viewed by the customer also bought other products. This article looks at a away of implementing this kind of facility in an ASP.NET Web Pages site.

Click to read more about Implementing Customers Also Bought In ASP.NET Web Pages ...

Viewed 15410 times

5 Comments for this item

Recent Comments

Allen Michaels 12/17/2014 4:37 PM
In response to Cascading DropDownLists with jQuery and ASP.NET
Fantastic thank you so much!...

Emily 12/17/2014 12:36 PM
In response to Parameterized IN clauses with ADO.NET and LINQ
Thanks, very helpful!!!! Can i use this for multiple in's ????? IN (.....) and IN(...) and IN...

sss 12/16/2014 3:06 PM
In response to Solving the Operation Must Use An Updateable Query error
good...

Gjuro 12/15/2014 10:30 PM
In response to Examining the Edit Methods and Edit View
You have one fromr (and it should be from, I suppose). :-)...

Gjuro 12/15/2014 10:27 PM
In response to Adding Search
Hi, thnx for all this C#->VB translations. Yet, the following code block is (slightly) in error it a...

Scot 12/14/2014 1:39 PM
In response to Entity Framework 6 Recipe - Alphabetical Paging In ASP.NET MVC
Thanks,Mike I found solution....

Gjuro 12/13/2014 10:52 PM
In response to Accessing Your Model's Data from a Controller
The article mentions "Creating an Entity Framework Data Model for an ASP.NET MVC Application" (at is...

Samuel 12/13/2014 8:40 AM
In response to Displaying The First n Characters Of Text
I have failed to use the extension because it throws an error that it doesn't recognise the chop be...

Ignas 12/12/2014 5:11 PM
In response to Cleaner Conditional HTML Attributes In Razor Web Pages
Any suggestions for Html Helper elements with HtmlAttributes, when you need to conditionally set it...

Gautam 12/11/2014 8:50 PM
In response to Validation In Razor Web Pages 2
Hi Mike Is this required for V3, non html helper input...