sir, I am having problem in coding the if construct.
Code:
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" AppendDataBoundItems="true" DataSourceID="LinqDataSource1" DataTextField="Name" DataValueField="Id" Width="129px">
<asp:ListItem Value="-1">Please Choose Album</asp:ListItem>
</asp:DropDownList>
in the page_load event I am trying to set up the if construct like
Code:
If Not DropDownList1.SelectedItem Then
ListView1.Visible = False
End If
But in first line I am having problem to properly code it.
how I can check the selected item for nothing
("asp:ListItem Value="-1">Please Choose Album</asp:ListItem>")?