开发者

How to give path to Styles folder, one directory up, asp.net

开发者 https://www.devze.com 2023-03-04 12:54 出处:网络
i am using Obout combobox, its styles folder is one directory up, when i give its path in FolderStyle, its detected by Visual Studio and the combobox with new style appears, but when i run it on brows

i am using Obout combobox, its styles folder is one directory up, when i give its path in FolderStyle, its detected by Visual Studio and the combobox with new style appears, but when i run it on browser, it gives the 开发者_高级运维error Cannot use a leading .. to exit above the top directory.

Please let me know how to resolve this issue.


For referncing style sheet or javascript files you can do something like this

../Styles     to go one step back and find Styles folder
../../Styles  to go two step back and find Styles folder


The best solution would be to use the ~ character:
< obout:ComboBox runat="server" ID="ComboBox1" FolderStyle="~/ComboBox/styles/black_glass" />

0

精彩评论

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