troubleshooting Question

autopostback on my drop down list keeps going back to the selected value...why?

Avatar of mmedi005
mmedi005 asked on
Web Development.NET ProgrammingASP.NET
5 Comments1 Solution351 ViewsLast Modified:
autopostback on my drop down list keeps going back to the selected value...why?

asp:DropDownList ID="txt_interest" SkinID="rof_drop_down" runat="server" AutoPostBack="True"
        asp:ListItem Value="1" Selected="True" )NO(/asp:ListItem
        asp:ListItem Value="1")YES(/asp:ListItem
        /asp:DropDownList

And my code...

    Protected Sub txt_interest_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txt_interest.SelectedIndexChanged

        Dim i As Integer = Me.txt_interest.SelectedValue.ToString()

        Select Case i
            Case 0
                Me.bearing_info.Text = ""
                Me.txt_bearing.Visible = False
            Case 1
                Me.bearing_info.Text = "FORM:"
                Me.txt_bearing.Visible = True
        End Select

    End Sub


Any ideas?

PS Brackets are sending me to a blank white screen.....
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros