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. Web Development
  3. ASP.NET
  4. a problem with Threading in ASP.NET

a problem with Threading in ASP.NET

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netquestion
5 Posts 2 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.
  • K Offline
    K Offline
    Kariem Soudy
    wrote on last edited by
    #1

    i have a webform, with a button and a listbox, when i click on the button it should run many threads, and when each one finishes its work it should add an item in that listbox indicating that it's finished, so the problem is that i need to make a thread to add an item in a listbox when it's finished working, sould i need to refresh the page, or what...??? plz help me:((

    M 1 Reply Last reply
    0
    • K Kariem Soudy

      i have a webform, with a button and a listbox, when i click on the button it should run many threads, and when each one finishes its work it should add an item in that listbox indicating that it's finished, so the problem is that i need to make a thread to add an item in a listbox when it's finished working, sould i need to refresh the page, or what...??? plz help me:((

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      Well, it depend on how you add.. if you are adding the listitem from Javascript, you wont' need to refresh thage page.. otherwise, you will need....

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      K 1 Reply Last reply
      0
      • M Michael Sync

        Well, it depend on how you add.. if you are adding the listitem from Javascript, you wont' need to refresh thage page.. otherwise, you will need....

        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

        K Offline
        K Offline
        Kariem Soudy
        wrote on last edited by
        #3

        it's a server-side control, i wanna make it just like AJAX scenario, plz help the problem is i can't refresh the page from other class defined in the page class, i pass the httpcontext to that class, and i have an error message tells me : cannot redirect the page after the http header has been written, how can i resolve this error help meeeeeeeeeee

        M 1 Reply Last reply
        0
        • K Kariem Soudy

          it's a server-side control, i wanna make it just like AJAX scenario, plz help the problem is i can't refresh the page from other class defined in the page class, i pass the httpcontext to that class, and i have an error message tells me : cannot redirect the page after the http header has been written, how can i resolve this error help meeeeeeeeeee

          M Offline
          M Offline
          Michael Sync
          wrote on last edited by
          #4

          You wanna add new listitem to dropdown server control without refreshing the page??? then, just write the code for adding new listitem in normal way.. place the dropdown and button within UpdatePanel...

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

          K 1 Reply Last reply
          0
          • M Michael Sync

            You wanna add new listitem to dropdown server control without refreshing the page??? then, just write the code for adding new listitem in normal way.. place the dropdown and button within UpdatePanel...

            Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

            K Offline
            K Offline
            Kariem Soudy
            wrote on last edited by
            #5

            the page has been posted back and redrawn to the client, now the page is still, and there're some threads that run behind that page, every one has to put a list item in that listbox after it finishes its work, can i do that without refresh the page, or are there any other alternatives that i can solve this problem.....

            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