Go Back   CodeCall Programming Forum > Web Development Forum > ASP, ASP.NET and Coldfusion
Register Blogs Search Today's Posts Mark Forums Read

ASP, ASP.NET and Coldfusion Microsoft's Web Development Language (ASP/ASP.NET) and Coldfusion discussion

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-2009, 05:11 AM
Newbie
 
Join Date: Jan 2007
Posts: 22
engr is an unknown quantity at this point
Document Rights Mangement

I am uploading documents/files to sql server 2005 db using asp.net.I would like to give each group of users a different set of rights for accessing these documents - One set should be able to save,modify the document while the other set of users can only view the document.

Is it possible with the .NET technology?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-30-2009, 07:18 AM
Orjan's Avatar
Moderator
 
Join Date: Sep 2007
Location: Karlstad, Sweden
Age: 34
Posts: 2,553
Orjan is a glorious beacon of lightOrjan is a glorious beacon of lightOrjan is a glorious beacon of lightOrjan is a glorious beacon of lightOrjan is a glorious beacon of light
Send a message via MSN to Orjan Send a message via Skype™ to Orjan
Re: Document Rights Mangement

you can of course build such a system on your own, that is absolutely possible. if there is a built in way, I don't know.
__________________
Ask me: Orjan | Contribute to the Wiki! | Make your own Programming blog!
I usually play eRepublik and Travian when I'm not on CodeCall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-30-2009, 09:15 AM
cdg10620's Avatar
Learning Programmer
 
Join Date: Jun 2009
Location: Katy, TX
Posts: 70
cdg10620 is an unknown quantity at this point
Re: Document Rights Mangement

You can set permission on each table explicitly in SQL server. When .NET goes to the SQL server to read information SQL server will check to see if .NET has permissions to access the information. You will want to have .NET grab the current user's information and check to see the permissions when accessing the SQL database.

You can also do validation on the front end before it ever gets to SQL. How would you allow users to change information? If it is some kind of form, you can check the users permissions as they come to the page and make it to where they either don't have edit capabilities on the page or they cannot access the page at all.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-30-2009, 11:47 PM
Newbie
 
Join Date: Jan 2007
Posts: 22
engr is an unknown quantity at this point
Re: Document Rights Mangement

I am uploading pdf,word,autocad files to the database. I want that only some users can download the file while others can only view.The document details are going to one table while the user info is stored in another table.Where do i set the permission - do I set it at the database level or at the programming level?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-30-2009, 11:59 PM
WingedPanther's Avatar
Super Moderator
 
Join Date: Jul 2006
Age: 36
Posts: 11,435
WingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud of
Re: Document Rights Mangement

I would set it at the programming level.
__________________
CodeCall Blog | CodeCall Wiki | Shareware
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-01-2009, 01:19 AM
Newbie
 
Join Date: Jan 2007
Posts: 22
engr is an unknown quantity at this point
Re: Document Rights Mangement

How do I go about it?
If you have ever come across WSS 3.0,you might be able to catch what I am getting at. There is a technology in WSS called Informations Right Management (IRM) - Here each file / document has permissions assigned to it so that only those users who have write permissions can save/download the file while others can only view it-it is non-ediatable for the latter.
Can something like this be achieved here?

Last edited by engr; 07-01-2009 at 02:16 AM..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-01-2009, 09:42 AM
WingedPanther's Avatar
Super Moderator
 
Join Date: Jul 2006
Age: 36
Posts: 11,435
WingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud of
Re: Document Rights Mangement

There are literally dozens of ways you could do this. The easiest is to give each user a permission level, and only expose the upload interface to users with sufficient permissions.
__________________
CodeCall Blog | CodeCall Wiki | Shareware
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 07-02-2009, 12:56 AM
Newbie
 
Join Date: Jan 2007
Posts: 22
engr is an unknown quantity at this point
Re: Document Rights Mangement

I am not having an issue with upload - I have already set permissions for that.
I want to control the downloading part. Whenever you open any file - doc, pdf, etc. you must have noticed that we are able to download it to our harddisk. How do I prevent that???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 07-02-2009, 08:31 AM
cdg10620's Avatar
Learning Programmer
 
Join Date: Jun 2009
Location: Katy, TX
Posts: 70
cdg10620 is an unknown quantity at this point
Re: Document Rights Mangement

Quote:
Originally Posted by engr View Post
I am not having an issue with upload - I have already set permissions for that.
I want to control the downloading part. Whenever you open any file - doc, pdf, etc. you must have noticed that we are able to download it to our harddisk. How do I prevent that???
How did you set permissions on the upload? Do you have some code that you can post? I'm not understanding why you can't block the download option with your code if they do not have permission to do so.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 07-02-2009, 09:32 AM
WingedPanther's Avatar
Super Moderator
 
Join Date: Jul 2006
Age: 36
Posts: 11,435
WingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud ofWingedPanther has much to be proud of
Re: Document Rights Mangement

Wait, you mean you want them to be able to view, but not download, a document? In that case, you're out of luck. To view the document, it's already downloaded.
__________________
CodeCall Blog | CodeCall Wiki | Shareware
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert your photoshop document to a CSS in less than 30 seconds clookid Photoshop Tutorials 18 06-01-2009 10:05 PM
Rights of a Blogger Chinmoy The Lounge 3 06-01-2009 04:43 PM
Best tools to build Document Generator? wildkick General Programming 3 01-13-2009 02:53 PM
how to do a good rights management Orjan PHP Forum 8 08-27-2008 11:49 AM
UNIX HELP: C programmers Dr. Abbey MarketPlace 5 05-26-2008 12:57 PM


All times are GMT -5. The time now is 10:59 AM.


vBulletin v3.8.0 ©2010, Jelsoft Enterprises Ltd.


no new posts

LinkBacks Enabled by vBSEO 3.1.0