vb.net - ASP.Net Auto-populate field based on other fields -


i've moved web development , need know how can implement below requirement using asp.net , vb.net.

i have 3 fields in form filled users. based on these 3 values, need auto-populate 4th field. have planned implement in following way

  1. write separate class file function calculate possible values 4th fields based on 1st 3 inputs. function can return between 1-10 values. i've decided use drop-down 4th field, , allow users select appropriate value.

  2. call above function in onchange function of 3rd field , take , use return values populate 4th field. i'm planning return values in array field.(does need post back?)

please let me know how if there better way implement this.

thanks.

you may want consider doing javascript. read , control fields pretty pure javascript, or using nice library jquery (my favorite). if did way, no post-back required , 4th field update immediately. (nice users)

you can asp.net part. "onchange" in asp.net still requires javascript far know, of you. post-back happen when change something.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -