can aspx app get startup path dynamically?

  • Thread starter Thread starter Rich
  • Start date Start date
R

Rich

When I copy files from one server to another I keep
running into the problem that the app path directory keeps
changing and I can't set a connection dynamically to like
an mdb file. In a regular vb.net app I can say

strPath = Application.StartupPath & "\myMdb.mdb"

can I do something like that in aspx? I searched around
for a namespace but have not come up with anything. Any
suggestions greatly appreciated.

Thanks,
Rich
 
How about Server.MapPath(url)?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Thank you very much. That worked perfectly. I just have
to get in the web mode (totally forgot about
server.mappath).

Many thanks,
Rich
 
Back
Top