I would like to trigger the onchange with c# because i can't use js
(Master.FindControl("ComboBox") as CustomComboBox).SelectedValue = foo;
(Master.FindControl("ComboBox") as CustomComboBox).change();
the ".change()" won't work. Is there a way in c# to make it work ?
Thank you for your help.
changeis an event, you can't use standard method call to trigger other events in C# like JS does. You need to useprotected void ComboBox_Change(object sender, EventArgs e)event handler in case of ASP.NET webforms code-behind.