Snippets

Here is your code snippet

Code


Button example

This will display a button which when pressed will display a message underneath it

<script runat="server">
Sub button1(Source As Object, e As EventArgs)
text.InnerHtml="You clicked the button"
End Sub
</script>
<html>
<body>
<form runat="server">
<button id="b1" OnServerClick="button1" runat="server">
test button
</button>
<p id="text" runat="server" />
</form>
</body>
</html>