<%@ Page Language="C#" %> <html> <head> <script runat="server"> void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { datalist.DataSource = new string[] { "sample03a.aspx", "sample03b.aspx", "sample03.htm"}; datalist.DataBind(); } } </script> </head> <body> <asp:DataList id="datalist" runat="server"> <ItemTemplate> <a href="sample03b.aspx?arg=<%# Server.UrlEncode((string)Container.DataItem) %>" target="right"> <%# Container.DataItem %> </a> </ItemTemplate> </asp:DataList> </body> </html>