0

Does anyone know how to setup a dropdown list for C# without using a database? I'm trying to set up one that will allow users to select a newsletter from the dropdown and have it pop up in a new window. Any ideas?

<ASP:DropDownList id="NewsletterSelect" runat="server">
    <ASP:ListItem value="'[Path]'">Newsletter 1</ASP:ListItem>
    <ASP:ListItem value="'[Path]'">Newsletter 2</ASP:ListItem>
    <ASP:ListItem value="'[Path]'">Newsletter 3</ASP:ListItem>
    <ASP:ListItem value="'[Path]'">Newsletter 4</ASP:ListItem>
</ASP:DropDownList>
 
 <!--<input type="button" value="Read Newsletter" onclick="window.open('[Path of selected Newsletter]')"/> -->
</td></tr></table></asp:Content>
1
Contributor
2
Replies
4
Views
7 Years
Discussion Span
Last Post by CaffeineCoder
0

OK, let me clarify my objective. I'm finding a few examples of asp.net dropdown lists and how to populate them, etc. The problem is, these are just having the choices written to a text box. What I want to do is have the selections (which are PDF files) popup in a new window. Any ideas?

0

Oh, in case anyone in the future has a similar problem, what I did was finally just use JavaScript to implement the dropdown instead of using the ASP as I was doing. Worked.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.