C# - How To Log User Operations For An Application

Sep 22, 2010

How can we log user operations for a asp.net application. Further what is the approach for saving the log data ?

View 3 Replies


Similar Messages:

SQL Server :: Trigger Operations Application Code

Dec 6, 2010

I have many operations in the database that need to trigger asp.net applicaton code with service broker in sql server 2005

View 5 Replies

Secure WCF Operations Depending On The User For Authorization Means?

Jan 27, 2011

My scenario is a 3-Tier app where the data tier is a SQL Server database, the middle tier is a WCF application hosted in a Windows Service and finally the presentation is an Asp.Net MVC application.As usual, the middle tier is the one that performs all of the business logic. Access database, define business rules.. etc. BUT now here's question: How do you handle security in such a scenario? I mean, the user has to log in on the ASP.NET application, but I want to authenticate it not only in ASP but in the WCF middle tier as well, since a WCF service is supposed to be accessed by more apps.

I want the user to log in on the Asp.Net application and let WCF know the credentials as well. Is there some kind of session in WCF in which to specify a logged in user? How do pros handle security in this case? I know you can secure the WCF services with message security, but how do Asp.Net and WCF sync on a single logged user? I want to secure WCF operations depending on the user for authorization means.

View 2 Replies

Security :: Membership - Single User For Multiple Application And Different Role In Each Application

Jan 30, 2010

I have two .NET applications X and Y

a. I want to have User A as a common user for both application X and Y.
b. User A can have different roles on X and Y. Eg. Read permission on Y and Write Permission on Y.

How do i configure ASP.NET membership to achieve about functionality.

View 3 Replies

Web Forms :: Gmail Like Chat Application - Building An Instant Messenger Application For The Selected User

Feb 22, 2010

I have a requirement for building an instant messenger application for the selected user.

I have googled for the solution but without any sucess.My requirement is once a user initiates a chat with another user,the another user needs to get a popup of the chat window,where the two users can start chatting.

View 4 Replies

Use Threading With DAL Operations?

Sep 7, 2010

I want to use my functions in DAL asynchronously by executing them in a separate thread. The issue in all this is suppose I have a function DAL.GetProducts() which returns a DataTable. If I execute this function in a separate thread, when it is completed how do I get the returned DataTable from this thread and bind it to my UI?

View 3 Replies

ADO.NET :: Performing Several Operations In One Table?

Feb 15, 2011

I have a table in a DB in which I need to perform the following operations:

1. Order the table using index A.
2. Traverse the table and do some calculations for every row.
3. Order the table using index B.
4. Traverse the table and do some calculations for every row.
5. Order the table using index C.
6. Traverse the table and do some calculations for every row.

As you can see, what I need is to process such a table several times depending upon a different index for every process. If I use a DataReader I can only traverse it one way and one time, I cannot apply another index and start from the beginning once again. What strategy should I use to achieve my goal? Is a DataTable a good choice?

View 2 Replies

.net File Operations Delay?

Jan 7, 2010

I'm reading the stream from a FileUpload control, reading in chunks of n bytes and writing the array in a loop until I reach the stream's end.Now the reason I do this is because I need to check several things while the upload is still going on (rather than doing a Save(); which does the whole thing in one go). Here's the problem: when doing this from the local machine, I can see the file just fine as it's uploading and its size increases (had to add a Sleep(); clause in the loop to actually get to see the file being written).

However, when I upload the file from a remote machine, I don't get to see it until the the file has completed uploading. Also, I've added another call to write the progress to a text file as the progress is going on, and I get the same thing. Local: the file updates as the upload goes on, remote: the token file only appears after the upload's done (which is somewhat useless since I need it while the upload's still happening).

Is there some sort of security setting in (or ASP.net) that maybe saves files in a temporary location for remote machines as opposed to the local machine and then moves them to the specified destination? I would liken this with ASP.net displaying error messages when browsing from the local machine (even on the public hostname) as opposed to the generic compilation error page/generic exception page that is shown when browsing from a remote machine (and customErrors are not off)

View 2 Replies

User Controls :: How To Track And Save Time User Uses Application In Windows Forms

May 7, 2015

I did a winforms applicaion using C#. I has 'n' number of forms.I like to track application usage time from user login to application exit.

View 1 Replies

User Controls :: Unable To Get User Input In Required Format In Console Application

Apr 27, 2016

Create a class Employee which will implement the below interface: IEmployee. The application should accept the function to invoke and its parameters from the console in the Format:

[MethodName]:[Parameter1]:[Parameter2]
Ex: SetProperty:Age:44

The implemetation shold have the necessary checks on whether the input is in correct format by handling like FormatException.And the program should be able to continuously accept the input and print corresponding output until the input given as "Exit".

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1

[CODE]..

Issue: I am unable take the user input in the corresponding format.in the above code everytime I have to give the user input in the format "Set:Age:33" but this is not I m looking for .Actually firstly the expected input and output should be given in the format as per the screenshot I have attached.

View 1 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

Image Operations On Remote Server?

Feb 25, 2010

I recently purchased a new domain for the sole purpose of hosting all the static content on a separate server and delegate CPU intensive operation like thumbnail creation on a different pool. Now I would like to do some operations on images uploaded to that remote server : creating thumbnails or updating the image if we need to. Should I download the images to my server, modify them there and then upload them back to the remote server or should I try to create web-services to manipulate the images?One of my solution was to provide an interface to upload and manipulate the images in the new domain, by leaving the old domain when it comes time to work on images, but I find it kind of awkward.I would like to keep the new domain cookie free. How would that affect my ability to restrict any random user to use the web-services if I decide to go that way?

View 1 Replies

How To Perform Same Operations On Both WebControls And HtmlControls.

Jan 19, 2010

I find myself needing to preform the same actions on both HtmlControls and WebControls. I am a firm believer in DRY and find the fact that there is only the Control class to use if I want to consolidate the functions on both types. The problem that I have with using Control is that there certain properties that both HtmlControl and WebControl expose that Control does not. In the current case, the Attributes property is the problem. how to avoid the duplication of code in this type of instance?

View 2 Replies

Web Forms :: Bitwise Operations Using Enums

Dec 22, 2010

I have a page which is accessible only from Monday to Friday. If i try to open it on Saturday or Sunday it shouldn't.I have a column in my DB naming WorkingDays and iam storing Bitwise value

Monday=1,Tuesday=2,Wednesday=4,Thursday=8....

So the value in my DB is 31 which is equal to Monday to Friday.If i open the page on saturday how should i check?

How should i convert todays day to bitwise value and how should i compare with the DB value.

View 12 Replies

C# - Calling WCF Service Operations In AJAX?

Dec 8, 2010

I have one asp.net application, in which i am using "Calling WCF Service Operations in AJAX" method. I finished my work without the service hosting in IIS. I got the correct solution. But now, i have another requirement in which i am using the WCF service which is hosted on local host iis. But in clicking the button i got one javascript error like object expected. I don't know why this happened?
My code is shown below.

<fieldset style="width: 804px" align="center">
<legend>Consuming WCF Service using Client-Side AJAX</legend>
<div align="left" style="text-align: center">
<form id="form1" runat="server">

[Code]....

View 1 Replies

Web Forms :: Complex String Operations?

Feb 17, 2011

Does anyone have a tricky tip to simplify my complex String Operations? I receive a string sequenze from database which i have to manipulate on RowDataBound of an GridView, put the String into several controls. The String looks like this:Here goes a introduction string with easy formating options such as {blue}blue text{/blue}

{CONTROL}{ParamsForControl|ParamsForControl}Text for Control 1{/CONTROL}
{CONTROL}{ParamsForControl|ParamsForControl}Text for Control 2{/CONTROL}
{CONTROL}{ParamsForControl|ParamsForControl}Text for Control 3{/CONTROL}

Some Text at the end.My first try was easy because I haven't had an introducing and a ending text, so I split the String at "{CONTROL}" extract the Parameters and replaced "{/CONTROL}" with nothing, works fine...But if i now split at "{CONTROL}" how to handle the text in front of and behind them... I do a lot of string.IndexOf and String.LastIndexOf operations but I hope there is an easier way...Result should be:

Introduction Text = Label
Control = UserControl
Control = UserControl

View 5 Replies

VS 2008 - Reusable Control For CRUD Operations?

Jan 20, 2011

I want to build a reusable control which will enable e to perform add/edit/delete operations easily. All I want to do is give the control a datasource and it will handle the rest.

What controls should I use? I want it to be as user friendly as possible.

View 15 Replies

C# - Enforce Transactions For Write Operations In SQL Server?

Nov 16, 2010

How do I ensure and enforce that all write operations to my MS SQL Server DB are transactions-based?

The reason I want to do this is that the DB contains financial account data and operations that fail halfway through some set of changes should not be able to mess up the database by mistake or by crashing.

The application is written in ASP.NET C#.

Edit:

There is a DAL but it does not (yet) require transactions for changes.We wrote the DAL ourselves. We did not use ORM.

I know how to perform one transaction from ASP.NET.

I want to ensure that all changes are made in transaction form so that if the application throws some exception in the middle, there will be no change to the database.

View 3 Replies

Web Forms :: Should Be Database Operations Call Asynchronously

Oct 4, 2010

I want to ask that what happens when I make a database request (using Linq-To-Sql). Active thread is blocked and waits for response, or it is used to process other requests?

Do frameworks like Linq-To-Sql or Linq-To-Entities handle this?

If I use Sleep() method on thread, is that thread blocked or is it used to process other requests?

View 2 Replies

MVC :: To Perform Mathematical Operations Within A .aspx View?

Jan 14, 2011

Is it possible to perform mathematical operations within a .aspx View.? for example..lets say i have a total number of pencils of say 100. and i have 12 students on a data table with his or her name, and the number of pencils she has

Student Name: Pencil #

John 10

Sarah 12

Linus 19

But while rendering the view i want to calculate the Percentage of pencils one student possesses out of the total. (John would have 10% of the total 100 pencils)

How would i just perform this basic math operation, and encode the result into the view. I know i need to store the 100, and divide by each count of pencils for each student within the foreach loop. but i keep getting 0. This seems very elementary i know.. Help would be very appreciated. Google seems to have nothing for me.

View 3 Replies

Web Forms :: Login And Logout Operations Is Not Working

Mar 12, 2010

when i log out, i have this problemwhen i enter the authorized section, its still keep showing me the page, only when i refresh it,it brings me back to login page.for example,i logged in as manager,and then i logged out.when i enter the same authorized managment page it keeps showing me content, but when i refresh it brings me back to the default login page.

View 8 Replies

Timing Of Database Operations In Webpage Lifecycle?

Nov 9, 2010

According to the msdn documentation, as you can see on the diagram, a server control's "Data binding events" occurs after all "control changed events". So in the case of a DetailsView control, the ItemInserted event would happen before the database operation?

View 1 Replies

Web Forms :: Using Master Page For CRUD Operations?

Jan 9, 2011

I'm developing an asp.net web applcition that works with sql server. i'm using Entity model as DAL.I user repository pattern for my business layer, now, i'm going to design UI.this is my business layer code:

[Code]....

I have some questions: becase all of entites need to have CRUD operations, so i want to have a master page with Insert, Edit, Deleter Button and a place holder for entity form, so for each entity i create a form with this master and create textboxes and label in asp:content tag.for this to be done i konw master must have a Interface to do operations. so i wanted to define ISchoolSystemRepository<??> as a property in master page, but i must pass it T which will determined in runtime. so

1.how i do this?

2. is this approach right design

View 4 Replies

Move Time Consuming Operations Out Of Page Load?

Aug 31, 2010

I have a aspx page in which i create reports and charts on the fly. Creation of these charts and reports takes a lot of time because of which a blank screen is shown to the user until the creation completes.

can unlink actual report and chart creation code from page load so that i can show a processing text and then show the generated chart or report once it is ready.

EDIT :-

I would want to do something like this -

on first request trigger the report or chart creation and register a call back for completion. the client can then poll the server every 2-3 seconds to check if the report creaetion is complete.

View 2 Replies

AJAX :: Display List Of Operations Exposed From WCF Service?

May 25, 2010

Is there a way I can see the list of operations that are exposed by a WCF service same as we can with a asmx service?

View 1 Replies







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