Server.mappath is unable to access in the .cs file
i am unable to access the server class in my own .cs file what will i do to access that server.mapPath() method
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
CrishRank #1,487 · 1.1K reputationPosted May 31, 2010, 3:26 AM EDT
you need to add below namespace in your code file
using System.IO;
it will solve your problem.
Don't forget to Mark Do you like this Answer
Koteswararao MallisettiRank #2,740 · 511 reputationPosted May 31, 2010, 5:52 AM EDT