OnTheAnvil
Regular
I'd like to execute some javascript code when the user changes the value of a drop down list on my web page but I keep getting an error. Any thoughts?
Code on my page:
<script language="javascript">
function ddlMedicalErrorType_OnSelectedIndexChanged()
{
alert("HELLO");
}
</script>
.
.
.
<asp:dropdownlist id="ddlMedicalErrorType" style="Z-INDEX: 138; LEFT: 480px; POSITION: absolute; TOP: 256px" runat="server" Width="128px" OnSelectedIndexChanged="ddlMedicalErrorType_OnSelectedIndexChanged();">
The error that I get is:
Compiler Error Message: BC30456: 'ddlMedicalErrorType_OnSelectedIndexChanged' is not a member of 'ASP.IncidentLog_aspx'.
I'd appreciate anything I can get.
Thanks,
OnTheAnvil
Code on my page:
<script language="javascript">
function ddlMedicalErrorType_OnSelectedIndexChanged()
{
alert("HELLO");
}
</script>
.
.
.
<asp:dropdownlist id="ddlMedicalErrorType" style="Z-INDEX: 138; LEFT: 480px; POSITION: absolute; TOP: 256px" runat="server" Width="128px" OnSelectedIndexChanged="ddlMedicalErrorType_OnSelectedIndexChanged();">
The error that I get is:
Compiler Error Message: BC30456: 'ddlMedicalErrorType_OnSelectedIndexChanged' is not a member of 'ASP.IncidentLog_aspx'.
I'd appreciate anything I can get.
Thanks,
OnTheAnvil