Is it possible to launch sub without autopostback in DDL?
-
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
-
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
use AJAX methos.
Softy Boy
-
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
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..?
-
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..?
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.
-
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.
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 !" :^)
-
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 !" :^)
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.
-
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.
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)
-
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)
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..?