locked
Alternative for listbox controls for WML devices RRS feed

  • Question

  • User211858889 posted

    I am binding some values to asp listbox controls in device filters.

    For example item1,item2,item3 .. are binded and displayed in the listbox controls.

    Since there was no selectedindexchanged event,i am selecting the value item1 and i am clicking a button to get the value that is selected.

    This works on HTML devices but not on WML devices.

    ie i can't select both listbox and button at a same time.

    Is there is any workaround?

    Tuesday, November 27, 2007 7:20 AM

Answers

  • User113421904 posted

    Hi asenthil,

    If your web pages are targetting for mobile devices, we would recommend using Mobile Web Forms controls. The ASP.NET Mobile Web Forms control are designed specially for rendering code for mobile devices. Although you can still use some of the ASP.NET Web Form controls, but them may not render well for some of the devices.

    In your case, you can use the ASP.NET Mobile SelectionList instead of ListBox in ASP.NET Mobile Web Forms. You can find those control under Mobile Web Forms Toolbox in Visual Studio. For more details of this control, you can visit the following: 

    http://msdn.microsoft.com/en-us/library/aa710904(VS.71).aspx

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, November 30, 2007 2:48 AM