1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Linq; |
---|
4 | using System.Web; |
---|
5 | using System.Web.UI; |
---|
6 | using System.Web.UI.WebControls; |
---|
7 | |
---|
8 | public partial class testFCK : System.Web.UI.Page |
---|
9 | { |
---|
10 | protected override void OnError(EventArgs e) |
---|
11 | { |
---|
12 | HttpContext ctx = HttpContext.Current; |
---|
13 | Exception exception = ctx.Server.GetLastError(); |
---|
14 | } |
---|
15 | |
---|
16 | protected void Page_Load(object sender, EventArgs e) |
---|
17 | { |
---|
18 | if(!Page.IsPostBack) |
---|
19 | { |
---|
20 | Body.Value = "hello<br />World!"; |
---|
21 | } |
---|
22 | } |
---|
23 | |
---|
24 | protected void posted(object sender, EventArgs e) |
---|
25 | { |
---|
26 | lblTest.Text += "Posted back successfully!"; |
---|
27 | Body.Value += "<br>Again!"; |
---|
28 | up.Update(); |
---|
29 | } |
---|
30 | } |
---|