authorization issue in asp.net 2

in my asp.net web application using vs2005 i have enabled roles and memberships with form based authorization. my problem is i have my styles and javascripts in separate folders and i have put separate web.config files in that to allow all users and roles , its work fine with default page. but it is not working when i am accessing the javascript from other page which is present inside another folder . i hope i am clear the directory struct is root -> js(dir),admin(dir),style(dir) accessing page from admin dir causing the authorization problem.


thanks for your comments mr.rubens but i figured it out, it was path problem, the relative path ~ is not working on script tag. i have to get the path from page load event. :-)

链接地址: http://www.djcxy.com/p/15960.html

上一篇: URL授权在ASP.NET中足够安全吗?

下一篇: 在asp.net 2中授权问题