<div style=“height:400px;width:200px;overflow:auto”><asp:datagrid id=“MyGrid” runat=“server”/></div>
Sub Page_Load()Dim i as IntegerFor i=0 to 4 Dim myUserControl as ControlmyUserControl = Page.LoadControl(“foo.ascx”)PlaceHolder1.Controls.Add(myUserControl)PlaceHolder1.Controls.Add(New LiteralControl(“<br>”))Next iEnd Sub
asp:ImageButton id=“foo” ImageUrl=“start.jpg”onMouseOver=“rollover(this);” onMouseOut=“rollout(this)”rolloversrc=“myrollover.jpg”rolloutsrc=“myrollout.jpg”runat=“server”/><input type=Button onClick=“return clientHandler()” onServerClick=“Button1_Click” … />