Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.. i am using DropDownList it's have some ListItem But i am resign the event in text Changed or SelectedIndexChanged event it not resided what i done mi stack this is my code:UI

XML
<asp:DropDownList ID="CallStatus" CssClass="droptownBox" runat="server">
                           <asp:ListItem>Open</asp:ListItem>
                           <asp:ListItem>Action Taken</asp:ListItem>
                           <asp:ListItem>Fixed</asp:ListItem>
                           <asp:ListItem>Closed</asp:ListItem>
                           <asp:ListItem>Reopen</asp:ListItem>
                           <asp:ListItem>Reject</asp:ListItem>
                           <asp:ListItem>Pending-Move Out Request</asp:ListItem>
                       </asp:DropDownList>

VB
Protected Sub CallStatus_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles CallStatus.SelectedIndexChanged
        If CallStatus.Text = "Closed" Then
            PanelSoluationView.Visible = False
            Submit.Text = "Closed"
        End If
    End Sub
Posted
Updated 22-Jul-13 2:14am
v2

1 solution

Set AutoPostBack property to true otherwise SelectedIndexChanged event wont fire.
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900