Posted on: 10/3/2012 4:13:54 AM | Views : 248

HttpContext httpContext = HttpContext.Current; if (httpContext.Request.Path.Contains(".ashx") || httpContext.Request.Path.Contains(".svc") || httpContext.Request.Path.Contains(".rem")) { string LinkName = httpContext.Request.Path.Substring(0).Split('/')[1].ToString(); string[] Link = LinkName.Split('.'); dataAccess da = new dataAccess(); DataSet ds = new DataSet(); ds = da.getProjectFromLink(Link[0].ToString()); if (ds.Tables[0].Rows.Count > 0) httpContext.RewritePath(string.Format("~/viewProject.aspx?projectID={0}", Convert.ToInt32(ds.Tables[0].Rows[0][0])), false); else httpContext.RewritePath("~/ErrorPage.aspx", false); } } URL passing currently is www.mywebsite.com/dhes1.ashx
But Now I want to pass an additional parameters in URL ...

Go to the complete details ...