In ASP.NET, you want to get extra path of URL which accessed WebForm.
For
Use PathInfo property in HttpRequest class to get extra path.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebAppPathDemo
{
public partial class WebForm : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Literal1.Text = "";
Literal1.Text += string.Format("Request.PathInfo: {0:s}<br/>", Request.PathInfo);
}
}
}
http://app.ipentec.com/webapp/imageeditor/default.aspx/draw/bitmap Visit the above URL.
appears on the screen.