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 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
              • L Lost User

                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 Offline
                O Offline
                Oakman
                wrote on last edited by
                #21

                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

                L P 2 Replies Last reply
                0
                • O Oakman

                  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

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

                  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

                  O 1 Reply Last reply
                  0
                  • L Lost User

                    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

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

                    You may be right. Disappointing, though. Kyle has been behaving himself recently.

                    Jon Smith & Wesson: The original point and click interface

                    1 Reply Last reply
                    0
                    • O Oakman

                      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

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

                      No its not me. This isn't my style of trolling. I like to offend and shock people.

                      T 1 Reply Last reply
                      0
                      • P pimpdog 0

                        No its not me. This isn't my style of trolling. I like to offend and shock people.

                        T Offline
                        T Offline
                        Tim Craig
                        wrote on last edited by
                        #25

                        pimpdog wrote:

                        I like to offend and shock people.

                        You're simply offensive and pathetic.

                        Helium Rhenium Titanium Carbon

                        1 Reply Last reply
                        0
                        • O Oakman

                          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 Offline
                          Z Offline
                          Zhat
                          wrote on last edited by
                          #26

                          OMGZ! You said that to the $7 an hour ex-Circuit City help desk/sales now Waffle House cook computer expert???? Now we're all going to die. :laugh: :laugh:

                          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