... with ASP. NET 4. 0 319
13 ■ State 348
14 ■ Caching in ASP. NET 366
15 ■ Extreme ASP. NET 4. 0 396
16 ■ Performance and optimizations 41 6
14 CHAPTER 1 Getting acquainted with ASP. NET 4. 0
If you’re ... 1 94
TECHNIQUE 48 The view 197
8.3 Routing in ASP. NET MVC 200
TECHNIQUE 49 Partitioning using Areas 2 04
8 .4 Accepting user input 207
TECHNIQU...
...
method here, but you can find it in the source code at www.manning.com/
ASP. NET4 .0inPractice.
The drawback of updating data this way is that it requires several lines of code. Our
next solution ... 17
60 CHAPTER 3 Integrating Entity Framework and ASP. NET
In this section, we want to emphasize the disconnected way of working because ASP. NET
imposes, by nature, a disconne...
... extend in ASP. NET 4. 0 to cus-
tom providers. You can enhance the platform by writing specific code and achieve inter-
esting and useful results.
We’ll continue our examination of
ASP. NET Web ... value must be between 0 and 100 , you’ll write the following code:
C#:
public class ProductMetadata
{
[Required]
[Range (0, 100 , ErrorMessage="Valid only between 0 and 100...
... feature by specifying the browser capabilities.
Some new features in
ASP. NET 4. 0 make this area more interesting than ever.
7.2 ASP. NET 4. 0 browser capabilities
We’ve talked about ASP. NET browser ... "Home",
Listing 8.5 Registering URL routes in global.asax
Routing was originally only an ASP. NET MVC peculiarity
Routing in ASP. NET was originally par...
...
web.config:
<httpRuntime
requestValidationType=" ;ASP4 InPractice.MyValidator, ASP4 InPractice" />
Figure 10. 5 ASP. NET has a default validation mechanism that can intercept potentially dangerous
values ... LoginInput(html, loginAction, controller)
End If
Listing 9 .4 Main code of Login HTML helper
Html.ActionLink
HomeController
Index action
<a href=”/Home/Index...
... con-
tain any serializable object and its content is secure because only the
SessionID
is sent
to the client.
Session compression in ASP. NET 4. 0
ASP. NET 4. 0 has a new feature that minimizes ... you need to
increase performance by preventing the page from being instantiated. Figure 14. 1
shows how each of these techniques work.
.
NET Framework 4. 0 introduces these...
...
41 0 CHAPTER 15 Extreme ASP. NET 4. 0
The core of this system is shown in the following listing, which contains a snippet from
the
VirtualFile
implementation details.
C#:
namespace ASPNET4InPractice ... Windows Server SDK on Technet.com. Information for IIS 6 is
at http://www.mng.bz/b49a; IIS 7 is at http://www.mng.bz/9C1A.
TECHNIQUE 94
41 4 CHAPTER 15 Extreme ASP. NET 4....