Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Dave Nichols #1
Problem with MapPath
I'm working on an ASP.NET project that uses an Access Database. I
created a component with an OleDbDataAdapter to handle connectivity with
the db and it works great on my dev box. When I upload to the server it
fails because the path to the db is hardwired. I tried to use
Server.MapPath and Server is not known on the .cs page. On my .aspx
pages when creating a new connection MapPath works fine. I'm working
with C# and would really like to take advantage of the component as a
time saver. Does anyone know how I can implement MapPath for the source
in the connection string for the DataAdapter connection?
Dave Nichols
Dave Nichols Guest
-
MapPath throws exception
I created the following method in a webservice on my localmachine web host to test MapPath because it throws an exception in another method: ... -
using Server.MapPath
Hi, Can somebody tell me why can't I use string strPath = Server.MapPath(Request.ApplicationPath); in protected void Application_Start(...) ... -
Invalid path for MapPath
paste the entire path in the error string into your browser address bar. it should attempt to open the file, if not your path is incorrect. ... -
Using MapPath to load XML file in ASP
in this case, it's looking for the XML in a subfolder of the folder in which this ASP page is placed. is that correct? ... -
Server MapPath
Hello folks. How do I solve the problem below? when my program executes the line below : Package.WriteXml(Server.MapPath(strID + ".XML")); ...



Reply With Quote

