In my code I have used a dropdown onSelectedIndexChanged event and few things happen... I want to call JavaScript after that.... I have tried using
dropdown.Attributes.Add("onchange", "javascript:alert('Test');");
the above code does not fire
and
dropdown.Attributes.Add("onblur", "javascript:alert('Test');");
this is also not useful as the dropdown is autopostback and it loses focus because of that
Is there any way through which I can call JavaScript function through c#?