|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Forms authentication with images on the login pageregarding Forms authentication. My login page has some GIF images which I'd like displayed. However, because I haven't logged in yet, the GIF images are blanked out, unless I explicitly allow access in the web.config file, as in: <location path="buttons/SignInLogo.gif"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> The problem, is I've got a dozen or so GIF's, and would like to add more. Isn't there a better way than polluting my web.config file with all these location tags? Brian Put the web.config (copy) in the images dir, remove the path from both.
This is the easiest, like (in the images folder): <?xml version="1.0" encoding="utf-8"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </configuration> Show quoteHide quote "Brian Muth" <bm***@mvps.org> schreef in bericht news:u7AuKCg8FHA.736@TK2MSFTNGP09.phx.gbl... > I'm pretty new to the ASP.NET world, and would appreciate some advise > regarding Forms authentication. > > My login page has some GIF images which I'd like displayed. However, > because I haven't logged in yet, the GIF images are blanked out, unless I > explicitly allow access in the web.config file, as in: > > <location path="buttons/SignInLogo.gif"> > <system.web> > <authorization> > <allow users="*" /> > </authorization> > </system.web> > </location> > > > > The problem, is I've got a dozen or so GIF's, and would like to add more. > Isn't there a better way than polluting my web.config file with all these > location tags? > > > > Brian > >
Other interesting topics
ASP.NET 2.0 Frustration - MS Please Help
ASP.NET does not honor Title nor Javscript options Odd behavior in 2005 with base page classes Web.Config file seems to be ignored Accessing session from thread Wizard Control Problem migrating Web Project from ASP.Net 1.1 to 2.0 http 1.1/ 403 access forbidden after framework 2.0 installed Q: moving project folder Conditional directive |
|||||||||||||||||||||||