473,811 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dropdown list lost focus

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
2 5053
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_S electedIndexCha nged 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.at tributes.add("o nblur","Javascr ipt:FillOtherFi elds();");

HTH
Regards
Ashish M Bhonkiya

"starbuck" <st******@mbsso ft.co.uk> wrote in message
news:%2******** ********@TK2MSF TNGP10.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
Thank Ashish
That did the trick

Cheers

"Ashish M Bhonkiya" <bh******@hotma il.com.nospam> wrote in message
news:uW******** *****@TK2MSFTNG P10.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_S electedIndexCha nged 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.at tributes.add("o nblur","Javascr ipt:FillOtherFi elds();");

HTH
Regards
Ashish M Bhonkiya

"starbuck" <st******@mbsso ft.co.uk> wrote in message
news:%2******** ********@TK2MSF TNGP10.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
10178
by: Rod Early | last post by:
I need to know when the select element's dropdown list is opened (as when the user clicks on the arrow or does ALT-downarrow from the keyboard). Similarly, I need to known when the dropdown list closes. The closing of the dropdown list can happen without changing the dropdown, hence the onchange event is not a sure way to determine that the dropdown list closed. Is this possible in Internet Explorer?
1
8912
by: cksj | last post by:
I have a dropdown control on my web page. When the user has selected an item on the list, I would like to set focus to one of the textboxes. Do you know how I can do this? Thanks for any ideas. Cesar
3
2488
by: Dave | last post by:
We are developing a web page that shows large graphics. To provide more screen space for the graphics, we allow the user to popup a window that places itself over the top part of the browser. This popup contains a control panel that tells the main window what to display. Because we don't want to require that the user continually ALT-TAB to go between the main window and the popup (all user controls are on the popup) in the control panel...
9
11857
by: Prowler | last post by:
In our current application we have a page whose sole purpose for existence is to permit the user to select from a list (subsequent to our login page). We would like to have the list drop down automatically when the visitor arrives at the page, perhaps by using the onLoad event to call the dropdown code. The problem is, the click() event does not drop down the list, as I would have thought it might. I can successfully fire other methods...
6
7366
by: Rey | last post by:
Howdy, all. Appreciate your help. Have a one to many relation between a client and visit table. In the visit subform, I have a visittype and counselor field which are comboboxes. If I set either field to drop down via Me.dropdown in the GotFocus event for the field, each time the client record changes the visittype or counselor field drops down - only have the GotFocus event set to one combobox at the moment - unless I move the cursor...
1
1712
by: Dale Geffs | last post by:
I have a form with a combo box and when it (combo) gets focus I issue a .dropdown. Using A2K and SP1 everything works fine and the list drops down under the control as expected. If I use a PC with SP3 the dropdown actually pops up over the combo box covering it completely. Same exact form and source code in both examples. Anyone ever seen anything like this before? Dale
4
4595
by: Paul | last post by:
I have a dropdown list box and a button on a web form, the autopost back is false for the dropdown list box and button. When the button is pushed the selection in the dropdownlist box is lost, just wondering what is wrong. Selected value is always 1 no matter what is selected in the dropdown list box. Private Sub btn_yes_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_yes.Click Dim s_origidval As String
5
10298
by: Gil | last post by:
Is there a way to tell if a combbox is in dropdown mode. I tried and if statement combobox.dropdown = true but i get an error. dropwndown function doesnt store if its true or false what i am trying to do is make an autoscroll combobox. like you have on html textbox's, but this time you hit enter for a change to be made. i do this because i dont want to requery every time a single letter is inputed. it would be too slow. so i make them hit...
3
3851
by: Cagey | last post by:
What I'm trying for: If this selection or if click on selection (highlighted line choice/ which ever selection change) w/in query's combo dropdown list box (on Switchboard), then Open in Datasheet View, the specific underlying record's Row... showing all columns Or selected columns. For a specific row's record ONLY, Or for all Xs (same type), or for the whole data sheet (all records... includes all types then), but focus still opens...
0
10648
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10402
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10135
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9205
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7670
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6890
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4339
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.