how to fire dropdownlist.selectedindexchanged event programmaticaly.

Posted by Rohit on Stack Overflow See other posts from Stack Overflow or by Rohit
Published on 2010-04-21T07:08:38Z Indexed on 2010/04/21 7:13 UTC
Read the original article Hit count: 460

Filed under:

I have some code which fires when user selects an item in dropdownlist. Now i want the same code to fire when i set selectedindex programmatically.

I have tried setting

ddlSystemLevelDCP.SelectedIndex=2;

and this as well

ddlSystemLevelDCP.SelectedValue="2";

None of them fires this event.However when user changes the selection,this event fires.Please tell me what am i missing.

© Stack Overflow or respective owner

Related posts about ASP.NET