473,699 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WEB combobox won't fire event

JR
I know this is probably dumb but I have a web combo box that will drop
down and I can select an item but SelectedIndexCh anged doesn't fire. I
tried to put the code in the ASP that says on the control:
SelectedIndexCh anged="vb sub" but that didn't fire either.

I must not understand the way the web is interfacing with the code.
All the controls are RUNATSERVER so that I can access all the events.

Any ideas?

Jim

Oct 6 '06 #1
3 1339
Set the cbo's AutoPostBack property to true

Thanks,

Seth Rowe

JR wrote:
I know this is probably dumb but I have a web combo box that will drop
down and I can select an item but SelectedIndexCh anged doesn't fire. I
tried to put the code in the ASP that says on the control:
SelectedIndexCh anged="vb sub" but that didn't fire either.

I must not understand the way the web is interfacing with the code.
All the controls are RUNATSERVER so that I can access all the events.

Any ideas?

Jim
Oct 6 '06 #2
JR
thanks Seth. I think that is heading in the right direction. It now
fires but then I get an error on the postback because it is a read only
connection. Have to look further into this. But the event is firing
now so I'm getting to the code I wanted to before it blows up!!

Jim Reid
rowe_newsgroups wrote:
Set the cbo's AutoPostBack property to true

Thanks,

Seth Rowe

JR wrote:
I know this is probably dumb but I have a web combo box that will drop
down and I can select an item but SelectedIndexCh anged doesn't fire. I
tried to put the code in the ASP that says on the control:
SelectedIndexCh anged="vb sub" but that didn't fire either.

I must not understand the way the web is interfacing with the code.
All the controls are RUNATSERVER so that I can access all the events.

Any ideas?

Jim
Oct 6 '06 #3
I'm not sure about this, but it may be something to look into: I
believe you can use clientside JavaScript to trap some events -
although I don't know how. Hopefully someone will either correct or
confirm this (or even point you to some links). Also you may do some
searches in the microsoft.publi c.dotnet.framew ork.aspnet newsgroupt and
see if there are any examples there.

Thanks,

Seth Rowe
JR wrote:
thanks Seth. I think that is heading in the right direction. It now
fires but then I get an error on the postback because it is a read only
connection. Have to look further into this. But the event is firing
now so I'm getting to the code I wanted to before it blows up!!

Jim Reid
rowe_newsgroups wrote:
Set the cbo's AutoPostBack property to true

Thanks,

Seth Rowe

JR wrote:
I know this is probably dumb but I have a web combo box that will drop
down and I can select an item but SelectedIndexCh anged doesn't fire. I
tried to put the code in the ASP that says on the control:
SelectedIndexCh anged="vb sub" but that didn't fire either.
>
I must not understand the way the web is interfacing with the code.
All the controls are RUNATSERVER so that I can access all the events.
>
Any ideas?
>
Jim
Oct 6 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
16226
by: ScottO | last post by:
I would like the user to have to select something in a System.Windows.Forms.ComboBox. private void MyForm_Load(object sender, System.EventArgs e) { ... comboBox.DataSource = data; comboBox.SelectedIndex = -1; ... }
2
3887
by: Sam Miller | last post by:
Hi, I have a button event that won't fire. I left it on Friday and it worked fine. I came back in on Monday and it won't fire. I tried putting another button and just putting a response.write on its click handler but it won't fire either telling me no button click events will fire. But my calendar control on the same page does fire. In the debugger I put a break point in the calendar event and the button
1
2313
by: Norm Katz | last post by:
When you use a bound combobox and you set its dropdown style to "dropdown" that allows you to enter text in the edit box. But if you enter anything other than a value in the current bound items collection, the .text property does not update. Furthermore, you can't easily trap an event to examine the new value if your program assigns it programmatically as opposed to someone typing it in and tabbing away from it. That is, TextChanged does...
2
1343
by: Dave | last post by:
I have a combobox with some values loaded from a database. I want to use a barcode reader to select a value in the combobox. But as soon as it is selected I want to fire an event. What event would be the most appropriate? -- L. A. Jones
4
14647
by: senfo | last post by:
Hello All, For some reason, the MouseDoubleClick event for my ComboBox does not appear to be working. I am not subscribed to any other events for this control. I pulled out Spy++ and noticed that the WM_LBUTTONDBCLICK message is indeed occurring. The ComboBox does not provide a DoubleClick event like other controls do. The Windows application is being developed in VS 2005.
6
10814
by: tbrown | last post by:
I have a combobox with items like this: {one,two,three}. The selected index is 0, so "one" appears in the combobox text. When the user drops down the list, and selects "two", for example, I modify the Items collection to be {two,one,three} and now want "two" to appear in the combobox text. However, the combobox text is now blank. the is apparently somehow the result of having changed the combobox.Items collection. If, trying to fix...
8
13395
by: =?Utf-8?B?RyBIdXN0aXM=?= | last post by:
This is the 2nd time posting so sorry for duplications. I am using VB.NT 2005 & a standard Combobox. I've been wracking my brain over this problem for a over a month & cannot seem to find a way to trap the pressing of a Tab Key when the focus is in a Combobox. The KeyDown or KeyUp event for a combobox will not fire when the tab key is pressed. The Keyup event will fire when the Tab key is used to tab into the combo, however I want to trap...
3
3966
by: goscottie | last post by:
I have two comboboxes databound at run time. I can make a selection on first one to filter the second one. This works good with applying DataView RowFilter on second combobox. But at that moment, I need to have the second combobox to fire off SelectedValueChanged event because the selection has been changed (most likely the top item after filter applied). This won't fire currently. I can, however, make selection to the combobox...
0
1755
by: Dom | last post by:
I have a datagridview control, and one column is a ComboboxColumn. I simply create a ComboboxColumn, add items to it, then add the column to the Datagridview control. If I were working with a simple ComboBox, I could capture an event that fired everytime the selected item changed. Is that possible if the DatagridView control? I've looked at various events, but none give me what I want. For example, the CellEndEdit event won't fire...
0
9172
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
8908
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
8880
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
7745
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
6532
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
5869
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
4374
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
4626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.