Aktham Mahmoud

Aktham Mahmoud

  • NA
  • 720
  • 37.5k

Problem Cannot use a leading ..

May 10 2020 2:48 PM
Hi
 
In my asp.net application I designed each part project in seperated folder (admin folder)(branch folder) etc.
 
Anyway..
 
when am trying to pass value by qyerystring method I faced this error
 
Cannot use a leading .. to exit above the top directory.
 
I searcherd about that I found many of solutions said: trying to change a page path from normal way (~/bracnch/namepage.aspx) to (../bracnch/namepage.aspx).
 
some of solution said to change a slash direction from \ to / .
 
PostBackUrl='<%#"~/branch/pagename.aspx?Ordrow="+Eval("cid") %>'
 
Actually no solution helped me.
 
So what I do?
Thanks

Answers (7)