Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to get solution file directory in SharePoint custom webpart?

$
0
0

Hi,

I have developed Custom Visualwebpart and deployed it in SharePoint web application. I want to get current directory of the visual webpart (the location where the solution file resides) . When I use Directory.GetDirectoryName() or Path.GetDirectoryName(Application.ExecutablePath) it gives C:\Windows\ not the local directory where I placed my solution file.

how to get the path of the solution file in custom webpart?

Any help will be greatly appreciated...


Thanks, Sures | MCTS SharePoint



Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>