开发者

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?

  1. Button click open the root folder.
  2. Select controls get path of that control in text box
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜