Skip to content

Instantly share code, notes, and snippets.

@jschementi
Created July 19, 2010 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jschementi/481133 to your computer and use it in GitHub Desktop.
Save jschementi/481133 to your computer and use it in GitHub Desktop.
MIX10, Part 2.1 (2)
<%@ Page Language="IronPython" CodeFile="hello-webforms.aspx.py" %>
Enter your name:
<asp:TextBox ID="TextBox1" runat="server">
</asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click"/>
<p>
<asp:Label ID="Label1" runat="server" Text="Label">
</asp:Label>
</p>
def Page_Load(sender, e):
if not IsPostBack:
Label1.Text = "...Your name here..."
def Button1_Click(sender, e):
Label1.Text = Textbox1.Text
<asp:Repeater ID="ThumbnailList" runat="server">
<ItemTemplate>
<a href='<%# Link %>'>
<img alt='<%# Alt %>' src='<%# Src %>' width='<%# Width %>' height='<%# Height %>' style='border:0' />
</a>
</ItemTemplate>
</asp:Repeater>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment