Can't Find OnChange= event, Undefined

I have an OnChange event that I want to call, yet I keep getting a message that it is undefined.

I have the code in a script tage with a runat=server.  It worked prior to moving it to the "server" area.  I moved it there because I actually need to update via a code file too.

<%@ Control Language="VB" AutoEventWireup="true" CodeFile="claim_auto.ascx.vb" Inherits="KeyLimeTie.CMS.Web.Common_UserControls_Custom_claim_auto" %>

<script runat="server">
    Sub change_Primary_Message(ByVal Source As Object, ByVal e As EventArgs)
        If (Not Primary_Type.SelectedIndex = 0) Then
            Primary_Message_Row.Visible = True
            Primary_Message_Row.Visible = False
        End If
    End Sub
    Sub change_Secondary_Message(ByVal Source As Object, ByVal e As EventArgs)
        If (Not Secondary_Type.SelectedIndex = 0) Then
            Secondary_Message_Row.Visible = True
            Secondary_Name_Label.Text = "(required)"
            Secondary_Message_Row.Visible = False
            Secondary_Name_Label.Text = ""
        End If
    End Sub

<asp:DropDownList id="Secondary_Type" runat="server" OnChange="change_Secondary_Message"></asp:DropDownList>

Open in new window

Thanks In Advance,
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

michdAuthor Commented:
I do notice that when I have the <script runat="server"> the functions don't show up in my webpage source.
michdAuthor Commented:
Found out that onchange needs to be OnSelectedIndexChanged

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.