<%@ Page Language="vb" %>
<html>
<head>
<title>Action Control Example</title>
<script runat="server">
Sub Page_Load()
MyButton.CommandName = "Sort"
MyImageButton.CommandArgument = "Ascending"
MyLinkButton.CommandName = "Filter"
MyHyperLink.NavigateUrl = " http://www.java2java.com/"
End Sub
</script>
</head>
<body>
<h1>Action Control Example</h1>
<form runat="server">
<asp:table id="MyTable" border="1" cellpadding="5" cellspacing="0" runat="server">
<asp:tablerow runat="server">
<asp:tablecell runat="server">
Button Control:
</asp:tablecell>
<asp:tablecell runat="server">
<asp:button id="MyButton" text="Click Me!!" runat="server"/>
</asp:tablecell>
</asp:tablerow>
<asp:tablerow runat="server">
<asp:tablecell runat="server">
ImageButton Control:
</asp:tablecell>
<asp:tablecell runat="server">
<asp:imagebutton id="MyImageButton"
imageurl="http://www.java2java.com/style/logo.png" runat="Server"/>
</asp:tablecell>
</asp:tablerow>
<asp:tablerow runat="server">
<asp:tablecell runat="server">
LinkButton Control:
</asp:tablecell>
<asp:tablecell runat="server">
<asp:linkbutton id="MyLinkButton" text="Click Me" runat="server"/>
</asp:tablecell>
</asp:tablerow>
<asp:tablerow runat="server">
<asp:tablecell runat="server">
HyperLink Control:
</asp:tablecell>
<asp:tablecell runat="server">
<asp:hyperlink id="MyHyperLink"
text="Click Me"
navigateurl="ActionControls.aspx"
target="_blank"
runat="server"/>
</asp:tablecell>
</asp:tablerow>
</asp:table>
</form>
</body>
</html>
|