Event to catch the change options in dropdownlist

G

Grey

I have a dropdownlist control in ASP.NET form. But when I click on the control and attempt to change the option, there is nothing to happen to the server side, that is cannot trigger in action. How come of this happen??? Is it use "SelectedIndexChanged" for dealing the change options event??

Million thanks
 
F

FrzzMan[

Grey said:
I have a dropdownlist control in ASP.NET form. But when I click on the
control and attempt to change the option, there is nothing to happen to
the server side, that is cannot trigger in action. How come of this
happen??? Is it use "SelectedIndexChanged" for dealing the change
options event??

Million thanks

You have to trigger the event on client side to post changes to server,
in this situation, server cannot be noticed about the change.

btw, I'm a newbie about ASP.NET, so maybe I'm wrong.
 
L

Lau Lei Cheong

Right. This is the cause.

In my projects, I'll usually use write something in a hidden control then
use javascript to call click() in another button. Remember to write code in
the click event of submit button so it won't do anything if it seen
something written on the hidden control.

Of course, there maybe other methods.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top