Click here to Skip to main content
15,920,383 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: global valiable for java script function Pin
Sonia Gupta29-Oct-07 21:25
Sonia Gupta29-Oct-07 21:25 
QuestionBased on Table Bind..., Pin
Member 387988129-Oct-07 19:51
Member 387988129-Oct-07 19:51 
Questionhow to upload a local file into application server (its urgent plz) Pin
jagadeeshkumar198429-Oct-07 19:50
jagadeeshkumar198429-Oct-07 19:50 
AnswerRe: how to upload a local file into application server (its urgent plz) Pin
N a v a n e e t h29-Oct-07 19:58
N a v a n e e t h29-Oct-07 19:58 
AnswerRe: how to upload a local file into application server (its urgent plz) Pin
jagadeeshkumar198429-Oct-07 20:14
jagadeeshkumar198429-Oct-07 20:14 
GeneralRe: how to upload a local file into application server (its urgent plz) Pin
N a v a n e e t h29-Oct-07 20:25
N a v a n e e t h29-Oct-07 20:25 
GeneralRe: how to upload a local file into application server (its urgent plz) Pin
jagadeeshkumar198429-Oct-07 20:38
jagadeeshkumar198429-Oct-07 20:38 
QuestionFind application path Pin
ps.srinivasan29-Oct-07 19:14
ps.srinivasan29-Oct-07 19:14 
AnswerRe: Find application path [modified] Pin
Jintal Patel29-Oct-07 19:31
Jintal Patel29-Oct-07 19:31 
QuestionThe SourceSafe database path does not exist Pin
mahammadhusen29-Oct-07 19:12
mahammadhusen29-Oct-07 19:12 
QuestionHow to add control Runtime?? Pin
varshavmane29-Oct-07 19:04
varshavmane29-Oct-07 19:04 
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 

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.