Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:612707
More Search Options
RSS Available
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
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
LuisE
on 2/28/2007
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 ยป
TechNet Edge:
Microsoft Windows Server 2008 to AITP
ASP.NET:
How important is medium trust to you?
WindowsClient:
Microsoft Web Platform & You
WindowsClient:
New Book: Developing for Microsoft Surface
Channel 9:
BugCamSmash in Action!
Channel 9:
Virtual Earth Videomap Movies
TechNet Edge:
AD RMS Certificates and Licensing on the Client and the Server
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 10 of 13 [C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 10 of 13]
Channel 10:
Bing Launches 2nd Homepage Photo Contest
Channel 10:
Bing4Free Lets You Use Bing.com Images for Desktop Wallpaper
Channel 10:
Bing Updates: Streetside Views, Photosynth, and "Mapplications"
Channel 10:
Bing for Windows Mobile Updated
WindowsClient:
New WPF Showcase: Bling Tweets
WindowsClient:
Tale of two tweets - VS beta - is it busy 70% of the time or is it brilliantly fast?
TechNet Edge:
Forefront TMG URL Filtering and MRS
Mix Online:
Using the HTML5 Video and Audio Tag with Gestalt
WindowsClient:
Subclassing Shape (or more accurately, Path)
WindowsClient:
Having trouble deleting files? Try this
Channel 9:
Nick Baker: Xbox Architecture
TechNet Edge:
Thrive Live! Behavioral Interviewing: A behavioral answer is always the correct answer
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online