User Controls :: How To Track And Save Time User Uses Application In Windows Forms
May 7, 2015I 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 RepliesI 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 RepliesI've got a dynamic page where I'd like to track the time the user spends on it.
View 5 RepliesI want to allow user to save time ..... How can I manage the time.....
I mean How I will provide interface to user to insert time ...How will I manage in database...
We have a website portal hosted in Windows 2003 server. For security reasons we are using different windows Login user say (xxxx) for signin other than Administrator. Now with this user (xxxx) name I installed .net Windows Application. It was working fine. For some reasons I renamed the original windows Login user(xxxx) to different say (yyyy). Now this .net Windows Application is not working with (yyyy) and even it is not allowing me to uninstall it.
View 3 Repliesi have created one windows user control in vb.net and i am consuming this in web application i already added windows user control dll to my web application and i used object tag for adding user control in web application. but i am not getting any output only blank image with small x on the top of the page
and the code i used in web application is
<object id="WindowsControlLibrary11" classid="http:WindowsControlLibrary11.dll#WindowsControlLibrary11.UserControl1"
height="500" width="500" >
I want to save log out time when user close the Browser without clicking log out button using asp.net with C# and SQL server 2005.
kindly let me know the way as well as code..
I have this web application where I need the currently logged in windows user Identity. I server on which I deployed this application does not support virtual directories. And I am not sure if that server is configured for "Integrated Windows Authentication."
I tried using:
System.Security.Principal.WindowsIdentity.GetCurrent().Name;
Request.ServerVariables["AUTH_USER"];
HttpContext.Current.User.Identity.Name;
All these work and retrieve the appropriate currently logged in windows username when the application isn't deployed. But when I deploy it on this particular server, these methods do not give me nothing.
i had created one user control in c# and i want to add this user control in asp.net application.
View 1 Repliesi have read your article on aspsnippets.com. Multilingual Website and i have implemented that i works good .but there is new problem arrising. suppose my default language is english set in internet option so the whenever website reloaded or redirected then all content will show in english language but
when i changed it to hindi then current webpage converted to hindi but after that if i pressed any button on current page or i redirected to any other link of particular website then again hindi is converted to english.
I have a user control (ascx file) that contains an interface for users to change the data retrieved from the db. So, I am displaying data and most of this data can be edited by the user. When the user enters text into a textbox, and clicks "Save Changes", the value they typed in is lost and not persisted to the database. I realize now this is because the SaveChanges button does a postback, and the user control gets reloaded with its original valuesbefore the code within my SaveChanges button gets executed. I'm not sure if there are properties I need to set to save the input data, or if I need to write my own code to do it. What is the generally accepted method to do this? (Also, all of the controls in the ascx file are wrapped in an Update Panel.)
View 8 RepliesI have one application form in which i want to store image of student with enrollment no and when i submit i want to store that image and take that image on another page on submit button two things should be done
1. storing the image and enrollment no
2. passing enrollment no and image to another page
i need a script on ASP.net that can build this form.
1.Users === Drop Down Menu then in the Drop down should be the names of all Taafoo staff.
I have success to store the login tim for the user but i am unable to save the logout time for logged in user
When saving logged in time, logout time is saved as null(thats ok for me)
but when user log outs it is saving the logout time on the next row instead of saving in last updated row for that user
I need to calculate the time diffrence in hours for particular date for the users
How to confirm a user to save changes whenever user do changes in one page before he/she transfer to another page?
View 1 RepliesNowadays having activity logs of the system is needed for history and if someone who is trying to mess your site, it is easily to define who is it and when it happen. And even Facebook have it.
View 1 RepliesI have profile variable called IP Address ,
i need this Profile to add Unique IP address that has been used by the UserName ,,,
meaning :
If i logged in for the first time , it will save my IP address , next time if my IP has changed and i logged in , i need to keep the old IP address and add to it with comma seperated the new IP ..
I have a checkbox on a templatefieled named chkbxlate. I want to write code to check a checkbox or all the checkboxes on that column if the system time is greater than 9:30am during roll call but I don't know how to go about it.
View 1 RepliesI have written a SP which maintains users log in and log out history,it works fine when any user logs in or clicks on log out, problem is that as per need its not to allowed to keep the screen idle for 1 minute or more then in the log out column Null value is passed.
SP
Create proc usp_trackuserlogindetails
@username varchar(50) = null,
@command int = 0
as
BEGIN
if(@command = 0)
begin
insert into userlog (USERNAME,LOGIN,LOGOUT) values (@username,Getdate(),Null)
[Code] ....
Here when user manually clicks the log out button then 1(table above) is the output.
When user leaves the screen idle then after 1 minute the page goes to the Login.aspx page if the user tries to do something on the current page,here 2(table above) is the output can i store some hard core value instead of Null like Session expire or the exact session expires time.
we are migrating existing windows form application to asp.net(3.5) intranet portal, there is a requirement whereby database connection should be made by the logged in windows user. Is it possible to achieve this functionality?
View 1 RepliesHow get current date and time
example: TimeZone(UTC +10)
<html>
<head>
<script type="text/javascript">
function ClientTime() {
var dt = new Date();
var ss = dt.getSeconds();
var mm = dt.getMinutes();
var hh = dt.getHours();
[code]...
I have a windows user control in windows control library...I add these user control in web application using below steps.
1.copy the windows control library project's dll file into web application project.
2.In aspx page I have the below code
<object
id="myName"
classid="http:QueryBuilderControlLibrary.dll#QueryBuilderControlLibrary.UserControl1"
VIEWASTEXT/>
I can get the proper output..but the styles not same as user control...styles not displayed properly..I need the same design of the user control in web application
In my ASP.NET application, I need to be able to authenticate/authorise against local Windows users/groups (ie. not Active Directory) on a different machine, as well as be able to change the passwords of said remote local Windows accounts.
Yes, I know Active Directory is built for this sort of thing, but unfortunately the higher ups have decreed it needs to be done this way (so authentication against users in a database is out as well).
I've tried using DirectoryEntry and WinNT like so:
DirectoryEntry user = new DirectoryEntry(String.Format("WinNT://{0}/{1},User",
serverName, username), username, password, AuthenticationTypes.Secure)
but this results in an exception when you try to log in more than one user:
Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.
I've tried making sure my DirectoryEntries are used inside a using block, so they're disposed properly, but this doesn't seem to fix the issue. Plus, even if that did work it is possible that two users could hit that line of code concurrently and therefore try to create multiple connections, so it would be fragile anyway.
Is there a better way to authenticate against local Windows accounts on a remote machine, authorise against their groups, and change their passwords?
i am making use of two listboxes. the data from one listbox is transfered to other listbox on button click, bt teh the data which is selected must be added to the table in the sql server. but it is not storing values it is throwing execption...
private void InsertRecords(StringCollection sc)
{
SqlConnection conn = new SqlConnection("Data Source=ABCD;Integrated Security=True");
StringBuilder sb = new StringBuilder(string.Empty);
[Code].....
if user login first time in application in how i promot for change password in Asp.Net C#.
View 1 RepliesMy intention is to give the user a flexible user control on a master page that does the following:
When navigating, a child page will pass the URL (with querystring) and PageTitle to the user control. The user control will take those two parameters and insert them as a "breadcrumb" object at first index of a List<breadcrumb> collection
This part works fine through the use of a Repeater with a LinkButton contained in an ItemTemplate. The user sees each of the pages he has been visiting in descending order, the provided benefit is a quick way to re-open records they have recently modified or created.
The part I'm having trouble handling is what happens when the user clicks the LinkButton, which is that the child page adds a new reference to the URL at the beginning of the List<> collection and I cannot seem to control the behavior of removing the LinkButton before it gets re-created. What I've tried doing is:
List<>.RemoveAt(RepeaterCommandEventArgs.Item.ItemIndex);
Repeater1.Controls.Clear();
Repeater1.DataSource = List<>;
Repeater1.DataBind();
While that should work, my CreateBreadCrumb(string url, string title) function gets called by the child page before the UserControl detects the Repeater1_ItemCommand event, so in effect it appears that the wrong ItemIndex is being used for removal.