Jump to content
  • Advertisement
Sign in to follow this  
Tiger99

Dynamic update

This topic is 5040 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I am just wondering how can I use ASP to update the values in a dropdown list as user change the values of the other dropdown list? Can this be done in ASP or this can only be done in javascript? Thanks

Share this post


Link to post
Share on other sites
Advertisement
I believe this is a programming issue and I believe I have posted my question under the appropriate category - General Programming: The place for discussing programming issues not related to games...

Share this post


Link to post
Share on other sites
this can be done without javascript if the drop down box you are changing causes a post back ...

Share this post


Link to post
Share on other sites
sorry, can you please explain what post back means. An sample example code would be very helpful

Thanks for your help

Share this post


Link to post
Share on other sites
Quote:
Original post by Tiger99
sorry, can you please explain what post back means. An sample example code would be very helpful

Thanks for your help


It means when you change the first drop down the page causes an event which will reload the page, call to 'Page_Load'. You need to make the drop post back, in the properties window in VS.NET if u use that.

The drop down will have something like a 'SelectedIndex_Changed' event. Put your code to update the other drop down in that, make sure in your Page_Load you do the first initializations in a block like this

if (!IsPostBack)
{
// do
}


btw what are u using, is this ASP.NET with VB.net /C# or just asp


Hope that helped

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!