vijay

vijay

  • NA
  • 43
  • 0

how to handle DropDownList1_SelectedIndexChanged event in mobile.net

Jun 3 2010 6:06 AM

hi

i have used following code in my mobile  web application.

This code is on my mobilepage.aspx

<mobile:Panel id="Panel1" runat="server">
    <mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
            <Choice Filter="supportsJavaScript">
                  <ContentTemplate>
                        <asp:DropDownList id="DropDownList1" runat="server"
                            OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
                          AutoPostBack="True">
                              <asp:ListItem Value="1">1</asp:ListItem>
                              <asp:ListItem Value="2">2</asp:ListItem>
                              <asp:ListItem Value="3">3</asp:ListItem>
                              <asp:ListItem Value="4">4</asp:ListItem>
                              <asp:ListItem Value="5">5</asp:ListItem>
                        </asp:DropDownList>
                  </ContentTemplate>
            </Choice>
   </mobile:DeviceSpecific>
</mobile:Panel>


This code is on my web.config

<configuration>
     <system.web>
        <deviceFilters>
                  <filter name="supportsJavaScript"  compare="javascript"   argument="true"/>
            </deviceFilters>
    </system.web>
</configuration>

when i am select any option of
DropDownList1  then i need selected value on DropDownList1_SelectedIndexChanged event.


so any one please help me as per as possible.