2 // System.Web.UI.WebControls.ControlParameter
5 // Ben Maurer (bmaurer@users.sourceforge.net)
11 using System.Collections;
12 using System.Collections.Specialized;
15 namespace System.Web.UI.WebControls {
16 public class ControlParameter : Parameter {
18 public ControlParameter () : base ()
22 protected ControlParameter (ControlParameter original) : base (original)
24 this.ControlID = original.ControlID;
25 this.PropertyName = original.PropertyName;
28 public ControlParameter (string name, string controlID) : base (name)
30 ControlID = controlID;
33 public ControlParameter (string name, string controlID, string propertyName) : base (name)
35 ControlID = controlID;
36 PropertyName = propertyName;
39 public ControlParameter (string name, TypeCode type, string controlID, string propertyName) : base (name, type)
41 ControlID = controlID;
42 PropertyName = propertyName;
45 protected override Parameter Clone ()
47 return new ControlParameter (this);
51 protected override object Evaluate (Control control)
53 throw new NotImplementedException ();
56 public string ControlID {
58 string s = ViewState ["ControlID"] as string;
65 if (ControlID != value) {
66 ViewState ["ControlID"] = value;
67 OnParameterChanged ();
72 public string PropertyName {
74 string s = ViewState ["PropertyName"] as string;
82 if (PropertyName != value) {
83 ViewState ["PropertyName"] = value;
84 OnParameterChanged ();