Home
> Exploring the CodeFluent Runtime > Exploring the CodeFluent Runtime: EditableUri
Exploring the CodeFluent Runtime: EditableUri
A little known yet handy class when developing ASP.NET web sites is the EditableUri class provided in the web runtime (CodeFluent.Runtime.Web.dll) which allows developers to build and manipulate URIs.
Using this class you can easily get or set the scheme of an url, its port, or its parameters:
EditableUri uri = new EditableUri("http://www.softfluent.com");
uri.Parameters.Set("foo", 1);
uri.Parameters.Set("bar", 2);
Debug.WriteLine(uri.ToString());
// Output: http://www.softfluent.com/?foo=1&bar=2
Keep it in a corner, it might come in handy one day ![]()
Categories: Exploring the CodeFluent Runtime
.NET, ASP.NET, CodeFluent, CodeFluent Entities, Runtime, URL, Visual Studio
Comments (0)
Trackbacks (0)
Leave a comment
Trackback