.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Membership as a security/administration model for upload/download of documents

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :ASP.Net
Hi community, I'm working on a website where it should be possible for registered users to upload word documents. The administration of users is done through Membership and Profiles. When the documents have been uploaded, the following needs to be achieved: Non-registered users should not be allowed to download documents I should be able to control which users that has access to which documents I should be able to register which user downloads which documents I should be able to track how many times a document has been downloaded Can this be achieved be using Membership and Profiles? Thanks in advance Best regards Phecdaret

View Complete Post

More Related Resource Links

CLR Inside Out: Exploring the .NET Framework 4 Security Model


The .NET Framework 4 introduces many updates to the .NET security model that make it much easier to host, secure and provide services to partially trusted code. This article dives into the many features and benefits of the .NET security model.

Andrew Dai

MSDN Magazine November 2009

Scripting: Windows Script Host 5.6 Boasts Windows XP Integration, Security, New Object Model


Windows Script Host (WSH) 5.6, a major upgrade for the WSH environment, provides some significant improvements over previous versions. A brand new security model that is tightly integrated with security in Windows XP allows administrators to place fine-grained restrictions on scripts reducing the risk from malicious code. In addition, local scripts can now run on remote machines, and enhancements to the object model reduce the amount of boilerplate code needed when writing professional code. This overview of WSH 5.6 explains these changes and how .NET and scripting work together.

Dino Esposito

MSDN Magazine May 2002

Private Security Model Integration

Does anyone have any recommendations on tieing the Microsoft AS security model in with an independent security model. We are at the beginning process to discuss this with a very large international partner and are looking for recommendations form anyone who has done this before. Thanks in advance Alan

Webshop Security - Membership provider useful?

Hello,I have to implement a small webshop. Basically it's just a website with a huge backend ERP System and with the possibility to sell one (yap, really only one!) product on the website. The only requirement is a MySQL Server. The backend is almost finished (about 95%) and is secured with the .net MemberShip Provider for MySQL (the one in MySql.Web from the MySql Connector .NET).Now to my question: I can set up the membership system easily but I do not need such things like username or password-question but I would need a reference to an address table to store the users home address. So, it is possible to change or customize the membership system to for eg. a unique customer id instead of the username column and set this in codebehind when the user is creating a new account? And is it possible to insert new users/customers from codebehind in an easy way? (I mean without checking each foreign key and inserting the customer reference to the userinrole table and so on...)Some tips appreciated.. :-)Thanks and regardsChris 

Upload documents to Sharepoint 2010 Document library

Is there a way to upload documents to an SP 2010 document library with Custom Actions or Workflows?  I have a requirement of taking the contents of several directories (older data files) and uploading them to Sharepoint.  Not sure which actions actually perform this operation.  Any help most greatly appreciated.

Clicking on "Shared Documents" gives link to download instead of opening document library

Hi, I hope someone can help! All of a sudden (I don't know if someone has changed something!), whenever anone clicks on a link to open the "shared documents" document library in a specific site within our sharepoint site, instead of opening the document library, it instead gives a download dialog for a zip "AllItems.aspx" as a zip file. Anyone got any iteas what could have gone wrong and how to correct the issue?   Many thanks for any help!

Office Web Apps: Disabling the feature and just normally download Office documents?

Apparently it's not a good idea to uninstall Office Web Apps, as it leaves the farm in an inconsistent state. (http://blogs.architectingconnectedsystems.com/blogs/cjg/archive/2010/04/30/Uninstalling-Office-Web-Apps-_2D00_-Be-Careful_2100_.aspx) Is there a way to disable Office Web Apps after it's been installed and activated? I tried disabling the service in the Site Collection Managed features, but when I click on a document it still opens in the Office Web Apps instead of downloading it to my computer.

Sharepoint 2007 Upload Multiple Documents error on Windows Vista

Hi all, I am having an issue uploading multiple documents from a share using the "Upload Multiple Documents" on the toolbar in a document library. The user experiencing this problem has a Windows Vista machine that recently replaced XP. They have mapped shares that they use. The shares work fine in windows explorer, but when you click the + next to the share through the "Upload Multiple Documents" function on sharepoint, the machine thinks for a while, then removes the + and shows no documents. Anyone know why this is happening?

Cannot upload multiple documents from DFS network drive with Windows 7

Hi,   We have a Moss2007 installation with SP2 and CU update October 2009. All our clients have a network drive to a DFS link. We use XP, Vista and Windows7 clients   Our DFS structure: DFS-Namespace\A LOT OF DFS-Links\   Problem: When a Windows 7 user want to upload multiple documents (Doc Library menu->Upload->Upload Multiple documents), he cannot expand the DFS network drive. This problems is only on Windows7 and not on XP or Vista.   I think that Windows 7 has another interpretation about the DFS links because when we try to upload multiple documents from a network drive that is linked directly to a DFS folder, you see all the folders and documents when expanded.     \\DFS-Namespace\DFS-Links   -> Not working \\DFS-Namespace\DFS-Link\folder   -> No problem     When you go directly to the network drive though Windows explorer, you see that Windows 7 show a folder with shortcut icon instead of a normal folder icon for a DFS LINK. Windows Vista show’s  an normal folder icon for a DFS Link. Maybe not relevant, it ‘s only a remark.     Someone any idée?   Regards,

How to upload and download files from remote servers without using FTP

Hi, Can we upload and download files from remote servers without using FTP? If yes can you please tell me how can we do that? Thanks in advance, Vikas Jaigude. 

File Download does not continue after IE Security warning

Hello. First let me give a reference to my code which is in another post  http://forums.asp.net/t/1600899.aspx I'm running into an issue where in IE the security dialog is popping up and if I click download File the file is never downloaded..it just goes back to the main page. I'm using a web service to generate the file on disk and then setting the src of the iframe to the file..I also tried an alternate approach of setting the src of the frame to an aspx page that pretty much does the following:  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim file As String = Request.QueryString("file") Response.Clear() Response.ClearHeaders() Response.BufferOutput = False Response.ContentType = "application/zip" Response.AddHeader("content-disposition", "attachment; filename=" + file) Response.TransmitFile(file) Response.Close()     works fine in firefox but not IE...

ASP.NET 2.0 Membership Security

I have a website running on iis 5.1 with asp.net 2.0.  Where in the windows registry can I change the requirtements for some the security features?  For example,  I do not want to enforce strong passwords and I do not want to use the secret question and answer features. Thanks

File Upload to database (and download)



How can I upload a file to a database (with as little code as possible!) along with a desciption of a file and then search through the descriptions to retrieve the appropriate files. Then how can I click on one and download it.

I am not a very advanced programmer and would like full step by step code if possible not just a link to a website.

Thank you very much


Upload and Downlaod Multiple documents?


Can we upload or download multiple documents to shared documents ?

I have an option to upload multiple documents, but when I place my pointer over there, "This control is currently disabled.. You might not have the right permission level to use this, you might need to select an object or item, or the control might not work in this context" I am getting this error.

Please let me know how to download or upload multiple documents.

Problems with security trimmed BDC model

I've been trying to implement .NET assembly connector with security trimmer in SharePoint 2010. So far I've managed
to create a single wsp-package that implements a crawlable content source and ISecurityTrimmer2.CheckAccess-method
that gets called when objects from this external content source are being shown in search results (implemented as described
in http://msdn.microsoft.com/en-us/library/ee819923.aspx). Now I'm however facing a problem that the items in documentCrawlUrls
given in IList<String>-parameter of ISecurityTrimmer2.CheckAccess aren't of the same type as the identifiers passed e.g.
to ReadItem-method of the BDC model. Instead, they are something like the following:

when the identifier given to ReadItem is e.g. something like:

So the question is, how can I convert the identifier given to CheckAccess into the same format that is used in the BDC model?

how to set a client folder to get upload and download the file.


i create a web site for uploading and download but i require that a folder create in client side if client download the file these file automatically save 

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend