Click here to Skip to main content
15,896,153 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to add control Runtime?? Pin
Sandeep Akhare29-Oct-07 20:59
Sandeep Akhare29-Oct-07 20:59 
QuestionUnable to attach the code to debug Pin
buzzvishwanath29-Oct-07 18:53
buzzvishwanath29-Oct-07 18:53 
QuestionEvent Fire in Drop Down List Pin
Rinki Mukheraji29-Oct-07 18:17
Rinki Mukheraji29-Oct-07 18:17 
AnswerRe: Event Fire in Drop Down List Pin
N a v a n e e t h29-Oct-07 18:52
N a v a n e e t h29-Oct-07 18:52 
GeneralRe: Event Fire in Drop Down List Pin
Rinki Mukheraji29-Oct-07 18:57
Rinki Mukheraji29-Oct-07 18:57 
AnswerRe: Event Fire in Drop Down List Pin
kuyak200029-Oct-07 19:19
kuyak200029-Oct-07 19:19 
GeneralRe: Event Fire in Drop Down List Pin
Rinki Mukheraji29-Oct-07 19:27
Rinki Mukheraji29-Oct-07 19:27 
GeneralRe: Event Fire in Drop Down List Pin
kuyak200029-Oct-07 20:36
kuyak200029-Oct-07 20:36 
Yes, I know. What I'm trying to say is, you should define items in your dropdownlist at least two items, instead of just one. Otherwise, the web browser will always chose the only one item and there will be no SelectedIndexChanged event fired, since there's just only one item.

There is a historical reason for this. W3C HTML 3.2/4.0 compliant browser such as IE 4.x or above, Netscape 7 or above, Firefox 1.5/2.0 or above, and Opera 5.x or above will always treat dropdownlist to automatically select first item it found, unless it's defined by the dropdownlist. If the item is only one instead of many items, it will always select the only one item.

For example, in your code you only define one item. Therefore when the ASP.NET page is rendered on client web browser, the first item selected is always the only one item and there will be no SelectedIndexChanged fired.

This is the default behavior of web drop down list (or dropdownlist in ASP.NET), and there's nothing you can do to overcome this event not fired problem, since it's the default behavior. ASP.NET (even other server side Java Server Pages, Struts) itself relies on the default render behavior on web browsers.

best regards,

Eriawan Smile | :)
QuestionRole Manager [modified] Pin
SreejithAchutan29-Oct-07 17:21
SreejithAchutan29-Oct-07 17:21 
AnswerRe: Role Manager Pin
N a v a n e e t h29-Oct-07 18:53
N a v a n e e t h29-Oct-07 18:53 
GeneralRole Manager Pin
SreejithAchutan29-Oct-07 19:10
SreejithAchutan29-Oct-07 19:10 
GeneralRe: Role Manager Pin
N a v a n e e t h29-Oct-07 19:43
N a v a n e e t h29-Oct-07 19:43 
GeneralRole Manager Pin
SreejithAchutan29-Oct-07 19:56
SreejithAchutan29-Oct-07 19:56 
GeneralRe: Role Manager Pin
N a v a n e e t h29-Oct-07 20:04
N a v a n e e t h29-Oct-07 20:04 
Questionre: Unable to get the project from the project file. Unable to open the webproject Pin
Sakis_hir29-Oct-07 16:38
Sakis_hir29-Oct-07 16:38 
Questionschedule a .NET web service Pin
Dpriya29-Oct-07 14:03
Dpriya29-Oct-07 14:03 
AnswerRe: schedule a .NET web service Pin
Colin Angus Mackay29-Oct-07 14:10
Colin Angus Mackay29-Oct-07 14:10 
AnswerRe: schedule a .NET web service Pin
N a v a n e e t h29-Oct-07 18:35
N a v a n e e t h29-Oct-07 18:35 
AnswerRe: schedule a .NET web service Pin
Vasudevan Deepak Kumar29-Oct-07 19:41
Vasudevan Deepak Kumar29-Oct-07 19:41 
QuestionStill having the same problem - can anyone help? Two response.X events from one click event... Pin
_Damian S_29-Oct-07 13:53
professional_Damian S_29-Oct-07 13:53 
AnswerRe: Still having the same problem - can anyone help? Two response.X events from one click event... Pin
N a v a n e e t h29-Oct-07 18:49
N a v a n e e t h29-Oct-07 18:49 
GeneralRe: Still having the same problem - can anyone help? Two response.X events from one click event... Pin
_Damian S_29-Oct-07 18:58
professional_Damian S_29-Oct-07 18:58 
GeneralRe: Still having the same problem - can anyone help? Two response.X events from one click event... Pin
N a v a n e e t h29-Oct-07 19:28
N a v a n e e t h29-Oct-07 19:28 
GeneralRe: Still having the same problem - can anyone help? Two response.X events from one click event... Pin
_Damian S_30-Oct-07 19:54
professional_Damian S_30-Oct-07 19:54 
QuestionASP, Script.aculo.us, drag and drop, save and load new positios Pin
hanssgt29-Oct-07 13:22
hanssgt29-Oct-07 13:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.