![]() |
VOOZH | about |
dotnet add package ESolutions.Web --version 1.1.1
NuGet\Install-Package ESolutions.Web -Version 1.1.1
<PackageReference Include="ESolutions.Web" Version="1.1.1" />
<PackageVersion Include="ESolutions.Web" Version="1.1.1" />Directory.Packages.props
<PackageReference Include="ESolutions.Web" />Project file
paket add ESolutions.Web --version 1.1.1
#r "nuget: ESolutions.Web, 1.1.1"
#:package ESolutions.Web@1.1.1
#addin nuget:?package=ESolutions.Web&version=1.1.1Install as a Cake Addin
#tool nuget:?package=ESolutions.Web&version=1.1.1Install as a Cake Tool
Tools for ASP.WebForms including an URL/Object-Mapper (like O/R for Urls), URL-Generation and error handling for masterpages. Main feature of this library is a System to navigate type safe from and to WebForm pages.
Each WebPage is decorated with a PageUrlAttribute that defines its relative position in the folder structure. If a WebPage need url-parameters they can be defined in a separate class. The WebPage then needs to derive the ESolutions.Web.UI.WebPage base class either with or without the query type.
Additionally the WebPage class contains a RequestAddOn and a ResponseAddOn that can be used to navigate to the decorated classes. Navigation and queries are created type safe.
A short sample
[ESolutions.Web.UI.PageUrl("~/TestWebPage.aspx")]
public class TestWebPage : ESolutions.Web.UI.Page<TestWebPage.Query>
{
[PageQuery]
public class Query : ActiveQueryBase<Query>
{
[UrlParameter]
public Int32 Id
{
get;
set;
}
[UrlParameter]
public String Text
{
get;
set;
}
}
protected void Page_PreRender(Object sender, EventArgs e)
{
//Demo for creating typed links
this.AnyLink = PageUrlAttribute.Get<TestWebPage>(new TestWebPage.Query()
{
Id = 55,
Text = "My text"
});
//Demo for accessing url parameters
var id = this.RequestAddOn.Query.Id;
var text = this.RequestAddOn.Query.Text;
}
protected void AnyButton_Click(Object sender, EventArgs e)
{
//Demo for redirection
this.ResponseAddOn.Redirect<YetAnotherPage>();
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net48 net48 is compatible. net481 net481 was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.1 | 925 | 8/14/2024 |
| 1.1.0 | 269 | 8/14/2024 |
| 1.0.1.22 | 682 | 11/20/2023 |
| 1.0.1.21 | 715 | 5/10/2023 |
| 1.0.1.20 | 941 | 4/2/2021 |
| 1.0.1.19 | 815 | 7/1/2020 |
| 1.0.1.18 | 848 | 5/5/2020 |
| 1.0.1.17 | 946 | 5/20/2019 |
| 1.0.1.16 | 1,421 | 11/19/2017 |
| 1.0.1.15 | 1,354 | 10/12/2017 |
| 1.0.1.14 | 1,384 | 10/5/2017 |
| 1.0.1.13 | 1,477 | 5/17/2017 |
| 1.0.1.12 | 1,510 | 2/12/2017 |
| 1.0.1.11 | 1,980 | 8/6/2015 |
| 1.0.1.10 | 1,744 | 2/9/2015 |
| 1.0.1.9 | 1,650 | 1/24/2015 |
| 1.0.1.8 | 1,739 | 12/1/2014 |
| 1.0.1.7 | 1,713 | 12/1/2014 |
| 1.0.1.6 | 1,715 | 12/1/2014 |
| 1.0.1.5 | 1,931 | 11/19/2014 |