Created
July 19, 2010 08:03
-
-
Save jschementi/481133 to your computer and use it in GitHub Desktop.
MIX10, Part 2.1 (2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def Page_Load(sender, e): | |
if not IsPostBack: | |
Label1.Text = "...Your name here..." | |
def Button1_Click(sender, e): | |
Label1.Text = Textbox1.Text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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