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
  1. Home
  2. Other Discussions
  3. The Back Room
  4. Help me! =) [modified]

Help me! =) [modified]

Scheduled Pinned Locked Moved The Back Room
designhelplounge
26 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bobbz
    wrote on last edited by
    #1

    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:

    S P R 3 Replies Last reply
    0
    • 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:

      S Offline
      S Offline
      soap brain
      wrote on last edited by
      #2

      Bobbziz wrote:

      if (online.IndexOf(User.Identity.Name) <= 0) { if (String.IsNullOrEmpty(online)) { online = User.Identity.Name;

      That's what's wrong. Now go and fix it.

      B 1 Reply Last reply
      0
      • 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:

        P Offline
        P Offline
        pimpdog 0
        wrote on last edited by
        #3

        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.

        B O 2 Replies Last reply
        0
        • 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:

          R Offline
          R Offline
          R Giskard Reventlov
          wrote on last edited by
          #4

          Nobody is going to help you whilst you continue to post in this forum. Figure out the right place to ask the question using proper English (sorry if this is not your native language but this is an English language website). Otherwise you'll get your arse chewed for being a brainless dick and nobody will EVER respond to your whiny pleas for help. Got it?

          me, me, me

          P B 2 Replies Last reply
          0
          • P pimpdog 0

            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.

            B Offline
            B Offline
            Bobbz
            wrote on last edited by
            #5

            [Message Deleted]

            P 1 Reply Last reply
            0
            • S soap brain

              Bobbziz wrote:

              if (online.IndexOf(User.Identity.Name) <= 0) { if (String.IsNullOrEmpty(online)) { online = User.Identity.Name;

              That's what's wrong. Now go and fix it.

              B Offline
              B Offline
              Bobbz
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • B Bobbz

                [Message Deleted]

                P Offline
                P Offline
                pimpdog 0
                wrote on last edited by
                #7

                It appears you have a long way to go until you learn what programming is really about. I think you should start with C and DOS to really understand computing.

                1 Reply Last reply
                0
                • R R Giskard Reventlov

                  Nobody is going to help you whilst you continue to post in this forum. Figure out the right place to ask the question using proper English (sorry if this is not your native language but this is an English language website). Otherwise you'll get your arse chewed for being a brainless dick and nobody will EVER respond to your whiny pleas for help. Got it?

                  me, me, me

                  P Offline
                  P Offline
                  pimpdog 0
                  wrote on last edited by
                  #8

                  Look at his code. Its hard to tell if he is a troll or for real. Who would write code like that?

                  R B 3 Replies Last reply
                  0
                  • R R Giskard Reventlov

                    Nobody is going to help you whilst you continue to post in this forum. Figure out the right place to ask the question using proper English (sorry if this is not your native language but this is an English language website). Otherwise you'll get your arse chewed for being a brainless dick and nobody will EVER respond to your whiny pleas for help. Got it?

                    me, me, me

                    B Offline
                    B Offline
                    Bobbz
                    wrote on last edited by
                    #9

                    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

                    L 1 Reply Last reply
                    0
                    • P pimpdog 0

                      Look at his code. Its hard to tell if he is a troll or for real. Who would write code like that?

                      R Offline
                      R Offline
                      R Giskard Reventlov
                      wrote on last edited by
                      #10

                      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.

                      me, me, me

                      B 1 Reply Last reply
                      0
                      • P pimpdog 0

                        Look at his code. Its hard to tell if he is a troll or for real. Who would write code like that?

                        B Offline
                        B Offline
                        Bobbz
                        wrote on last edited by
                        #11

                        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

                        P 1 Reply Last reply
                        0
                        • 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

                          P Offline
                          P Offline
                          pimpdog 0
                          wrote on last edited by
                          #12

                          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.

                          O 1 Reply Last reply
                          0
                          • P pimpdog 0

                            Look at his code. Its hard to tell if he is a troll or for real. Who would write code like that?

                            B Offline
                            B Offline
                            Bobbz
                            wrote on last edited by
                            #13

                            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

                            P 1 Reply Last reply
                            0
                            • R R Giskard Reventlov

                              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.

                              me, me, me

                              B Offline
                              B Offline
                              Bobbz
                              wrote on last edited by
                              #14

                              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

                              1 Reply Last reply
                              0
                              • 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

                                P Offline
                                P Offline
                                pimpdog 0
                                wrote on last edited by
                                #15

                                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.

                                B 1 Reply Last reply
                                0
                                • P pimpdog 0

                                  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.

                                  B Offline
                                  B Offline
                                  Bobbz
                                  wrote on last edited by
                                  #16

                                  Thank you for the tip ;)

                                  Waddatah

                                  1 Reply Last reply
                                  0
                                  • P pimpdog 0

                                    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.

                                    O Offline
                                    O Offline
                                    Oakman
                                    wrote on last edited by
                                    #17

                                    I doubt you find any source code running on your computer.

                                    Jon Smith & Wesson: The original point and click interface

                                    1 Reply Last reply
                                    0
                                    • P pimpdog 0

                                      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.

                                      O Offline
                                      O Offline
                                      Oakman
                                      wrote on last edited by
                                      #18

                                      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

                                      Z 1 Reply Last reply
                                      0
                                      • 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

                                        L Offline
                                        L Offline
                                        leckey 0
                                        wrote on last edited by
                                        #19

                                        You can start to be better by NOT POSTING PROGRAMMING QUESTIONS IN THIS FORUM.

                                        Shhhhh..... http://craptasticnation.blogspot.com/[^]

                                        L 1 Reply Last reply
                                        0
                                        • L leckey 0

                                          You can start to be better by NOT POSTING PROGRAMMING QUESTIONS IN THIS FORUM.

                                          Shhhhh..... http://craptasticnation.blogspot.com/[^]

                                          L Offline
                                          L Offline
                                          Lost User
                                          wrote on last edited by
                                          #20

                                          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

                                          O 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

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