hi,
there...i need help.im not sure if my codes are appropriate..

<asp'Label id:"lblreport" runat="server" text"type of report"></asp:Label>
<asp:dropdownlist selected="true" value="annually"></asp:ListItem>

<asp:dropdownlist selected="true" value="Monthly"></asp:ListItem>

<asp:dropdownlist selected="true" value="weekly"></asp:ListItem>

<asp:dropdownlist selected="true" value="Daily"></asp:ListItem>

</asp:dropdownlist>

im getting error telling 'cannot have multiple selection'.

As your error message suggests, you cannot have multiple items selected on a Dropdownlist. You can set only one ListItem's Selected property to true, which will be the default selected Item of your Dropdownlist. Your Dropdownlist should be something similar like this:

<asp:DropDownList ID="DropDownList1" runat="server">
            <asp:ListItem Selected="True">Anually</asp:ListItem>
            <asp:ListItem>Monthly</asp:ListItem>
            <asp:ListItem>Weekly</asp:ListItem>
            <asp:ListItem>Daily</asp:ListItem>
</asp:DropDownList>

Hi..
In dropdown u dont have multiple selection.
If u want to select multiple items use the list control and set selection mode property as multiple.
Hope it'll help u...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.