dropdown list lost focus

  • Thread starter Thread starter starbuck
  • Start date Start date
S

starbuck

Hi

In asp.net/vb.net is there a trigger for a dropdown list when focus moves to
next control.
I want other fields to be filled after a user selects a account reference
and tabs to the next field

Thanks in advance
 
Hi starbuck,

Set the autopostback property of the dropdownlist to true so every time you
change any value in the datagrid the will get posted and on the server you
can do the processing (fill the other fields) in the
DropDownList1_SelectedIndexChanged method.

if the data to be populated on the other fields, is available on the client
when the page is rendered, you can have a javascript attached to the
dropdownlist which does the processing (fill other fields) for you on the
client itself.

You can attach the javascript using following code in the page_load method
dropdownlist.attributes.add("onblur","Javascript:FillOtherFields();");

HTH
Regards
Ashish M Bhonkiya
 
Thank Ashish
That did the trick

Cheers

Ashish M Bhonkiya said:
Hi starbuck,

Set the autopostback property of the dropdownlist to true so every time you
change any value in the datagrid the will get posted and on the server you
can do the processing (fill the other fields) in the
DropDownList1_SelectedIndexChanged method.

if the data to be populated on the other fields, is available on the client
when the page is rendered, you can have a javascript attached to the
dropdownlist which does the processing (fill other fields) for you on the
client itself.

You can attach the javascript using following code in the page_load method
dropdownlist.attributes.add("onblur","Javascript:FillOtherFields();");

HTH
Regards
Ashish M Bhonkiya

moves
 
Back
Top