RptDoc.Load(Server.MapPath("~/CrystalReport.rpt"));
from the below code,when i type Server.MapPath is not coming.is there any reference want to add.
please help me.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sandeep Singh ShekhawatPosted Nov 2, 2012, 4:27 AM
When we are working on .aspx.cs page that time this *.aspx.cs inherits System.Web.UI.Page class so we get Server.MapPath.
So please make sure that in your page you are using System.Web.UI.Page.
***************************************************************
Hi,
As per my understanding you are using Server.MapPath in your static method so Server.MapPath will not come in static method.
Please check your method should not be static where you are using Server.MapPath.