Re: PTMembershipProvider

Re: PTMembershipProvider

Old forum URL: forums.lhotka.net/forums/t/3979.aspx


ozitraveller posted on Monday, December 03, 2007

Hi

I'm hoping some might be able to help me. I want to implement the rest of this class, so I understand what is happening here. I'm no web developer, but I've been asked to do a website, so I based my site on PTracker and so far it's going ok.

What I need to be able to do is allow valid users to download files, and admins to upload files to specific folders. And admins need to be able to edit any of the content.

Cheers

RockfordLhotka replied on Tuesday, December 04, 2007

Assuming you have the forms authentication working in your web site (and I imagine you do if you followed PTWeb), the easiest answer is to use directory-level authorization.

In ASP.NET you can create a subfolder in your virtual root. In that folder you can add a web.config file. In that file you can include the authorization elements in <system.web> and specify that items in the folder can only be accessed by a specific role.

Then put your upload.aspx page (or whatever it is called) in that subfolder, and only people in that one role will be able to access the page.

ozitraveller replied on Tuesday, December 04, 2007

Hi Rocky

Yes I have forms authentication working.

And thanks for the help.

Cheers

Ozi

ozitraveller replied on Tuesday, December 04, 2007

Hi

I seem to have killed off debugging in switching from VS web server to IIS. Does anyone know whether there are any doc that cover this?

Any help would be appreciated.

Cheers

Ozi

Copyright (c) Marimer LLC