473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Problem with IsOnline Option

JustRun
127 100+
Hi,

I have a problem with the (IsOnline) feature at my web site, Actually it works well as long as i'm doing activities even if i just navigate through the web site. The problem occure when i leave my browser open with doing nothing at the web site, just leave it open, it consider me Offline and remove the Check mark from the field "IsOnline"
I dont know how should i mentain user status or do something fix this.

I user SQLSERVER 2000, and the membership method as the following
Expand|Select|Wrap|Line Numbers
  1.     protected void Page_Load(object sender, System.EventArgs e)
  2.     {
  3.         lblStatus.Visible = false;
  4.  
  5.         if (!IsPostBack)
  6.             bind();
  7.     }
  8.  
  9.     private void bind()
  10.     {
  11.         dt = MyGetAllUsers();
  12.  
  13.         grdUsers.DataSource = dt;
  14.         grdUsers.DataBind();
  15.     }
  16.  
  17.     protected DataTable MyGetAllUsers()
  18.     {
  19.         muc = Membership.GetAllUsers();
  20.  
  21.         dt.Columns.Add("UserName", Type.GetType("System.String"));
  22.         dt.Columns.Add("Email", Type.GetType("System.String"));
  23.         dt.Columns.Add("CreationDate", Type.GetType("System.DateTime"));
  24.         dt.Columns.Add("IsOnline", Type.GetType("System.Boolean"));
  25.         dt.Columns.Add("IsLockedOut", Type.GetType("System.Boolean"));
  26.  
  27.         foreach (MembershipUser mu in muc)
  28.         {
  29.             DataRow dr;
  30.             dr = dt.NewRow();
  31.             dr["UserName"] = mu.UserName;
  32.             dr["Email"] = mu.Email;
  33.             dr["CreationDate"] = mu.CreationDate;
  34.             dr["IsOnline"] = mu.IsOnline;
  35.             dr["IsLockedOut"] = mu.IsLockedOut;
  36.  
  37.             dt.Rows.Add(dr);
  38.         }
  39.         return dt;
  40.     }
  41. }
Sep 9 '08 #1
2 1237
DrBunchman
979 Expert 512MB
Hi JustRun,

You've posted your question in the ASP Forum which is for Classic ASP only - I've moved it for you but in future please post all ASP.NET questions in the .NET Forum.

Please don't forget to wrap your code in CODE tags - it makes your posts much easier to read - and please read the Posting Guidelines if you have not done so already.

Dr B
Sep 9 '08 #2
JustRun
127 100+
Ok,

Thanks, and sorry for the inconvinience.
Sep 9 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: DB | last post by:
Hi All Having stared at this all morning and altered various things with no effect other then to exasperate the problem i'm wondering if anyone could take a look at the code below and see why on...
1
by: smsabu2002 | last post by:
Hi, I am facing the build problem while installing the DBD-MySql perl module (ver 2.9008) using both GCC and CC compilers in HP-UX machine. For the Build using GCC, the compiler error is...
2
by: Chris H | last post by:
I am having a problem with pagination, basically the problem is happening in the "PREV / NUMBERS / NEXT" links, it appears as if the reason is becasue the increment and decrement operators aren't...
1
by: Robert Dufour | last post by:
I am trying to sort the membership list of the membership provider for ASP.NET the code has retrieved the list and now we need to sort it by a parameter if it was passed. So in C# the code is....
5
by: lightgram | last post by:
Hi I have a problem, which after browsing through Google, seems to be fairly common. However having tried most suggestions I am still getting the problem. I have a menu bar across the top...
2
by: Ravi Joshi | last post by:
The menu on my site works fine in IE6 and Firefox. In IE7, there is a problem with the menu: when you mouse over the various main catagories, the sub-catagories all appear to the right as they...
2
by: dariusz.sawicki | last post by:
Witam Dopiero zaczynam z js i mam taki problem: Waliduje pole peseljs i dla maska_p wszystko jest okej natomiast dla maska_p1 jest problem i nie mgoe tego rozgryzc;/ Js:
1
by: skyson2ye | last post by:
Hi, guys: I have written a piece of code which utilizes Javascript in PHP to create a three level dynamic list box(Country, States/Province, Market). However, I have encountered a strange problem,...
2
by: swethak | last post by:
Hi, I am getting the problem the problem with google map in Internet Explorer. This map worked fine in mozilla . When i opened the same map in Internet Explorer i am getting the error...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.