-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdefault.aspx
35 lines (31 loc) · 941 Bytes
/
default.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected String SayHey()
{
return "What do you say? Hey!";
}
protected void cmdSave_Click(Object sender, EventArgs e)
{
steve.Text = "You actually got clicked!";
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>ASP.NET WebForms Hello From Mono (Kestrel special)</title>
</head>
<body>
<div>
<%=SayHey()%>
<br /><br /><br />
With a form <br /><br />
<form id="myform" runat="server">
Input Something: <asp:TextBox ID="steve" Text="Hello TextBox" runat="server" />
<br /><br />
<asp:Button ID="cmdSave" Text="Click Me!" OnClick="cmdSave_Click" runat="server" />
</form>
</div>
<div style="margin-top:30px;"> </div>
</body>
</html>