Help me! =) [modified]
-
I agree: it's probably one of the normal trolls playing with a new name. And they wonder why people can't be bothered with them.
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
-
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
I don't know much about ASP.NET, but I think you should make your program a desktop application. That would == better performance, and funner. You can make it do all kinds of neat things when your not trapped in a web browser. Since you are learning how to program, desktop applications are the way to go. If it was a desktop app, I could have that thing working and optimized pretty quickly, but unfortunately I don't know ASP.NET or networking.
-
I don't know much about ASP.NET, but I think you should make your program a desktop application. That would == better performance, and funner. You can make it do all kinds of neat things when your not trapped in a web browser. Since you are learning how to program, desktop applications are the way to go. If it was a desktop app, I could have that thing working and optimized pretty quickly, but unfortunately I don't know ASP.NET or networking.
-
Don't come back to CP for help until you learn how to program. Whoever is paying you to program this is getting ripped off. I better not find anything like that running on my computer.
-
I know but even with that sample I can tell your code is terribly sloppy and inefficient. Stop thinking in strings and start thinking in 1s and 0s.
-
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
-
You can start to be better by NOT POSTING PROGRAMMING QUESTIONS IN THIS FORUM.
Shhhhh..... http://craptasticnation.blogspot.com/[^]
-
Hes a troll Leckey. Look at some of his posts, his English isnt as bad as he professes. Probably Kyle. He often did this in the lounge in the guise of an Indian.
Morality is indistinguishable from social proscription
-
I think its Joshua. He seems to be flooding Soapbox with his aliases. Having a long involved conversation with himself is what he'd think was hysterically funny.
Jon Smith & Wesson: The original point and click interface
Its a little too clever for Henize, the profile even has a link to a swedish website thats under construction. I am not suggetsing this site was created by Kyle, but that he fond it, and constructed the fake persona around it.
Morality is indistinguishable from social proscription
-
Its a little too clever for Henize, the profile even has a link to a swedish website thats under construction. I am not suggetsing this site was created by Kyle, but that he fond it, and constructed the fake persona around it.
Morality is indistinguishable from social proscription
-
I think its Joshua. He seems to be flooding Soapbox with his aliases. Having a long involved conversation with himself is what he'd think was hysterically funny.
Jon Smith & Wesson: The original point and click interface
-
pimpdog wrote:
Stop thinking in strings and start thinking in 1s and 0s.
Did you make that up all by yourself? :laugh: :laugh: :laugh:
Jon Smith & Wesson: The original point and click interface