Search

You searched for the word(s): userid:612707

Matching Posts

  • Re: Protecting pdf files from href access

    crypto128: ---- if the pdfs are in that folder then it will not allow them to access them. This is NOT true UNLESS pdf file will be handled by aspnet_isapi, and, by default, it is not. So if you go directly to http://url/blahblah.pdf, you will be able to view it. The solution would be a. Like LuisE did, set up webconfig AND map pdf extension to aspnet_isapi.dll in iis b. Move pdf folder outside web root and access file with System.IO.File object and write to response stream. Yes, you are correct
    Posted to Security (Forum) by LuisE on 3/2/2007
  • Re: Protecting pdf files from href access

    What it will do is deny access to anyone that is not authenticated from going into that folder, if the pdfs are in that folder then it will not allow them to access them. -Luis
    Posted to Security (Forum) by LuisE on 3/2/2007
  • Re: Protecting pdf files from href access

    Inside you membersonlyresources folder add a web.config file can include this in it: <?xml version="1.0" encoding="utf-8"?> <configuration> <system.web> <authorization> <deny users="?" /> </authorization> </system.web> </configuration> This will deny all user that are not authenticated. -Luis
    Posted to Security (Forum) by LuisE on 3/2/2007
  • Re: Custom permission like Moderator in forum?

    vuanhviet: Thank you! I have thought about it before but you know if the categories are created dynamically how can i deal with the roles ? I can't create roles manually when each category created - so on the roles list will be terrible ! Yes you can create roles dynamically/manually. vuanhviet: And how can i check the roles of user when they try to access the category they don't have permission - because as i did i checked the specific role in the hard code! More, how can i check the permission
    Posted to Security (Forum) by LuisE on 3/1/2007
  • Re: how to add created users to existing roles

    In the CreatedUserWizard, there is an event that is fired when the user is created, called CreatedUser. Inside this event you can do your role management. -Luis
    Posted to Security (Forum) by LuisE on 3/1/2007
  • Re: LoginView Redirect

    ecbruck: Then within your Login_OnClick event after authenticating your user, simply redirect them to your page. Like ed said, but to be specific, in your Login_OnClick event use: Response.Redirect(" /User/FileList.aspx "); -Luis
    Posted to Security (Forum) by LuisE on 3/1/2007
  • Re: loginview + FindControl not working for me.

    I do not know why but if you have a LoginView the FindControl will not work. If you do: MasterLoginView.Controls[0].FindControl("LoginButton"); it will work. -Luis
    Posted to Security (Forum) by LuisE on 2/28/2007
  • Re: Simple question: FindControl in LoginView

    Well it depends on what controls you have in the LoggedInTemplate, for example if you have no controls in the AnonymousTemplate, then the code above will not work. My question is what controls do you have in the LoggedInTemplate. -Luis
    Posted to Security (Forum) by LuisE on 2/28/2007
  • Re: Two Content Placeholders on a MasterPage

    Ed, Thats great it worked, i learned something new also. -Luis Remember to mark it as answered. Thanks
  • Re: Forms Authentication : Redirecting without authentication

    Kiran, I am sorry about the last post i was wrong. The Unload event occurs when the server control is unloaded from the memory. So if you were to be in the home.aspx, and happen to change pages, the unload event would be fired. In other words it is not possible to know if the user closed the browser window, with server sided code. -Luis
    Posted to Security (Forum) by LuisE on 2/28/2007
Page 1 of 9 (89 items) 1 2 3 4 5 Next > ... Last ยป