[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

Remove MobileListItem by value

Roman O

11/29/2004 8:49:00 AM

Hi!

I'm trying to delete MobileListItem defined in .aspx page:
<mobile:selectionlist id="List1" runat="server" selecttype="DropDown">
<item text="Some text" value="Item1" />
</mobile:selectionlist>

I'm using Remove method:
List1.Items.Remove("move");

or property Visible:
List1.Items[0].Visible = false;

But in both cases I didn't see any result.

Can anybody help me?


1 Answer

Roman O

11/29/2004 9:03:00 AM

0

> <mobile:selectionlist id="List1" runat="server" selecttype="DropDown">
> <item text="Some text" value="Item1" />
> </mobile:selectionlist>
>
> I''m using Remove method:
> List1.Items.Remove("move");

Sorry List1.Items.Remove("Item1");