0

I am converting a PHP code in c# and want to know what will be equivalent in c#.

I think I can use:

HttpContext.Current.Request.ServerVariables["PARAM"]

But not sure which "PARAM" need to use, below link has all param list :-

http://www.w3schools.com/asp/coll_servervariables.asp

4
  • 1
    it is APPL_PHYSICAL_PATH in asp Commented Apr 29, 2016 at 12:33
  • try this stackoverflow.com/questions/17682843/… Commented Apr 29, 2016 at 12:41
  • 1
    Are you talking about Classic ASP or ASP.NET? And if ASP.NET, which framework? MVC? Web Forms? Commented Apr 29, 2016 at 12:42
  • @jothi and @ Federico Dipuma thanks, but I need this in c# class library project. I mean its a MVC application and I need to get this in a class library project. Commented Apr 29, 2016 at 12:52

1 Answer 1

0

Maybe use ASP MapPath Method ?

Doc : http://www.w3schools.com/asp/met_mappath.asp

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.