Ticket #6343: testFCK.aspx.cs

File testFCK.aspx.cs, 734 bytes (added by Cade, 14 years ago)
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Web;
5using System.Web.UI;
6using System.Web.UI.WebControls;
7
8public 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}
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy