0

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 there 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
RAS
  • 8,100
  • 16
  • 64
  • 86
shamim
  • 6,640
  • 20
  • 85
  • 151
  • If you know what folder you're in and you know the name of the control, then don't you know the path of the control? – Josh M. May 15 '11 at 17:38
  • thanks for reply,what i know ,it's not a big issue .what i want plz concentrate on this.Click on button how to open the solution root folder ,like as window FileOpenDialog to get the selected file path. – shamim May 16 '11 at 00:56

0 Answers0