Items By Type: Tutorial

The WebGrid - Efficient Paging And Sorting With SQL CE 4.0

Sunday, August 28, 2011 10:46 PM

ASP.NET Web Pages WebMatrix Razor WebGrid

A problem inherent in the existing version of the WebGrid is that it is not very efficient when it comes to paging data out of the box. If you have 10,000 rows of data, and you want to display 10 rows per page, all 10,000 rows are retrieved from the database for each page. The grid works out how to only show the current 10, and wastes the other 9,990 rows. That's a fair sized overhead on each page. Ideally, you should only retrieve the data you need for each page. This article examines how you can do that with the existing WebGrid and a SQL CE database, while still maintaining sorting capabilities.

Click to read more about The WebGrid - Efficient Paging And Sorting With SQL CE 4.0 ...

Viewed 16000 times

9 Comments for this item

jQuery Autocomplete with Razor Web Pages and a SQL CE Database

Tuesday, August 16, 2011 9:23 AM

jQuery ASP.NET Web Pages WebMatrix Razor

There are a number of autocomplete solutions for jQuery, including the widget that comes as part of the jQuery UI library. This article looks at incorporating the jQuery UI Autocomplete widget into a Razor-based ASP.NET Web Pages site.

Click to read more about jQuery Autocomplete with Razor Web Pages and a SQL CE Database ...

Viewed 26758 times

8 Comments for this item

WebMatrix and jQuery Forms Part 2 - Editing Data

Saturday, August 6, 2011 5:33 PM

jQuery ASP.NET Web Pages WebMatrix Razor WebGrid

This article continues on from one I wrote a while ago, showing how to use jQuery to create a data entry form in conjunction with the WebGrid. The original article prompted a number of requests to show how to extend the example to provide editing functions, and now I have found some time to answer those requests.

Click to read more about WebMatrix and jQuery Forms Part 2 - Editing Data ...

Viewed 19644 times

3 Comments for this item

Generating RSS and ATOM Feeds In WebMatrix

Tuesday, April 12, 2011 12:36 PM

ASP.NET Web Pages WebMatrix Razor

I've previously looked at how to generate RSS feeds for both Web Forms and MVC using a variety of techniques, so it is only right that I look at a couple of ways to do this in Web Pages - the Razor based web development model supported by WebMatrix.

Click to read more about Generating RSS and ATOM Feeds In WebMatrix ...

Viewed 16310 times

3 Comments for this item

The Difference Between @Helpers and @Functions In WebMatrix

Sunday, March 20, 2011 9:42 AM

ASP.NET Web Pages WebMatrix Razor

This is another post which was inspired by a recent question in the ASP.NET forums, when someone asked what the difference is between @functions and @helpers in ASP.NET Web Pages. Here, I look at both of these contructs and explain what they are, how they are different, and how each should be used appropriately.

Click to read more about The Difference Between @Helpers and @Functions In WebMatrix ...

Viewed 54176 times

7 Comments for this item

Data Access Choices For WebMatrix

Saturday, March 5, 2011 10:46 PM

ASP.NET Web Pages WebMatrix

When WebMatrix was originally launched, it spurred a lot of activity from people who do not like seeing raw SQL statements in code files, or who perceived a problem working with dynamic objects. Some of these people threw their hands up in horror and tweeted or blogged their displeasure, while others felt the urge to do something about the "problem" as they saw it, and a number of open source data access projects have resulted. I've had a quick look at three projects to see what they might bring to the party.

Click to read more about Data Access Choices For WebMatrix ...

Viewed 38453 times

8 Comments for this item

Creating A Custom Template For WebMatrix

Friday, January 14, 2011 11:57 PM

ASP.NET Web Pages WebMatrix

WebMatrix includes a number of pre-built templates that you can use as a basis for developing your site, but wouldn't it be great if you could add new ones? Well, there is a way to do so, and this article looks at the steps required.

Click to read more about Creating A Custom Template For WebMatrix ...

Viewed 23863 times

2 Comments for this item

The WebGrid Helper - Making Selections

Thursday, January 13, 2011 2:08 PM

ASP.NET Web Pages WebMatrix Razor WebGrid

The WebGrid helper, introduced via ASP.NET Web Pages, provides a means for displaying tabular data easily. This article examines how to enable selection within the WebGrid at row level.

Click to read more about The WebGrid Helper - Making Selections ...

Viewed 25815 times

6 Comments for this item

Razor, Cascading Select Lists and jQuery Templates - A New Twist

Tuesday, January 4, 2011 10:20 PM

jQuery ASP.NET Web Pages WebMatrix Razor

jQuery Templates enable easy client-side generation of html. When combined with JSON data or other JavaScript objects, jQuery Templates provide a way to create a dynamic data-driven site without any server-side code whatsoever. However, in this article I will look at how they can be used to produce cascading select lists in a Razor Web Pages site.

Click to read more about Razor, Cascading Select Lists and jQuery Templates - A New Twist ...

Viewed 30474 times

4 Comments for this item

WebMatrix - URLs, UrlData and Routing for SEO

Monday, December 20, 2010 12:56 PM

ASP.NET Web Pages WebMatrix Razor

There is a certain amount of debate surrounding the importance of friendly URLs in terms of Search Engine Optimisation and improving your ranking. One thing is certain - having friendly URLs helps users to identify whether the content at the end of a link to your site is likely to be relevant to them or not. This article examines how you can make use of the built-in support for Routing provided by ASP.NET Web Pages to not only create friendly URLs, but to work with parameters as well.

Click to read more about WebMatrix - URLs, UrlData and Routing for SEO ...

Viewed 38072 times

14 Comments for this item

Nested Layout Pages with Razor

Friday, December 17, 2010 1:27 PM

ASP.NET MVC ASP.NET Web Pages WebMatrix Razor

Razor Layout pages are the equivalent to MasterPages in ASP.NET Web Forms and the Web Forms View Engine within ASP.NET MVC. Just as it is possible to nest MasterPages, it is also possible to nest Razor Layout pages. This article explores the process required to achieve nesting of Layout pages using the Razor View Engine in MVC 3, or WebMatrix Web Pages sites.

Click to read more about Nested Layout Pages with Razor ...

Viewed 129970 times

8 Comments for this item

Building Mobile Apps with WebMatrix and jQuery Mobile

Sunday, December 12, 2010 9:52 PM

jQuery ASP.NET Web Pages WebMatrix Razor

jquery Mobile was launched just a month or so ago, and is designed to make it as easy to build JavaScript-enabled web applications for mobile phones as for the desktop browser. Still in Alpha, the library has a way to go, but it already offers a rather interesting experience when used as part of a mobile phone targeted web application. Here's a first look at how to use jQuery Mobile with WebMatrix to build a mobile web application.

Click to read more about Building Mobile Apps with WebMatrix and jQuery Mobile ...

Viewed 43398 times

7 Comments for this item

WebMatrix - Testing the WebImage Helper With JCrop

Sunday, October 17, 2010 9:06 AM

jQuery ASP.NET Web Pages WebMatrix

My original JCrop article which looked at cropping uploaded images in ASP.NET has proven to be the most popular coding article I've ever written, with more views and comments than any other. Revisiting JCrop in the context of Web Pages gives me the opportunity to have a look at the WebImage helper, and see how that might make uploading and cropping images easier.

Click to read more about WebMatrix - Testing the WebImage Helper With JCrop ...

Viewed 12648 times

5 Comments for this item

WebMatrix - Working With The JSON Helper

Friday, October 15, 2010 6:51 PM

jQuery ASP.NET Web Pages WebMatrix Razor

Javascript Object Notation (JSON) is a data exchange format which really grew in popularity as AJAX libraries took off. It's lightweight and human readable, and is a great way of transferring data structures between the browser and the server. The JSON Helper was added in WebMatrix Beta 2, and this article looks at its main methods, and how they can be used.

Click to read more about WebMatrix - Working With The JSON Helper ...

Viewed 29695 times

13 Comments for this item

WebMatrix - Protecting Your Web Pages Site

Sunday, October 10, 2010 8:04 PM

ASP.NET Web Pages WebMatrix Razor

Your Web Pages site is under threat. There are people out there who want to break into restricted areas, download files they shouldn't have access to, mess up your database and steal your passwords. Worse still, they want to use your application as a gateway to the web server so that they can take full control over it. This article examines those threats and how you can protect your application against them.

Click to read more about WebMatrix - Protecting Your Web Pages Site ...

Viewed 33154 times

4 Comments for this item

Recent Comments

Ingmar 1/31/2015 7:23 PM
In response to Scheduled Tasks In ASP.NET With Quartz.Net
On December, 1st, Mohammed reported a problem with triggers not being executed when the web is have...

Kiran More 1/29/2015 9:15 AM
In response to Nested Layout Pages with Razor
This article makes me easy understand of Nested Layout...

stephen 1/28/2015 9:53 PM
In response to ASP.NET MVC 5 with EF 6 - Working With Files
Hi, Sorry for wasting your time, I had a comment <!--Images--> inside the form this stopped it from...

stephen 1/28/2015 9:47 PM
In response to ASP.NET MVC 5 with EF 6 - Working With Files
Everything has been ok up until this part, here's a snippet of the entire file but i removed lines =...

Stephen kenny 1/28/2015 8:26 PM
In response to ASP.NET MVC 5 with EF 6 - Working With Files
Hi, great article. My issue is with the create view. @using (Html.BeginForm("Create", "Reptiles",...

Jenelyn 1/27/2015 6:44 PM
In response to MVC 5 with EF 6 in Visual Basic - Implementing Basic CRUD Functionality
I'm searching CRUD using VB.net 2010 and I can't find any, how sad...

Kadu Portugal 1/23/2015 10:55 AM
In response to Scheduled Tasks In ASP.NET With Quartz.Net
Hi Mike, Thank you for your useful article. I implement it in my project, and everything run...

Satyabrata 1/23/2015 6:02 AM
In response to Usage of the @ (at) sign in ASP.NET
Refreshed a lot of things.Thanks...

Vo Thanh Chinh Trung 1/22/2015 4:30 PM
In response to Adding A View
It's very helpful...Thank you so much, Mikes!...

Joop Stringer 1/22/2015 12:00 PM
In response to Inline Editing With The WebGrid
How to add a row for a new record ?...