0
Reply

how to use autopostback method in mobile application?

vijay

vijay

Jun 7 2010 3:33 AM
2.2k

Hi

     i have used following code in my mobile application.how can i use autopostback method in my application? and how to use DropDownList1.selectedvlaue in DropDownList1_SelectedIndexChanged event?.


<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>