you don't have to use a .vb file to do code.
you can also do it within the .aspx page.
like so:
<@page language="c#" ... %>
<HTML>
<HEAD>
<SCRIPT runat=server>
void Page_Load(object Sender, EventArgs e)
{
DropdownList1.Items.Add(DateTime.Now.ToLongDateStr ing());
}
</SCRIPT>
</HEAD>
<BODY>
<form runat=server>
<asp:DropDownList id="Dropdownlist1" runat="server">
<asp:ListItem value="S" text="Sweden" />
<asp:ListItem value="F" text="France" />
<asp:ListItem value="I" text="Italy" />
</asp:DropDownList>
</form>
</BODY>
</HTML>
Other than that, i'm not sure how to directly do it into the dropdownlist
without using code.
But there must be some way.
If your adiment about that, i suggest you start a new post to get some other
people's ideas. Specify that you do not want to use script to do it.
<ko******@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Is there a way to do it directly from the .aspx page? without having a
.vb file with code?