Wat wil ik
Ik wil een click actie toevoegen aan een dropdownlist (hopelijk is dat een pre-drownlist actie)
Ik heb al het een en ander uitgezocht en mijn idee was een IbuttonControl toevoegen aan de basis klasse en deze on_click event afvangen. Maar de code reageert niet op mijn clicks..
Iemand een idee of help?
Mijn code
Ik wil een click actie toevoegen aan een dropdownlist (hopelijk is dat een pre-drownlist actie)
Ik heb al het een en ander uitgezocht en mijn idee was een IbuttonControl toevoegen aan de basis klasse en deze on_click event afvangen. Maar de code reageert niet op mijn clicks..
Iemand een idee of help?
Mijn code
C#:
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
| public class mvpComboBox : System.Web.UI.WebControls.DropDownList, IButtonControl { public bool blCausesValidation; public string strCommandArgument; public string CommandName; public string strPostBackUrl; public string strText; public string strValidationGroup; public string strCommandName; public event EventHandler Click; public event CommandEventHandler Command; protected override void OnLoad(EventArgs e ) { base.OnLoad(e); } bool IButtonControl.CausesValidation { get { return blCausesValidation; } set { blCausesValidation = value; } } string IButtonControl.CommandArgument { get { return strCommandArgument; } set { strCommandArgument = value; } } string IButtonControl.CommandName { get { return strCommandName; } set { strCommandName = value; } } string IButtonControl.PostBackUrl { get { return strPostBackUrl; } set { strPostBackUrl = value; } } string IButtonControl.Text { get { return strText; } set { strText = value; } } string IButtonControl.ValidationGroup { get { return strValidationGroup; } set { strValidationGroup = value; } } protected virtual void OnClick(Object sender, EventArgs e) { Click(sender, e); } } |