Razor Pages improvements
In ASP.NET Core 2.0 we introduced Razor Pages as a new paged-based model for building Web UI. In 2.1 we are making a variety of improvements to Razor Pages to make it even more productive.
Razor Pages in an area
Areas provide a way to partition a large MVC app into smaller functional groupings each with their own controllers and views. In 2.1 we will add support for areas to Razor Pages so that areas can have their own pages directory.
Support for /Pages/Shared
In 2.1 Razor Pages will fall back to finding Razor assets such as layouts and partials in
/[pages root]/Shared
before falling back to /Views/Shared
.Bind all properties on a page or controller
Starting in 2.0 you could use the
BindPropertyAttribute
to specify that a property on a page model or controller should be bound
to data from the request. If you have lots of properties that you want
to bind, then this can get tedious and verbose. In 2.1 we will add
support for specifying that all properties on a page or controller
should be bound by putting the BindPropertyAttribute
on the class.Implement IPageFilter on page models
We will implement
IPageFilter
on page models, so that
you can run logic before or after page handlers run for a given request,
much the same way that you can implement IActionFilter
on a controller.Functional testing infrastructure
Writing functional tests for an MVC app allows you to test handling of a request end-to-end including running routing, filters, controllers, actions, views and pages. While writing in-memory functional tests for MVC apps is possible with ASP.NET Core 2.0 it requires significant setup.
For 2.1 we will provide an test fixture implementation that handles the typical pitfalls when trying to test MVC applications using TestServer:
- Copy the .deps file from your project into the test assembly bin folder
- Specify the content root of the application’s project root so that static files and views can be found
- Streamline setting up your app on TestServer
35% OFF ASP.NET Core 2.1 Hosting in UK
UKWindowsHostASP.NET - UKWindowsHostASP.NET has been servicing the web hosting, domain registration, and SSL needs of clients from all over the world since 2008. They have been a debt free company since the start. Their number one priority is providing the best customer service in the industry. They have contingency plans available upon request. They are connected to multiple tier one providers with BG-P4 routing to ensure exceptional up-time and reliability. They never fall asleep and they run a service that is operating 24/7 a year. Even everyone is on holiday during Easter or Christmas/New Year; they are always behind their desk serving their customers. Their best and cheap ASP.NET Core 2.1 shared hosting is starting from £2.99/mo.Why UKWindowsHostASP.NET ?
UKWindowsHostASP.NET is the best UK Windows
Hosting provider that offers the most affordable world class windows
hosting solutions for their customers. They provide shared, reseller, cloud,
and dedicated web hosting. They currently operate servers in four
prestiguous cities in Europe, namely: London (UK), Amsterdam
(Netherlands), Frankfurt (Germany), Washington DC (US), Paris (France),
Singapore and Chennai (India)
Their target is to provide a versatile and dependable
one-stop online hosting and marketing shop for the small business
entrepreneur, and eliminate the need for you to deal with a host of
different online vendors. They offer high quality web hosting, dedicated
servers, web design, domain name registration, and online marketing to
help lead your business to online success.
Leveraging a strong market position within the
domain name registration industry, UKWindowsHostASP.NET has carefully
nurtured relationships with its customer base and built a feature-rich
line of value-added services around its core domain name product
offering. By bundling services and providing one-stop shopping,
UKWindowsHostASP.NET has successfully grown and enjoyed increased
breadth and loyalty of its customer base.
What’s Included in Their Hosting Packages?
Free Instant Setup!
UKWindowsHostASP.NET realizes that when your web site is impaired, your
business is impaired - impacting both revenue and brand.
Unlimited Subdomain
Host and manage as many subdomains as you’d like all within one account.
e-Commerce Hosting
UKWindowsHostASP.NET is the best UK eCommerce hosting and custom development company.
Experts in Windows
They have recruited and developed some of the best talent in the hosting technology that you are using.
Plesk Control Panel
UKWindowsHostASP.NET is fully committed to the support of the latest Plesk Panel and related technologies.
Daily Backup Service
Your database and website are backup every night into a permanent remote tape drive.
Secure Your Website
Their data center maintains the highest possible standards for physical security.
Why you should upgrade to ASP.NET Core 2.1 Hosting?
If you’re using older version of ASP.NET, then you should consider upgrading the newer latest version of ASP.NET. ASP.NET Core 2.1 is adding several serious newer business enabling features which will surely help you improve your online business. With recent version of ASP.NET Core 2.1 Hosting, you can now Added an option to automatically give customers a role if they purchase a specific product (when order is paid). It can be used for paid membership. You will get significant performance optimization, SEO related changes, and bug fixes.
0 comments:
Post a Comment