.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

Show users which files they have downloaded

Posted By:      Posted Date: October 18, 2010    Points: 0   Category :SharePoint


I am setting up an extranet for our organisation that allows clients to download a large amount of files (several hundred per month). This works fine in general, the only problem I have is that the clients want to see which files they have already downloaded and which not, as it is quite difficult to handle otherwise.

I have been tearing my hair out over this and haven't been able to come up with a good solution so far. Is there any way for SharePoint to display to the user whether they have already downloaded a file or not?

Thanks for the help.

View Complete Post

More Related Resource Links

Code Name WinFS: Revolutionary File Storage System Lets Users Search and Manage Files Based on Conte


One of the monumental problems organizations face today is aggregating information that's stored in disparate formats. Knowledge workers have long wanted to be able to search for content independent of format. The next version of the Windows operating system, code-named "Longhorn," boasts a new storage subsystem that makes that task easier. That subsystem, code-named "WinFS," allows the user to perform searches based on the metadata of the stored item, regardless of what type of file it is or which application created it. This article covers the basic architecture of WinFS and explains how to use the WinFS managed API.

Richard Grimes

MSDN Magazine January 2004

Search result show unauthorized Files Share


Hi All,

I configured a FileShare content source, the crawl about this source works very fine, but when a end user perform a search on it ,he can show into the search result files that are no access on the file server, but when he click on it of  course he received an access is denied.

How I can filter the search result about FileShare content source to see only files with authorized access?

Thank you for your help,





create a page show all users with filter



i want to create a page like asp.netwebadminfiles/security/users/manageUsers.aspx

can you give me a link?


Show users based on ad-security group or OU


Will it somehow be possible to show members of a AD group ?

We have some superusers, and they all have the ad-group: super_users.

Can i show all members somehow ?

Maybe by a search flag, so it is just a link to a search result ?

Jakob Olsen

delete downloaded files


Hi all,

I'm not very familiar with asp.net, but i have created a small application with your help.

I can create  dataset's and add some files to this dataset's.

My problem is that i can't delete the added files. I have a button delete but is only delet the record in the sql database but not the files from the harddisk.

Can anyone help me to solve this problem?

I tried allready view months ago but unfortuntly o couldn't solve this.

here is my frontend: (see the part with Gridview1)

<%@ Page Title="test" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="detailshyper.aspx.vb" Inherits="details" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:freelancerberConnectionString %>"
        DeleteCommand="DELETE FROM [freelancer] WHERE [ID] = @original_ID AND (([name] = @orig

Search in SharePoint 2010 does not show results for all users other than the timer service account


I have setup a new SharePoint 2010 setup. Created Search Service application and configured. Confirmed that the crawl went fine without any error for both Local site and a file share. In the Search application i confirmed that the All Site scope shows 3890 items.

ISSUE: If any of the user [including site collection administrator] browses the site and try to search something it does NOT show result [No error either it says We did not find any results for .....]. All Site scopes does not show 3890 items but only 28.

But if the timer service account [system account] logs in the site and does the search it works fine.With this account loggd in if i check the All Site scopes i do see 3890 items.

This does seems to be some thing to do with the permission, but i am not able to get hint where the mistake is.

I have done the follow till now.

> I checked the application association is correct
> Created a new web application and confirmed that the issue exists there as well
> Checked ULS log but dont see any error related to this.
> No relavent event id in Application event viewer

Please help

Regards Ram

Need to turn on/enable multiple files upload for some users



I have some users not being able to upload multiple files to a SharePoint folder.

Details: In the upload sub-menu I have

  1. Upload Document
  2. Upload Multiple Documents

However, the other users only have option 1 "Upload Document" but they cannot even see "Upload Multiple Documents"

What should I do? I am open to suggestions. If you need additional questions please let me know.


Preventing of Javascript files from being loaded for Anonymous Users



we have  developed an internet  site using Sharepoint 2010 and are trying to fine fine tune the site w.r.t. the performance and are trying to block the OOTB javascript files(i.e ie55up.js, init.js,SP.Core.js,cui,js etc.) for anonymous users.

Have tried all the conventional ways followed in Sharepoint 2007 for the same (i.e. tweaking SharePoint:ScriptLink , asp:ScriptManager controls, using Sharepoint:SPSecurityTrimmedControl etc.) but in vain.

It appears that the OOTB controls placed even in the Sharepoint:SPSecurityTrimmedControl block are called for anonymous users and call  the .js files).

Can anyone suggest the ways to remove the page weight , currently the javascript alone are taking 2MB even for the anonymous users.


Thanks and Regards,


Show ALL documents in search result, but only allow users with proper permissions to open


I am trying to set up a site with multiple document libraries with permissions for different groups of users. When users search for a document, I want them to be able to see ALL documents that match the criteria, even if they do not have permission to view the library, however, they should not be able to open the documents for which they dont have read permissions.

Please advise on how to set this up



I want to believe

Stored procedure to get list of files and downloaded

Hi all,I have the below table which gets updated whenever the files get downloaded.The details of list of filenames downloaded will be saved in this table.i need to get the files which are downloaded and put it into a temp table on regular basis.From that Temp TAble i will use the Filenames and split each file into two.The DownloadID will be unique in this table.I need to write a Stored procedure for all this process.How will be the stored proc?i need to call this proc in a job.can you help me in writing the proc..
DownloadID	ConfigurationId		FileName	          LogDate	     FilePublishedDateTime	 
1	          2301		Nobel_2010_10_01.tsv	 2010-10-01	2010-10-04 02:19:53.000	
2	          2301		Nobel_2010_09_08.tsv	 2010-09-08	2010-09-09 21:49:00.000	
3	          2301		Nobel_2010_09_08.tsv	 2010-09-08	2010-09-09 21:49:00.000	
4	          2701		System_2010_10_01.tsv	 2010-10-01	2010-10-03 23:57:41.000 
5	          2401	     Boot_2010_10_01.tsv	 2010-10-01	2010-10-04 00:46:19.000 
Thanks in advance!!

hide or show CheckBoxList depending on Users logged in profile??



New users can register on my site by completing a basic form that has the create user

wizard control with some additional information i am collecting using a CheckBox List.


They can then log in to the site and and view "MypProfilePage.aspx" where I

display the information with the CheckBoxList boxes already ticked based

their selections which they can update.


My problem is I have two levels of User and each one has a different registration form.

Registration Form A

Has 20 Items in the CheckBox List


Registration Form B

Has 10 items in the CheckBox List


On the Profile Page, I just want to show the  CheckBox which is relevant to the Registration form A or B and with selections by the  registered user.

So therefore the User who registered on B will not be able to see the selections checkbox list for A.


I hope this makes sense and appreciate any solutiosn in c sharp ideally.




When Adding users some show as domain\username others as full name


When adding users to SharePoint site some show as Domain\Username while others show as "First Name Last Name". once of the users that show as Domain\Username is noticing some strange thing with his access.

I tried to remove the user that shows as domain\username and add again but still appeared as domain\username.  Also, when I click on the link for domain\username I get message "the webpage cannot be found", while for the users that show as First Name Last name I am able to view their User Information page.

Out of some 40 users I only have 4 that show as domain\username.

Anyone know what is the cause or a fix?

UPDATE: I went to SharedServices1>User Profiles and Properties>View User Profiles and there are 10 profiles listed inlcuding my owne. :)  For some reason when I go to our http://sitename and go to site settings>people and groups and click on one of the 10 user names I get page cannot be displayed.  Maybe now I have two issues instead of one.


How can we show certain no of dimension only for two different users having different role in a sing



well i might be having a security problem so i just want to know that can we show certain dimension to one user say  (i.e 10dimension for A user and 15 dimension for B user having different user role in a single cube.)

Please any one help me out soon and give some ideas...so that i can solve my issue ,can we solve this issue naa.. :( ..!!!


Anil Maharjan

Securing setup files from other users


I am creating a set up file.

in user inter faces > start >

i am adding a dialog called "text box (A) " it's contains four text boxes.

i need two text boxes one is for user name and another is password,for that i am doing visible = false in properties windows

when ever the installation starts after welcome screen of installation , text boxes are showing when any user press the next button without

providing these details it is allowing how can i validate that one.

for every user there should be a user name and a  password in the main server.

when ever the user provides the username and password and then press next the details has to be check by the database by a relevant

connectivity and continue the installation if the user is valid.

other wise show the message called "user name and password are invalid".


for example buyer and seller 2 users are their.buyer are log in after it will show welcome buyer and


for example buyer and seller 2 users are their.buyer are log in after it will show welcome buyer and seller log in after it will show welcome buyer.
how u solve this bug.

Clean Web.Config Files (VS 2010 and .NET 4.0 Series)

.NET 4 includes a new version of the CLR, and a new .NET 4 specific machine.config file (which is installed side-by-side with the one used by .NET 2, .NET 3 and .NET 3.5).

The new .NET 4 machine.config file now automatically registers all of the ASP.NET tag sections, handlers and modules that we've added over the years, including the functionality for:

.ASP.NET Dynamic Data
.ASP.NET Routing (which can now be used for both ASP.NET WebForms and ASP.NET MVC)
.ASP.NET Chart Control (which now ships built-into ASP.NET V4)
What this means is that when you create a new "Empty ASP.NET application" project in VS 2010, you'll find that the new default application-level web.config file is now clean and simple:

MS SQL Server: Disconnect Users From Database - Kill User Session

If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.
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