Home All Groups Group Topic Archive Search About

WEB combobox won't fire event

Author
6 Oct 2006 1:52 PM
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

Author
6 Oct 2006 2:03 PM
rowe_newsgroups
Set the cbo's AutoPostBack property to true

Thanks,

Seth Rowe

JR wrote:
Show quoteHide quote
> 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
Author
6 Oct 2006 3:03 PM
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:
Show quoteHide quote
> 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
Author
6 Oct 2006 3:51 PM
rowe_newsgroups
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:
Show quoteHide quote
> 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