R
Riham via .NET 247
I'm trying to get the PathInfo propert for the current URL request in a class file, but I can't get it to work.
Here's what I've tried so far:
using System.Web;
String PathInfo;
PathInfo = HttpContext.Current.Request.PathInfo();
I've also tried "using System.Web.HttpContext;"
It gives me the following error:
"The type or namespace name 'HttpContext' could not be found (are you missing a using directive or an assembly reference?)"
Would you please help me know where the problem is?
Thanks,
Riham
Here's what I've tried so far:
using System.Web;
String PathInfo;
PathInfo = HttpContext.Current.Request.PathInfo();
I've also tried "using System.Web.HttpContext;"
It gives me the following error:
"The type or namespace name 'HttpContext' could not be found (are you missing a using directive or an assembly reference?)"
Would you please help me know where the problem is?
Thanks,
Riham