c# - "Cannot use a leading .. to exit above the top directory." but it's not a directory -


<div id="container" class="<%=getcssclass%>"> 

this code working , returns error in title, doesn't make sense since thing property can return "index" or "style1", i.e. there no slashes, backslashes, tildes or periods.

how possible error if there's nothing can interpreted trying access in directory (not href property)?

 public string getcssclass {         {         if (viewstate["getcssclass"] == null)         {             viewstate["getcssclass"] = "index";         }         return (string) viewstate["getcssclass"];     }     set { viewstate["getcssclass"] = value; } } 

but found problem. user control used 1 many "../" in href and, suspect, first place program knows there's problem when hits first encounter server-side property (the problem earlier , had deleted other more difficult properties , left this, innocuous, getcssclass property).

if can explain why happens , why error doesn't point actual problem (the user control, in case), i'll award answer them.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -