By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,959 Members | 1,136 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,959 IT Pros & Developers. It's quick & easy.

dropdown list lost focus

P: n/a
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


---
Outgoing mail is certified Virus Free, so am I.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.677 / Virus Database: 439 - Release Date: 04/05/2004
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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:F illOtherFields();");

HTH
Regards
Ashish M Bhonkiya

"starbuck" <st******@mbssoft.co.uk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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


---
Outgoing mail is certified Virus Free, so am I.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.677 / Virus Database: 439 - Release Date: 04/05/2004

Nov 18 '05 #2

P: n/a
Thank Ashish
That did the trick

Cheers

"Ashish M Bhonkiya" <bh******@hotmail.com.nospam> wrote in message
news:uW*************@TK2MSFTNGP10.phx.gbl...
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:F illOtherFields();");

HTH
Regards
Ashish M Bhonkiya

"starbuck" <st******@mbssoft.co.uk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
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


---
Outgoing mail is certified Virus Free, so am I.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.677 / Virus Database: 439 - Release Date: 04/05/2004


---
Outgoing mail is certified Virus Free, so am I.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.677 / Virus Database: 439 - Release Date: 04/05/2004
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.