Beispiel #1
0
    protected void btnenterchat_Click(object sender, EventArgs e)
    {
        odt = oadapter.selectonlineentry(Session["name"].ToString());

        if (odt.Rows.Count == 0)
        {
            int inst = oadapter.Insert(Session["name"].ToString());
        }
        Response.Redirect("Onlinechat.aspx");
    }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Page.IsPostBack == false)
     {
         lblname.Text            = Session["name"].ToString();
         odt                     = oadapter.selectonlineuser(Session["name"].ToString());
         ListBox1.DataSource     = odt;
         ListBox1.DataTextField  = "Name";
         ListBox1.DataValueField = "O_ID";
         ListBox1.DataBind();
     }
 }