c# tutorials and examples code for web developers

How to get number of users online in

Get number of users online in
<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<script runat="server">
    protected void Page_Load(object sender, System.EventArgs e) {
        Label1.Text = "Now OnLine users: " +

<html xmlns="">
<head runat="server">
    <title>Membership class example: how to get number of users online in</title>
    <form id="form1" runat="server">
        <h2>GetNumberOfUsersOnline method example</h2>
        <asp:LoginStatus ID="LoginStatus1" runat="server" />
        <br />
        <asp:Label ID="Label1" runat="server" Font-Size="Large" ForeColor="DarkGoldenrod"></asp:Label>
        <br /><br />
        <asp:LoginName ID="LoginName1" runat="server" FormatString="Hi {0}!" Font-Size="Large" ForeColor="Red" />


Related example