Web Forms :: How To Detect Whether User Is Online Or Offline
Nov 25, 2013I am working on a web project, and here i want to display a label which will display how many user is online and open this site. What can i do
View 1 RepliesI am working on a web project, and here i want to display a label which will display how many user is online and open this site. What can i do
View 1 RepliesI'm making a forum.
I need to show if a user is Offline or Online.
Like this:
Where is says Online i need it to say Offline when the user if offline.
Okay, now i think i got explained what i would like to do.
How i would like this to work:
When a user logs in i want his status to change to Online.When the user press Log Out i want the status to go Offline.
When the user haven't been active for 10 minutes i want the status to change to Offline, but he is still logged in.If he clicks on something he's active again, so i want the status to go to Online again.If the user browse away from the site or close the browser/site i want it to go to Offline status again.
me how create offline and on line application.like..
I need create an app.net application.This should works with or with out internet.
Here main requirement is some user will connects to internet and get data to local system.then whey will work on offline.Finally need update server all users updates to server.
so here..
1. user will connect to internet every morning at that time we need to synchorize local database from server database.
2.next user will do some operataions like adding some records or updating some records from his local database using application.
3.Finally end of the day we need to synchronize his local database with server.
i want to display the message for my website if its under maintenance or temp. closed for any updates
[IMG]http://i49.tinypic.com/a4omkg.jpg[/IMG]
how i can do that so that all user's can see that messages and all the link's should not work for that time interval
but the Maintenance staff and their id should be able to make changes and see
if anyone has any idea about this one please tell me how to do this in asp.net because this same thing can be done in any cms s/w
Language-ASP.NET C#
I want to develop a utility where user will insert new Records and also the same application should work if user is not connected with internet.When user wants to submit records only that time he required to connect internet.
We have created one sample application using excel where we use Dropdown, Textbox, Label.User will download excel file from website and filled up details. When user wants to submit all details only that time internet is required. Application will insert value from excel file to server using WebServices when user click on submit button.
Above is working file but it's increasing our work because we are creating website and also Excel project (Almost double work). I want something where we can utilize the code for online and offline application.
How to add image with all the ListBox items.Ex: I want to add a "green" circle icon image in front of all the items of ListBox.to to show the status of items in listbox.How to achieve it
View 1 RepliesHow to Display online users as green and offline as grey using real time updates..
View 1 RepliesI want to merge a software with a website.I have no source code of software, but i want to the database of online data and offline data will automatically synchronize. I have only control over website, online database and offline database.. Is it possible, if yes how?
[code]....
but when i feed data in offline database, online database automatically updated.
i have problem in connection strin i host my site and database is in DATA DIRECTORY my site run successfully in offline but an error of connection string in online pls give me an example of string for online i use asp.net, C# and sqlserver 2005
View 8 RepliesI am looking for a way to distroy the ASP.net membership session for a specific user. The reason I am doing this is as an admin I want to delete a user. This works fine, but if the user already has an active session, he is still marked as "online" until this session dies (I verify each time by using Current.User.Identity.IsAuthenticated). How do I go about killing a session based on the user it's authorized as. This way when I do Memberships.DeleteUser(username) I can also do Sessions.KillByUser(username)[URL]
View 2 Replieshow to detect the IP position of my website user ?
View 12 RepliesI have a page that uses a user control, I have to detect the pages !IsPostBack in the User Control and do some operation
In the User controls page Load method I tried using the following variations to detect the first load
!Page.IsPostBack
!Page.IsCallback
!this.IsPostBack
!this.IsCallback
!this.Parent.Page.IsPostBack
!this.Parent.Page.IsCallback
None of these worked, they all fail to detect the parent pages 1st load in the usercontrols page load method
I also tried using
if (Request.UrlReferrer.AbsolutePath.ToString() != "/PreviosPage.aspx")
This worked for Fire Fox and Chrome but not IE (IE has issues with Request.UrlReferrer, it throws a null exception)
So I cant use this approach as well.
how to display that the user is online(Maybe By A Green Light Image) without using Asp.Net Membership,
View 1 RepliesIn my web application.... I want chat with all the user are online. How to get the user and how to chat with each other .... I want to integrate chatting option in my website.
View 1 RepliesI have below code to display "list of all the online users" inside listBox using Membership function.
Code:
protected void Page_Load(object sender, EventArgs e) {
if (!IsPostBack) {
MembershipUserCollection allUser = Membership.GetAllUsers(); // to get all the users
List<MembershipUser> onlineUsers = new List<MembershipUser>(); //creating list of online users
foreach (MembershipUser user in allUser)
[Code] ....
I want to remove that user from the list of online users, who himself has logged in. Example: if I had logged-in with UserName: Admin, then this Admin should not show to me in the list of "online users"
Tried below Code but not working:
protected void Page_Load(object sender, EventArgs e) {
if (!IsPostBack) {
MembershipUserCollection allUser = Membership.GetAllUsers(); // to get all the users
List<MembershipUser> onlineUsers = new List<MembershipUser>(); //creating list of online users
MembershipUser m_user = Membership.GetUser(); //to get self logged-in user
[Code] ....
We have a SSO solution with ADFS for logging into our web app, we also have standard setup that uses authentication with our database. I want to setup a solution that allows for both. So now I am trying to figure out, is there any way for ASP.NET to detect if a user is authenticated with Active Directory so I could do this on the fly? If user is logged in through AD, send through ADFS, else, show login screen. I also realize that this may not work if they are setup to use forms based authentication only after the ADFS process is started.
View 1 RepliesThis is my approach : I reserve last time that a user post a postback to server in a session and in every postback subtract this value from current value. Is there a better way for this?
View 1 RepliesI reffer users from my website to another website (not my own website, I dont have any access to code).How can I detect a user registered in this website I have reffered to....
View 2 Replieswhat is the logic behind this on this website "last activity: 1 min ago from this ip address " If you are obtaining the user's IP address in a hidden field , how can I do this in vb.net ?
And how can I check how many users are online using the application ?
In my project i have to implement an interface which shows whether a particular user is online or not as in social networking site(like orkut and facebook)
View 3 RepliesI am developing an ASP.NET web application that incorporates google maps. I have an ASP.NET listbox on my page which contains a list of items. When the user selects one of the items, I'd like to show this item on the map. The main complication lies in the fact that google maps uses javascript to control it and the listbox is a server control.
I can think of two ways to do this. The first would involve the listbox calling a javascript function when the user selects a new item. I can then write this function to perform the necessary map operations. Unfortunately, the OnSelectedIndexChanged property of the listbox doesn't seem to support javascript functions.
The second involves wrapping an UpdatePanel around the listbox and getting the listbox to perform a postback. In the SelectedIndexChanged event in VB/C#, I would the need to somehow make a call to a javascript function which would then update the map.
How to measure the max available online user amount per second for a web app using asp.net?
Is there any tool to measure that?
I am looking for load testing, to find out how many users my app can handle.
Is there any recommended load testing tool?
Two users using the same machine, same browser.
User 1 logs in the domain.
User 1 changes some data without saving it.
User 2 logs in the domain in a separate tab.
User 1 switches back to his tab and saves the data.
User 1 actually saved the data into User 2!!
This is caused by the following mechanism:
Different tabs in the same browser seems to share the same session id. We are storing user auth in cookie and the cookie is shared between tabs (same domain)
Therefore, when User 1 request to save, it is recognized as User 2 since the cookie has been updated to User 2.
So I'm wondering if there's any other methods to prevent this from happening, other than:
1. Use cookieless session so the session is embedded in uri.
2. Always include a hidden field in page to indicate which user owns the page.
I am using SQL membership authentication and SQL Database for my ASP.NET Website and its using for my Organization (has multiple Branches in different cities).How I can get all user list which are recently online/Login in my system (WebSite) in my Admin Panel?
View 4 Repliesi have using aspnet DataBase, and i know that i can Check if the User is OnLine or not By Using
Membership.GetUser.isOnLine; this is when invoke method in asp.net Page , But i want to Know if there is another way to Check If the User OnLine or Notfrom aspnet dataBase