Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

Bobbz

@Bobbz
About
Posts
16
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help me! =) [modified]
    B Bobbz

    Thank you for the tip ;)

    Waddatah

    The Back Room design help lounge

  • Help me! =) [modified]
    B Bobbz

    That code is working really fine --------------------------------------------------------------------- { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (User.Identity.Name == null) { Response.Redirect("login.aspx"); } String online; if (Application["online"] != null) { online = Application["online"].ToString(); } else { online = ""; } if (online.IndexOf(User.Identity.Name) == -1) { if (String.IsNullOrEmpty(online)) { online = User.Identity.Name; } else { online = online + "," + User.Identity.Name; } Application.Remove("online"); Application.Add("online", online); } ListBox1.Items.Clear(); char[] splitter = { ',' }; foreach (String onlineuser in online.Split(splitter)) { ListBox1.Items.Add(onlineuser); } } protected void Button2_Click(object sender, EventArgs e) { String chat; String oldChat; if (Application["chat"] != null) { oldChat = Application["chat"].ToString(); } else { oldChat = ""; } chat = oldChat + "<br>" + User.Identity.Name + ":" + txtSkriv.Text; Application.Remove("chat"); Application.Add("chat", chat); } protected void Button3_Click(object sender, EventArgs e) { Session.Clear(); Response.Redirect("login.aspx"); } protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e) { } } }

    Waddatah

    The Back Room design help lounge

  • Help me! =) [modified]
    B Bobbz

    this code is working really good { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (User.Identity.Name == null) { Response.Redirect("login.aspx"); } String online; if (Application["online"] != null) { online = Application["online"].ToString(); } else { online = ""; } if (online.IndexOf(User.Identity.Name) == -1) { if (String.IsNullOrEmpty(online)) { online = User.Identity.Name; } else { online = online + "," + User.Identity.Name; } Application.Remove("online"); Application.Add("online", online); } ListBox1.Items.Clear(); char[] splitter = { ',' }; foreach (String onlineuser in online.Split(splitter)) { ListBox1.Items.Add(onlineuser); } } protected void Button2_Click(object sender, EventArgs e) { String chat; String oldChat; if (Application["chat"] != null) { oldChat = Application["chat"].ToString(); } else { oldChat = ""; } chat = oldChat + "<br>" + User.Identity.Name + ":" + txtSkriv.Text; Application.Remove("chat"); Application.Add("chat", chat); } protected void Button3_Click(object sender, EventArgs e) { Session.Clear(); Response.Redirect("login.aspx"); } protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e) { } } }

    Waddatah

    The Back Room design help lounge

  • Help me! =) [modified]
    B Bobbz

    thanks for the comment it is working now i saw i made a little mistake but the code i sent wasn´t the full code

    Waddatah

    The Back Room design help lounge

  • Help me! =) [modified]
    B Bobbz

    i am sorry :( but i am new at this.. hehe thank you now i know.. no iam from sweden so english is not my native language so sorry :/ but i promise to be better on english

    Waddatah

    The Back Room design help lounge

  • Help me! =) [modified]
    B Bobbz

    Thank you :D it is working really fine now here is the new code thank you is workin really fine now... here is the new code ----------------- if (online.IndexOf(User.Identity.Name) == -1) { if (String.IsNullOrEmpty(online)) { online = User.Identity.Name; } else { online = online + "," + User.Identity.Name; } Application.Remove( "online"); Application.Add( "online", online); } ListBox1.Items.Clear(); char[] splitter = { ',' };

    Waddatah

    The Back Room design help lounge

  • Help me! =) [modified]
    B Bobbz

    [Message Deleted]

    The Back Room design help lounge

  • Help me! =) [modified]
    B Bobbz

    you guys who complains here comes the full code and it´s working really good no problems at all(this is the dafault page) -------------------------------------------------------------------------- { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (User.Identity.Name == null) { Response.Redirect("login.aspx"); } String online; if (Application["online"] != null) { online = Application["online"].ToString(); } else { online = ""; } if (online.IndexOf(User.Identity.Name) == -1) { if (String.IsNullOrEmpty(online)) { online = User.Identity.Name; } else { online = online + "," + User.Identity.Name; } Application.Remove("online"); Application.Add("online", online); } ListBox1.Items.Clear(); char[] splitter = { ',' }; foreach (String onlineuser in online.Split(splitter)) { ListBox1.Items.Add(onlineuser); } } protected void Button2_Click(object sender, EventArgs e) { String chat; String oldChat; if (Application["chat"] != null) { oldChat = Application["chat"].ToString(); } else { oldChat = ""; } chat = oldChat + "<br>" + User.Identity.Name + ":" + txtSkriv.Text; Application.Remove("chat"); Application.Add("chat", chat); } protected void Button3_Click(object sender, EventArgs e) { Session.Clear(); Response.Redirect("login.aspx"); } protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e) { } } } -------------------------------------------------------------------------- //BoBzIz:wtf:

    The Back Room design help lounge

  • [Message Deleted]
    B Bobbz

    [Message Deleted]

    C#

  • Need help to do a "members online" list on my chat
    B Bobbz

    Thx :D i found much about chat but i didnt found anything about a who´s online box :/ but it was a good site thank you ;) i can use that site in the future

    Waddatah

    IT & Infrastructure csharp help lounge

  • [Message Deleted]
    B Bobbz

    Thanks for the tip ;)

    Waddatah

    C#

  • Need help to do a "online members" list on my chat
    B Bobbz

    hehe:cool:

    Waddatah

    The Back Room csharp help lounge

  • [Message Deleted]
    B Bobbz

    [Message Deleted]

    C#

  • Need help to do a "online members" list to my chat
    B Bobbz

    Hello i am working with a chat in c# and there´s one thing left to do, a list of members who are in the chat, in a listbox. tried for hours but i am not comming anywhere so now i am asking for help.. so please can some one help me :) //Bobbziz

    Waddatah

    C# csharp help lounge

  • Need help to do a "online members" list on my chat
    B Bobbz

    Hello i am working with a chat in c# and there´s one thing left to do a list of members who are in the that in a listbox. tried for hours but i am not cooming anywhere so now i am asking for help.. so please can some one help me :) //Bobbziz

    Waddatah

    The Back Room csharp help lounge

  • Need help to do a "members online" list on my chat
    B Bobbz

    Hello i am working with a chat in c# and there´s one thing left to do a list of members who are in the that in a listbox. tried for hours but i am not cooming anywhere so now i am asking for help.. so please can some one help me :) //Bobbziz

    Waddatah

    IT & Infrastructure csharp help lounge
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups