Menu

[r1]: / trunk / Source / Modules / ExternalLink / Edit.cs  Maximize  Restore  History

Download this file

55 lines (47 with data), 1.5 kB

 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#region Copyright © 2004, Nicholas Berardi
/*
* ManagedFusion (www.ManagedFusion.net) Copyright © 2004, Nicholas Berardi
* All rights reserved.
*
* This code is protected under the Common Public License Version 1.0
* The license in its entirety at <http://opensource.org/licenses/cpl.php>
*
* ManagedFusion is freely available from <http://www.ManagedFusion.net/>
*/
#endregion
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
// OmniPortal Classes
using ManagedFusion.Security;
using ManagedFusion;
using ManagedFusion.Modules;
namespace OmniPortal.Modules.ExternalLink
{
/// <summary>
/// Summary description for Edit.
/// </summary>
[ModuleAdmin("Edit.aspx", "External Link", "Used to change the external link that this section links to.")]
public class Edit : SkinnedUserControl
{
TextBox urlTextBox;
Button updateButton;
protected override void OnInit(EventArgs e)
{
urlTextBox = new TextBox();
urlTextBox.Text = Properties["ExternalURL"];
updateButton = new Button();
updateButton.Text = "Update Link";
updateButton.Click += new EventHandler(updateButton_Click);
this.Controls.Add(new LiteralControl("Current Section Link:&nbsp;&nbsp;"));
this.Controls.Add(urlTextBox);
this.Controls.Add(new LiteralControl("&nbsp;&nbsp;"));
this.Controls.Add(updateButton);
base.OnInit (e);
}
private void updateButton_Click(object sender, EventArgs e)
{
Properties["ExternalURL"] = urlTextBox.Text;
}
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.