.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

Tracking user logouts in Web applications

Posted By:      Posted Date: August 28, 2010    Points: 0   Category :.NET Framework
Hi,  I have a text file for my asp.net webapplication that I write to using code behind, and I am trying to record in it user activity(username, log in time and log out time). The log out time can be detected when the user presses the log out button and triggers the logout button event, but when the user presses the close button in the browser it is difficult to track user logouts. What is your advise on how to track user log out time and get the duration of user activity at each login? please advise for best approach ...

View Complete Post

More Related Resource Links

Creating Tracking Applications in Microsoft Office 2010 and Publishing Them to Microsoft SharePoint

Resources to help you develop manageable solutions for your organization to create, share, and collaborate on team databases; be more productive with Microsoft Access 2010 developer enhancements, and get started faster with one-click community templates.

Windows Workflow Tracking User Data and fetching via SqlTrackingQueryOption


We are using WF in one of our application. We would like to track user data so that when we query via SqlTrackingQuery, we get the desired workflows only but the issue is that Activity.TrackData is not writing to the TrackingDataItem table instead it writes to the UserEvent table. When we use the SqlTrackingQueryOption and set the TrackingDataItems property it does not return any value as it makes a join to the TrackingDataItem table. This i have figured out by using Reflector.exe. Could u kindly tell us what we are doing wrong. We will be very gratefull.

P.S. I can also submit the code if requested.

SharePoint User tracking and PeoplePicker binding to SharePoint 2010 List



First, apologies as I'm not sure if this is best forum for these questions. I'm pretty new to both SharePoint and Infopath, but am now having to learn both ASAP.
The enviroment is Windows Server 2008 Standard SP2, SharePoint 2010 Foundation, SharePoint Designer 2010, InfoPath 2010 (but targeting InfoPath 2007 client as this is what is rolled out in the company) and VS 2010.

My first question has to do with how the PeoplePicker control interacts with a User field (Person or Group column) in a SharePoint 2010 list; I don't quite get how to bind the control to the field (which I move into MainDataSource after retrieving the list item in XML via OWSSVR web service). If I create the 2 groups and 3 fields manually (or programtically) in the MainDataSource, how do I populate them from the XML data and which are the bits that need to be written back when I update?

Next question: what is the easiest way to lookup extended information about a named user, e.g., to make sure that the person being selected for a field is a member of group ZYXXY. Remember I'm using InfoPath 2007 client.

My last question is a bit more general with respect to how/where SharePoint caches User information. The company keeps AD updated for current employees and other users, but obviously there is turnover and policy is to remove them. What happens to list ite

Multiple User Profiles Service Applications


We are trying to split our MySite users into two different groups due to their physical location. First group will be at Location A and their profiles will be in their local SQL box, second group will be at Location B and their profiles will be in their local SQL box. Two locations are connected by a VPN tunnel.

So we created two MySite hosts, Audience groups, and added Trusted Host Locations. Then we realized that on top of existing User Profile Service Application A (used for Location A) we needed another User Profile Service Application B for a second location (Location B). After creating second User Profile Service Application we went to Configure Synchronization Connections but everytime we clicked on Create New Connection we got the following error:

"Cannot navigate to the requested page because User Profile Synchronization service is not running. Please start the User Profile Synchronization service before creating a connection."

But if we try to add connection to the the existing User Profile Service Application A it works fine. We triple checked that service in question is running. We did notice that User Profile Service Application A is running Profile Synchronization Instance on

Wiki user editing tracking

I work at a K-12 school and we use SharePoint 2010 for our teacher web sites.  In our Upper School History classes they are using the Wiki feature to have groups create study guides.  The teachers would like to be able to track the edits done site wide on a user basis for grading purposes to ensure that all members of the group are contributing.  They can go into a particular page and look at versions to see who has done edits and what edits they have done but there could be 100's of pages so this impractical.  The teachers would like to roll-up the data from the individual pages into a view for the whole site.  I know all this data is tracked either via versioning or analytics but I can't quite figure out how to display it in a useful fashion.  I tried the Web Analytics web part and if it had user filtering rather than department or title filtering it might work.  Is there an existing web part that might help with this or some other reporting I can draw upon to acomplish this?  Thanks for any pointers.

Working with User Names and Roles in Silverlight Applications


Security is a key component of applications and something that developers often struggle with to get right. How do you authenticate a user? How do you integrate roles and use them to show or hide different parts of a screen? These and other questions commonly come up as I talk with developers working on ASP.NET and Silverlight applications.

I was recently presenting a workshop on Silverlight at the DevConnections conference in Orlando and had a question from the audience on how I handle security roles in Silverlight applications. Since I had just implemented a security mechanism for a customer I gave a brief response but didn't have a sample application available to share to point people in the right direction. After the workshop was over I put together a sample application to demonstrate one potential approach for accessing user names and roles. I'll walk through the sample application in this post and highlight the key components.

The goal of the post isn't to dictate how to authenticate users since every application has unique requirements. However, I will discuss general techniques for accessing user names and working with roles to block access to views and show or hide controls.


Security Techniques

Silverlight applications can take advantage of Windows and Forms authentication techniques and can integrate user roles in

Windows Service Applications Tutorials

You can easily create services by creating an application that is installed as a service. For example, suppose you want to monitor performance counter data and react to threshold values. You could write a Windows Service application that listens to the performance counter data, deploy the application, and begin collecting and analyzing data.

ASP.NET Best Practices for High Performance Applications

This article lists the techniques that you can use to maximize the performance of your ASP.NET applications. It provides common issues, design guidelines, and coding tips to build optimal and robust solutions.

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.

Business Modelling and Web Applications and extending UML

UML can be used to model a business, prior to automating it with computers. The same basic UML syntax is used, however, a number of new symbols are added, in order to make the diagrams more relevant to the business process world. A commonly-used set of these symbols is available in current versions of Rational Rose.

Building Layered Web Applications with Microsoft ASP.NET 2.0 - Part 1

"Building Layered Web Applications" that shows you how to build N-Layer applications with Microsoft ASP.NET 2.0. These articles teach you how to design, build and use custom business objects in your web application. The target audience for this series are developers that are ready to make the switch from using SqlDataSource controls to ObjectDataSource controls with custom business objects. Experience with ASP.NET 2 and C# is necessary while some knowledge about object oriented design certainly helps. The design I am going to show you in these articles is a simplified version of a design you would use in a real world application. It doesn't feature all the necessary functionality your application needs, but instead focuses on the underlying concepts.

How to improve the performance of ASP.NET MVC web applications

It is an in depth analysis of a Digg-like site and how it went from serving (on a test machine) 6 req/sec to 390 req/sec.

The biggest gain, 74 req/sec to 390 req/sec happened when he introduced data caching and another 25 req/sec where gained when he introduced the compilation of LINQ queries.

WCF Callbacks Hanging WPF Applications

I have a WPF application that communicates with a pretty basic WCF service. Whenever a callback is issued in the middle of a request, the WPF application completely hangs. It's obviously a synchronization issue, however I've gone through the forums and articles and set every imaginable attribute on every imaginable object with no successful outcome.

Multithreading in .NET Applications, Part 3

Multithreading is a powerful design tool for creating high-performance applications, especially those that require user interaction. Microsoft .NET has broken down the barriers that once existed in creating multithreaded applications. The last two installments of the .NET Nuts & Bolts column were

10 Tips for Writing High-Performance Web Applications

Writing a Web application with ASP.NET is unbelievably easy. So easy, many developers don't take the time to structure their applications for great performance. In this article, I'm going to present 10 tips for writing high-performance Web apps. I'm not limiting my comments to ASP.NET applications because they are just one subset of Web applications. This article won't be the definitive guide for performance-tuning Web applications-an entire book could easily be devoted to that. Instead, think of this as a good place to start.

Application Architecture in Windows Forms 2.0-Single-MDI Applications

Consider an MDI application like Microsoft Excel; files opened from the file system (by double-clicking) are all opened as separate child windows within the parent Excel window.7 For the first instance of an MDI application to open a new child window to display the file that was passed to the second instance of the application, the second instance must be able to communicate with the initial instance.

Choosing Between a User Control or Web Part for SharePoint

SharePoint will only display Web Parts on a page. However, there are publicly available shims that allow you to write user controls and have them be displayed as a Web Part. From SharePoint's point of view, the shim is a Web Part. From the point of view of the user control, the shim is simply a control in .NET that is including the user control
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