Retrieve Project Controls virtual path
I work on C#. I have many controls in my asp.net project. I want to store my controls path in database. Suppose one of my control name is MyUserControl.ascx. and its path is ~/usercontrols/MyUserControl.ascx I want to store this path in database. I know how to store information in database, but problem is I don't know how to get the path. Suppose I add a button, want the click on the button to show my project root folder. From t开发者_如何学Gohere I want to select control or pages to get the path. How to get the path?
- Button click open the root folder.
- Select controls get path of that control in text box
精彩评论