Tracking User Actions In ASP.net Data Access Application

Jul 19, 2010

I need to log every user-action taken on a database using the username of the person logged into my ASP.net application as the identifier in the log. What is the easiest way to do this? I guess that for every method call to my data access layer I need to log the parameters of that call and the username and then call a new "log event" method that writes the details of the call to a table. Am I on the right track?

View 2 Replies


Similar Messages:

MVC :: Child Actions Are Not Allowed To Perform Redirect Actions

Jun 29, 2010

I am getting an exception that child actions are not allowed to perform redirect actions. Although I can understand that this might is true in most situations I do believe that the framework might allow this to pass when a Child Action is calling another child action like in this example:

I have this code in my CountryController (I compacted it a bit but the main concept remains that I have a controller with Child Actions only):

[Code]....

This exception is being thrown:

Server Error in '/' Application.

Child actions are not allowed to perform redirect actions. Description:An unhandled exception occurred during the execution of the current web request. Review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Child actions are not allowed to perform redirect actions.

View 4 Replies

User Controls :: How To Restrict User To Some Actions

Nov 21, 2013

I have 2 types of users- administrator and students..

now whenever login...

a student can only add their their info, view other students' info and perform some other basic actions, and

an administrator can view the students' info, select & reject them for some particular criteria.

What can I do for these two types of users for control their activities??..

View 1 Replies

How To Localize The Controller Names And Actions In MVC Application

Nov 24, 2010

I'd like to fully localize my ASP.NET MVC application, and while there are many articles that deal with the various pitfalls of ASP.NET MVC localization, none of them deals with an aspect that I want to deal with, and that is the localization of URLs, including the controller names and actions.

I would like a way to specify the strings that should appear instead of the controller name and action name in the URL, for example in a resource file.

View 3 Replies

Tracking URLs User Visited During Session

Mar 28, 2011

I have an app with alot of anchor tags in it. I wanna see what ones a user clicked on during a session. I thought aspnet automatically saved that information here:
string sessID = System.Web.SessionState.SessionID;

But there is no such thing as SessionID in the SessionState namespace. Is this information saved automatically, if so how do I access it? Here is my simple html

<body> <form id="form1" runat="server">
<div> Page 2
<a href="{URL}">Visit W3Schools</a>
<br /> <a href="[URL]">Yahoos</a>
</div> </form> </body>

View 2 Replies

Frameworks For Tracking End User Usage / Analytics

Nov 6, 2010

I would like to have framework for tracking web site/page usage within company firewalls on asp.net platform. Want to track hits and integrate with particular feature within an application to understand end user usage (i.e. log particular actions of users in addition to simple page count type analytics). I have yet to find a framework to do this with asp.net/iis7 internal to a company (i.e. not google analytics).

View 1 Replies

Authentication - How To Limit .net Control Actions Based On User Role

Mar 12, 2010

I have several pages or views in my application which are essentially the same for both authenticated users and anonymous users. I'd like to limit the insert/update/delete actions in formviews and gridviews to authenticated users only, and allow read access for both authed and anon users.

I'm using the asp.net configuration system for handling authentication and roles. This system limits access based on path so I've been creating duplicate pages for authed and anon paths.The solution that comes to mind immediately is to check roles in the appropriate event handlers, limiting what possible actions are displayed (insert/update/delete buttons) and also limiting what actions are performed (for users that may know how to perform an action in the absence of a button.) However, this solution doesn't eliminate duplication - I'd be duplicating security code on a series of pages rather than duplicating pages and limiting access based on path; the latter would be significantly less complicated.I could always build some controls that offered role-based configuration, but I don't think I have time for that kind of commitment right now.Is there a relatively easy way to do this (do such controls exist?) or should I just stick to path-based access and duplicate pages?

Does it even make sense to use two methods of authorization? There are still some pages which are strictly for either role so I'll be making use of path-based authorization anyway.Finally, would using something other than path-based authorization be contrary to typical asp.net design practices, at least in the context of using the asp.net configuration system?

View 3 Replies

C# - Finding Recommendations For Google Analytic For Tracking Users Activities In Web App Application Admin Section?

Mar 17, 2011

I'm developing a CMS for my website.

I need track Users activities in my Cms Admin section (protected by password).

I would like to know:

If is possible add GA (Google Anlytic) code and use it even if the pages where the code is placed are covered by password.

If such use can create secrity vulnerability of any kind. (If is good or bad practice).

How to retrieve easily the statistics from pages in Admin section if the folder for admin is (example: ADMIN) in GA account. They come up like /admin/mypage.aspx??? Or how???

Generally, I would like your opinion about it and if you are using this approch it in your current web application.

View 2 Replies

Blocking Access To Application For A User

Dec 9, 2010

I have an ASP.NET MVC application that use the default ASP.NET Membership Provider. My customer asked to implement a feature that prevent users to log in (for example for users that resign and leave the company). I cannot use the IsApproved flag of the Membership table because that field is used to confirm user egistration. Is there any built in functionality for doing this? What are your experiences in scenarios like this?

View 1 Replies

How To Store User Actions / Answers While Taking An Online Exam To Be Retrieved If Connection Is Down

Feb 25, 2010

For an online examination system, user actions/answers to be stored and later retrieved if user connection is down. Which logic should be preferred, client side logic [cookie], or server side logic [Session/Database]?

[Edit]

How user answers will be stored? using specific timer interval for storing user answers? or after specific parts of exam? What is best practice for implementing such solutions?

View 2 Replies

Web Forms :: Concurrent User Access In An ASP Application

Oct 21, 2010

If multiple users access a web-form at the same time, how can I allow that using my code? Essentially each user reads and writes one variable in the application, and concurrent access is causing problem there.

View 5 Replies

C# - Tracking The Process Of A Singleton Process In A Web Application

Jan 26, 2010

When I hit the run button (in my Default.aspx), a process starts (this process contacts a webservice to get some files, etc). How do I: Ensure that only a single process is running at a time (i.e. if I refresh the browser, I don't want to start the process a second time)Track progress - there are 4 points of the process (at 25%, 50%, 75%, 100%) that I want to track, and when each part completes, I want to update the progress bar. I have a status object for the running process, but the question is how to update the progress bar automatically? Do I need to use threads to achieve the above two?

View 1 Replies

MVC :: How To Pass Data Between Actions

Aug 10, 2010

I am set up a series of pages like so...Page 1: User is presented a series of checkboxes. Each checkbox represents a group.<User makes selection and submits form, Controller validates input and send selected list to next action>Page 2: User is presented a series of checkboxes of items within the groups he/she selected in step 1.<User makes selection and submits form, Controller validates input and send selected list to next action>

View 2 Replies

How To Pass Data Between Controllers And Overloaded Actions

Mar 13, 2011

I have one controller that takes a username and pass and checks against a database. IF the user is authenticated, I want to call an overloaded action on another controller.

My end goal is to authenticate a user against an old table from a MySQL db (I have this part working). Once the user is authenticated, I would like to be able to "automagically" forward the person to the built in MVC registration page but I would like to populate some fields in the view using data obtained from the first controller (the old databse info).

When I try something like what I have below I get an error about the Register() methods being ambiguous. I've also tried using the [ActionName("Register2")] attribute but then the error returned says it cant find a method named Register2.

[Code]....

View 2 Replies

Failed To Generate A User Instance Of SQL Server Due To Failure In Retrieving The User's Local Application Data Path

Jan 22, 2011

i have an asp.net project in vs2010 i have a db and table inside the app_data folder, i have created a deployment package and have imported the package into an iis server that is installed on my local mechine.
now i get this error message while trying to preform an insertion.

Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed
the connection string is:

Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|survey.mdf;Integrated Security=True;User Instance=True

when running it inside VS2010 it`s working fine.

View 1 Replies

SQL Server :: Tracking Down Data Conversion In Sql Update?

Dec 27, 2010

have been working this issue for the last two days and I cannot for life of me track down the problem. I am using an Update parameter statement to update records in a sql db. I have done all the debugging in VWD but I get no specific error line details. I think it is a mismatch type with the primary key field. Below is the stacktrace:

[SqlException (0x80131904): Error converting data type varchar to numeric.]
PowerUsers_OfficerUpdate.btnSave2_Click(Object sender, EventArgs e) in C:UsersxxxxxxDocumentsVisual Studio 2010WebSitesWebSite3xxxxxxxx.aspx.vb:106
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

View 2 Replies

MVC :: Data Annotations, View Models & Multiple Controller Actions?

Feb 17, 2010

quick question: I have a view on my HomeController which is used to create a new 'model'. This view posts to a different controller to keep things tidy. The problem I am having is when I enter invalid details into the form, the rules I specified never seem to make it back to the original view and thus my validation messages or summary never get populated. Is there a way around this because I am using a view model with two IEnumerable lists in it.

View 5 Replies

MVC :: Using Jsonresult Actions To Pass Json Data To Third Party Apps?

Oct 9, 2010

i want to use MVC 2 actions to pass JSON data to a 3rd party application via a URL.The URL will be in the form of http://www.abc.com/controller/action..I am using JSonResultHow can i test the output of this URL to ensure the JSON is properly formed..

View 2 Replies

Usefulness Of Microsoft Data Access Application?

Jan 23, 2010

I am planning to start learning asp.net mvc. And also I want to learn Microsoft's Data Access application block. But I dont want to waste time in MDAC block if theres a better option to go for, or if MVC provides any good feature than MDAC. As I have heard MVC architecture automatically generates code.

View 2 Replies

Access :: Linking Of Ms Access Db With Web Application(Syntax Error In String In Query Express)

Jun 7, 2010

i am new to asp.net programming i am trying to connect asp.net web application with ms access 2007 database. i have taken with two text boxes and when i enter some data in it and press submit button the data must load in access db i created with same fields.

my code is :

[code]....

Syntax error in string in query expression what is the correct way of inserting data into access db and what is the Syntax error in string in query expression.

View 3 Replies

Creating VB Application With VS 2010 That Access Data Via The Internet?

Jun 7, 2010

I have been creating a web site over the past year that has been used as an appplication for the company I work for to allow remote and local users to update data. It has been working ok but I want to see if there is a better way to do what I need to.

issue is that the remote sites are all on satellite internet access and the latency and bandwith are hurting us. I have looked at some thrid party options such as Gizmox WebGui but I would like to explore other options.

Is it possible to create a VB application with VS 2010 that would allow users to update data from the remote sites? The only people using the application would be company employees and I can update the program during the evenings if I make any changes during the day. My thoughts are that the amount of internet traffic would be data engages and that would solve the bandwidth issue and therefore mitigate the latency issue somewhat since there would be less traffic.

View 2 Replies

Build A Data Access Layer For New Web Based Application?

May 17, 2010

I was looking to build a Data Access Layer for my new web based application, I'm using ASP.NET. I'm want to build a framework not only for this application but also want to utilize it for my future projects.

Actually my main aim is to make a framework, from DAC, DAL, BL to GUI. I want suggestions from you guys that what should i adopt, what give me flexibility, which suits for both small and large size applications.

View 4 Replies

Forms Data Controls :: Access DataSet Throughout Application?

Oct 15, 2010

I want to be able to access my dataset from other protected methods. So far the only way for me to do this is declare my dataset globally (dataset mydatset = new dataset();) and then within my methods I return the dataset after I'm finished filling it with my SqlDataAdaptor. I don't think this is very efficient. Is there a better way of accessing this. I understand when you give the dataset a table you should be able to access it's value. However the dataset becomes null once another method is called??

View 1 Replies

Application Block Connection String From Data Access Layer

Jun 4, 2010

I am making use of 3-Tier architecture while making my project. And in Data Access Layer I am making use of application block, but application gets a connection string from web.config; but ClassLibrary of Data Access Layer doesn't contain web config file. How can I access connection string from Data Access layer?

View 5 Replies

State Management :: Create Data Access Layer For Web Application?

Apr 21, 2010

I'm attempting to create Data Access Layer for my web application. Currently, all datatables are stored in the session. When I am finished the DAL will populate and return datatables. Is it a good idea to store the returned datatables in the session?

Note: generally the number of rows in the datatable will be small < 2000.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved