This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/aspx-vb/example2.aspx
Oleh Prypin 6f43092173
Also add auto-updatable output-based tests to examplefiles (#1689)
Co-authored-by: Georg Brandl <georg@python.org>
2021-01-20 10:48:45 +01:00

29 lines
636 B
Text

<%@ Register TagPrefix="Acme" TagName="Message" Src="userctrl2_vb.ascx" %>
<html>
<script language="VB" runat="server">
Sub SubmitBtn_Click(Sender As Object, E As EventArgs)
MyMessage.MessageText = "Message text changed!"
MyMessage.Color = "red"
End Sub
</script>
<body style="font: 10pt verdana">
<h3>A Simple User Control w/ Properties</h3>
<form runat="server">
<Acme:Message id="MyMessage" MessageText="This is a custom message!" Color="blue" runat="server"/>
<p>
<asp:button text="Change Properties" OnClick="SubmitBtn_Click" runat=server/>
</form>
</body>
</html>