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. General Programming
  3. Visual Basic
  4. Is it possible to launch sub without autopostback in DDL?

Is it possible to launch sub without autopostback in DDL?

Scheduled Pinned Locked Moved Visual Basic
databasetutorialquestion
8 Posts 3 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.
  • I Offline
    I Offline
    ii_noname_ii
    wrote on last edited by
    #1

    Hi, I am wondering if I can have a drop down list launching a sub without autopostback on? I need it to populate another DDL when an item is selected... The reason I want it to happen without autopostback on, is, I have so many many active items on page it takes forever to populate the second drop down list, and redisplay a datagrid... Unacceptable, takes way too long... So, in short: how to launch a sub from the DDL when selected index changed, without autopostback on (or if you have another suggestion on how to prevent whole page to reload) NNM

    P I 2 Replies Last reply
    0
    • I ii_noname_ii

      Hi, I am wondering if I can have a drop down list launching a sub without autopostback on? I need it to populate another DDL when an item is selected... The reason I want it to happen without autopostback on, is, I have so many many active items on page it takes forever to populate the second drop down list, and redisplay a datagrid... Unacceptable, takes way too long... So, in short: how to launch a sub from the DDL when selected index changed, without autopostback on (or if you have another suggestion on how to prevent whole page to reload) NNM

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      use AJAX methos.

      Softy Boy

      1 Reply Last reply
      0
      • I ii_noname_ii

        Hi, I am wondering if I can have a drop down list launching a sub without autopostback on? I need it to populate another DDL when an item is selected... The reason I want it to happen without autopostback on, is, I have so many many active items on page it takes forever to populate the second drop down list, and redisplay a datagrid... Unacceptable, takes way too long... So, in short: how to launch a sub from the DDL when selected index changed, without autopostback on (or if you have another suggestion on how to prevent whole page to reload) NNM

        I Offline
        I Offline
        ii_noname_ii
        wrote on last edited by
        #3

        thx for reply, I'll have to look more at that ajax thing.. But for now, is there no asp element i can put the grid (and other panels/controls) in to prevent it from "blinking" every time a value in my drop down lists changes? Or no vb.net solution to preventing this, and really have control over what happens on a selectedindexchanged..?

        D 1 Reply Last reply
        0
        • I ii_noname_ii

          thx for reply, I'll have to look more at that ajax thing.. But for now, is there no asp element i can put the grid (and other panels/controls) in to prevent it from "blinking" every time a value in my drop down lists changes? Or no vb.net solution to preventing this, and really have control over what happens on a selectedindexchanged..?

          D Offline
          D Offline
          Dave Sexton
          wrote on last edited by
          #4

          ii_noname_ii wrote:

          is there no asp element i can put the grid (and other panels/controls) in to prevent it from "blinking" every time a value in my drop down lists changes?

          Not an official release version but you could try using the UpdatePanel component in the latest Atlas[^] CTP (which would be implementing Alax style controls). Bear in mind that because the Atlas stuff is still pre-release it may be buggy & you shouldn't use it for any mission critical solutions. Apart from that i think the license agreement only runs till September 2007 (i'm open to correction there). You could try doing it via client side scripts but that would probably be ridiculous.

          I 1 Reply Last reply
          0
          • D Dave Sexton

            ii_noname_ii wrote:

            is there no asp element i can put the grid (and other panels/controls) in to prevent it from "blinking" every time a value in my drop down lists changes?

            Not an official release version but you could try using the UpdatePanel component in the latest Atlas[^] CTP (which would be implementing Alax style controls). Bear in mind that because the Atlas stuff is still pre-release it may be buggy & you shouldn't use it for any mission critical solutions. Apart from that i think the license agreement only runs till September 2007 (i'm open to correction there). You could try doing it via client side scripts but that would probably be ridiculous.

            I Offline
            I Offline
            ii_noname_ii
            wrote on last edited by
            #5

            A client side script launching a server side vb sub (which would then populate the next DDL)? that possible? (don't think so, but it would be nice...) I guess I'm gonna look at that atlas thing, I failed to install/get it to work on my porject last time I tried it... Still waiting if someone has a miracle solution like "just put your datagrid in !" :^)

            D 1 Reply Last reply
            0
            • I ii_noname_ii

              A client side script launching a server side vb sub (which would then populate the next DDL)? that possible? (don't think so, but it would be nice...) I guess I'm gonna look at that atlas thing, I failed to install/get it to work on my porject last time I tried it... Still waiting if someone has a miracle solution like "just put your datagrid in !" :^)

              D Offline
              D Offline
              Dave Sexton
              wrote on last edited by
              #6

              ii_noname_ii wrote:

              A client side script launching a server side vb sub (which would then populate the next DDL)? that possible?

              Yep, it is possible, but you'll still postback. The upside of ajax is that you're not posting the entire page back, just the bit that you need.

              ii_noname_ii wrote:

              I failed to install/get it to work

              I had a problem installing it on my machine at home as well but you can still make use of the tools when you reference the Microsoft.Web.Atlas.dll file. Remember to add the atlas tools to your toolbox as well - they're not automatically added when you reference the dll. I've used the UpdatePanel from the atlas library more than anything else. It'll also be useful for you to download & watch the ToDo list sample application video[^] by Scott Gu.

              I 1 Reply Last reply
              0
              • D Dave Sexton

                ii_noname_ii wrote:

                A client side script launching a server side vb sub (which would then populate the next DDL)? that possible?

                Yep, it is possible, but you'll still postback. The upside of ajax is that you're not posting the entire page back, just the bit that you need.

                ii_noname_ii wrote:

                I failed to install/get it to work

                I had a problem installing it on my machine at home as well but you can still make use of the tools when you reference the Microsoft.Web.Atlas.dll file. Remember to add the atlas tools to your toolbox as well - they're not automatically added when you reference the dll. I've used the UpdatePanel from the atlas library more than anything else. It'll also be useful for you to download & watch the ToDo list sample application video[^] by Scott Gu.

                I Offline
                I Offline
                ii_noname_ii
                wrote on last edited by
                #7

                It works!!!!:laugh::-D *champagne for everyone* http://www.kynou.com/KYNOUControls.htm[^] A very good tutorial. Worked like a charm. This is gonna make my webapp 100 times better... (and I think Allmighty Mr.Microsoft (not being sarcastic, I really love MS :P) should really include this (or something similar) in .net as a standard option)

                I 1 Reply Last reply
                0
                • I ii_noname_ii

                  It works!!!!:laugh::-D *champagne for everyone* http://www.kynou.com/KYNOUControls.htm[^] A very good tutorial. Worked like a charm. This is gonna make my webapp 100 times better... (and I think Allmighty Mr.Microsoft (not being sarcastic, I really love MS :P) should really include this (or something similar) in .net as a standard option)

                  I Offline
                  I Offline
                  ii_noname_ii
                  wrote on last edited by
                  #8

                  Running out of time for today, but will check here soon.. Seems once I've picked an item on drop down list nr.2 it won't repopulate after i change on nr.1 again..?

                  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