Cannot use a leading .. to exit above the top directory
-
I have a master page. In .aspx page i have set MasterPageFile value to the master page. In .aspx page i am loading a control(.ascx). While doing this i am getting error Cannot use a leading .. to exit above the top directory. I have tried changing paths also(../), but its not working. Can anyone help me?
-
I have a master page. In .aspx page i have set MasterPageFile value to the master page. In .aspx page i am loading a control(.ascx). While doing this i am getting error Cannot use a leading .. to exit above the top directory. I have tried changing paths also(../), but its not working. Can anyone help me?
cheers, Abhijit CodeProject MVP
-
cheers, Abhijit CodeProject MVP
thanks for quick reply. i have tried this solution also, but still giving the same error
-
thanks for quick reply. i have tried this solution also, but still giving the same error
can you give us the quick overview of folder hierarchy of you application ?
cheers, Abhijit CodeProject MVP
-
can you give us the quick overview of folder hierarchy of you application ?
cheers, Abhijit CodeProject MVP
Master page is in root directory. .aspx page is in folder "A" which is in root. In .aspx page i am loading control(.ascx) which is in folder "B", which is again in root. I am using stylesheet which is also created in root. To load control, i have written following lines: UC=(UserControl)Pa ge.LoadControl("../Try/TestPage.ascx");