ESolutions.Web
1.1.1
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" />
<PackageReference Include="ESolutions.Web" />
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.1
#tool nuget:?package=ESolutions.Web&version=1.1.1
ESolutions.Web
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.
URL/Object-Mapping (U/R-Mapping)
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 is compatible. net481 was computed. |
-
.NETFramework 4.8
- ESolutions (>= 1.10.2)
- Microsoft.IO.RecyclableMemoryStream (>= 3.0.1)
- System.Numerics.Vectors (>= 4.5.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.1 | 1,006 | 2024/8/14 |
| 1.1.0 | 303 | 2024/8/14 |
| 1.0.1.22 | 713 | 2023/11/20 |
| 1.0.1.21 | 749 | 2023/5/10 |
| 1.0.1.20 | 968 | 2021/4/2 |
| 1.0.1.19 | 837 | 2020/7/1 |
| 1.0.1.18 | 872 | 2020/5/5 |
| 1.0.1.17 | 973 | 2019/5/20 |
| 1.0.1.16 | 1,444 | 2017/11/19 |
| 1.0.1.15 | 1,382 | 2017/10/12 |
| 1.0.1.14 | 1,411 | 2017/10/5 |
| 1.0.1.13 | 1,503 | 2017/5/17 |
| 1.0.1.12 | 1,545 | 2017/2/12 |
| 1.0.1.11 | 2,008 | 2015/8/6 |
| 1.0.1.10 | 1,773 | 2015/2/9 |
| 1.0.1.9 | 1,679 | 2015/1/24 |
| 1.0.1.8 | 1,773 | 2014/12/1 |
| 1.0.1.7 | 1,744 | 2014/12/1 |
| 1.0.1.6 | 1,750 | 2014/12/1 |
| 1.0.1.5 | 1,969 | 2014/11/19 |