locked
Dropdownlist AutoPostBack="true" NOT Firing in IPhone RRS feed

  • Question

  • User-1766099125 posted

    Hi everyone,

    This is really weird...I have a ASP.NET page for mobile view.

    On that page I have this part:

    <td><asp:DropDownList ID="DropDownLocation" runat="server" AutoPostBack="true" OnSelectedIndexChanged="test" 
                                appenddatabounditems="True" style=" font-size:large; vertical-align:middle;" Width="170px">
                        <asp:ListItem value="Houston">Houston</asp:ListItem>
                        <asp:ListItem value="El Paso">El Paso</asp:ListItem>
                        <asp:ListItem value="Austin">Austin</asp:ListItem>
                        <asp:ListItem value="Boise">Boise</asp:ListItem>
                        <asp:ListItem value="Washington">Washington</asp:ListItem>
                </asp:DropDownList>

    While testing this on normal computer using IE7 IE8 it fires the AutoPostBack Control.

    BUT TESTING IN IPHONE THIS DOES NOT FIRES....

    ALSO THE DISPLAY IS WIERD BECAUSE A SEPARATE BOX APPEARS AT THE BOTTOM TO SELECT THE LIST.

    What am I doing wrong?

    Thank you in advance!

     

     

    Thursday, March 17, 2011 5:08 PM

Answers

  • User-1766099125 posted

    I fixed it using javascript.

    something like this!

    <asp:dropdownlist id=DropDownLocation....... onChange="check" .........>

    <script type="text/javascript">
         
          function Check() {
              if (form1.DropDownLocation.value == "Houston") {
                  //something.....  
                  return false;    
              //keep going
              }
    }

     

    This works!

    Thanks anyway!

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, March 30, 2011 4:03 PM

All replies

  • User-1360095595 posted
    I think that's just how the iPhone Safari browser works.
    Thursday, March 17, 2011 6:28 PM
  • User1943143334 posted

    Hi,

    Try enabling Javascript in the settings of iPhone.

    Check the following link for more information on web apps for Apple iPhone.

    http://roopeshreddy.wordpress.com/2011/03/05/guidelines-for-developing-web-apps-for-apple-iphone/

    Hope it helps u...

    Friday, March 18, 2011 11:21 AM
  • User-1766099125 posted

    I fixed it using javascript.

    something like this!

    <asp:dropdownlist id=DropDownLocation....... onChange="check" .........>

    <script type="text/javascript">
         
          function Check() {
              if (form1.DropDownLocation.value == "Houston") {
                  //something.....  
                  return false;    
              //keep going
              }
    }

     

    This works!

    Thanks anyway!

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, March 30, 2011 4:03 PM