ESolutions.Web 1.0.1.19

Tools for ASP.WebForms including an URL/Object-Mapper (like O/R for Urls), URL-Generation and error handling for masterpages

Install-Package ESolutions.Web -Version 1.0.1.19
dotnet add package ESolutions.Web --version 1.0.1.19
<PackageReference Include="ESolutions.Web" Version="1.0.1.19" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ESolutions.Web --version 1.0.1.19
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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>();
	}
}

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>();
	}
}

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1.19 112 7/1/2020
1.0.1.18 132 5/5/2020
1.0.1.17 235 5/20/2019
1.0.1.16 412 11/19/2017
1.0.1.15 364 10/12/2017
1.0.1.14 372 10/5/2017
1.0.1.13 459 5/17/2017
1.0.1.12 463 2/12/2017
1.0.1.11 601 8/6/2015
1.0.1.10 563 2/9/2015
1.0.1.9 556 1/24/2015
1.0.1.8 513 12/1/2014
1.0.1.7 504 12/1/2014
1.0.1.6 502 12/1/2014
1.0.1.5 766 11/19/2014
1.0.1.4 1,094 10/30/2014
1.0.1.3 1,085 10/30/2014
1.0.1.2 551 9/20/2014