473,466 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Create 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 SelectedIndexChanged doesn't fire. I
tried to put the code in the ASP that says on the control:
SelectedIndexChanged="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 1323
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 SelectedIndexChanged doesn't fire. I
tried to put the code in the ASP that says on the control:
SelectedIndexChanged="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 SelectedIndexChanged doesn't fire. I
tried to put the code in the ASP that says on the control:
SelectedIndexChanged="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.public.dotnet.framework.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 SelectedIndexChanged doesn't fire. I
tried to put the code in the ASP that says on the control:
SelectedIndexChanged="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
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;...
2
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...
1
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...
2
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...
4
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...
6
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...
8
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...
3
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...
0
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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...
0
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...
0
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,...
0
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...
0
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 ...

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.