|
12 | 12 | import csharp |
13 | 13 |
|
14 | 14 | string prefix(string typename) { |
15 | | - (typename = "System.Web.UI.WebControls.Label" and result = "lbl") |
| 15 | + typename = "System.Web.UI.WebControls.Label" and result = "lbl" |
16 | 16 | or |
17 | | - (typename = "System.Web.UI.WebControls.TextBox" and result = "txt") |
| 17 | + typename = "System.Web.UI.WebControls.TextBox" and result = "txt" |
18 | 18 | or |
19 | | - (typename = "System.Web.UI.WebControls.Button" and result = "btn") |
| 19 | + typename = "System.Web.UI.WebControls.Button" and result = "btn" |
20 | 20 | or |
21 | | - (typename = "System.Web.UI.WebControls.LinkButton" and result = "btn") |
| 21 | + typename = "System.Web.UI.WebControls.LinkButton" and result = "btn" |
22 | 22 | or |
23 | | - (typename = "System.Web.UI.WebControls.ImageButton" and result = "ibtn") |
| 23 | + typename = "System.Web.UI.WebControls.ImageButton" and result = "ibtn" |
24 | 24 | or |
25 | | - (typename = "System.Web.UI.WebControls.Hyperlink" and result = "hpl") |
| 25 | + typename = "System.Web.UI.WebControls.Hyperlink" and result = "hpl" |
26 | 26 | or |
27 | | - (typename = "System.Web.UI.WebControls.DropDownList" and result = "cmb") |
| 27 | + typename = "System.Web.UI.WebControls.DropDownList" and result = "cmb" |
28 | 28 | or |
29 | | - (typename = "System.Web.UI.WebControls.ListBox" and result = "lst") |
| 29 | + typename = "System.Web.UI.WebControls.ListBox" and result = "lst" |
30 | 30 | or |
31 | | - (typename = "System.Web.UI.WebControls.Datagrid" and result = "dgr") |
| 31 | + typename = "System.Web.UI.WebControls.Datagrid" and result = "dgr" |
32 | 32 | or |
33 | | - (typename = "System.Web.UI.WebControls.Datalist" and result = "dtl") |
| 33 | + typename = "System.Web.UI.WebControls.Datalist" and result = "dtl" |
34 | 34 | or |
35 | | - (typename = "System.Web.UI.WebControls.Repeater" and result = "rpt") |
| 35 | + typename = "System.Web.UI.WebControls.Repeater" and result = "rpt" |
36 | 36 | or |
37 | | - (typename = "System.Web.UI.WebControls.CheckBox" and result = "chk") |
| 37 | + typename = "System.Web.UI.WebControls.CheckBox" and result = "chk" |
38 | 38 | or |
39 | | - (typename = "System.Web.UI.WebControls.CheckBoxList" and result = "chklst") |
| 39 | + typename = "System.Web.UI.WebControls.CheckBoxList" and result = "chklst" |
40 | 40 | or |
41 | | - (typename = "System.Web.UI.WebControls.RadioButtonList" and result = "radlst") |
| 41 | + typename = "System.Web.UI.WebControls.RadioButtonList" and result = "radlst" |
42 | 42 | or |
43 | | - (typename = "System.Web.UI.WebControls.RadioButton" and result = "rad") |
| 43 | + typename = "System.Web.UI.WebControls.RadioButton" and result = "rad" |
44 | 44 | or |
45 | | - (typename = "System.Web.UI.WebControls.Image" and result = "img") |
| 45 | + typename = "System.Web.UI.WebControls.Image" and result = "img" |
46 | 46 | or |
47 | | - (typename = "System.Web.UI.WebControls.Panel" and result = "pnl") |
| 47 | + typename = "System.Web.UI.WebControls.Panel" and result = "pnl" |
48 | 48 | or |
49 | | - (typename = "System.Web.UI.WebControls.PlaceHolder" and result = "plh") |
| 49 | + typename = "System.Web.UI.WebControls.PlaceHolder" and result = "plh" |
50 | 50 | or |
51 | | - (typename = "System.Web.UI.WebControls.Calendar" and result = "cal") |
| 51 | + typename = "System.Web.UI.WebControls.Calendar" and result = "cal" |
52 | 52 | or |
53 | | - (typename = "System.Web.UI.WebControls.AdRotator" and result = "adr") |
| 53 | + typename = "System.Web.UI.WebControls.AdRotator" and result = "adr" |
54 | 54 | or |
55 | | - (typename = "System.Web.UI.WebControls.Table" and result = "tbl") |
| 55 | + typename = "System.Web.UI.WebControls.Table" and result = "tbl" |
56 | 56 | or |
57 | | - (typename = "System.Web.UI.WebControls.RequiredFieldValidator" and result = "rfv") |
| 57 | + typename = "System.Web.UI.WebControls.RequiredFieldValidator" and result = "rfv" |
58 | 58 | or |
59 | | - (typename = "System.Web.UI.WebControls.CompareValidator" and result = "cmv") |
| 59 | + typename = "System.Web.UI.WebControls.CompareValidator" and result = "cmv" |
60 | 60 | or |
61 | | - (typename = "System.Web.UI.WebControls.RegularExpressionValidator" and result = "rev") |
| 61 | + typename = "System.Web.UI.WebControls.RegularExpressionValidator" and result = "rev" |
62 | 62 | or |
63 | | - (typename = "System.Web.UI.WebControls.CustomValidator" and result = "csv") |
| 63 | + typename = "System.Web.UI.WebControls.CustomValidator" and result = "csv" |
64 | 64 | or |
65 | | - (typename = "System.Web.UI.WebControls.ValidationSummary" and result = "vsm") |
| 65 | + typename = "System.Web.UI.WebControls.ValidationSummary" and result = "vsm" |
66 | 66 | or |
67 | | - (typename = "System.Web.UI.WebControls.XML" and result = "xml") |
| 67 | + typename = "System.Web.UI.WebControls.XML" and result = "xml" |
68 | 68 | or |
69 | | - (typename = "System.Web.UI.WebControls.Literal" and result = "lit") |
| 69 | + typename = "System.Web.UI.WebControls.Literal" and result = "lit" |
70 | 70 | or |
71 | | - (typename = "System.Web.UI.WebControls.Form" and result = "frm") |
| 71 | + typename = "System.Web.UI.WebControls.Form" and result = "frm" |
72 | 72 | or |
73 | | - (typename = "System.Web.UI.WebControls.Frame" and result = "fra") |
| 73 | + typename = "System.Web.UI.WebControls.Frame" and result = "fra" |
74 | 74 | or |
75 | | - (typename = "System.Web.UI.WebControls.CrystalReportViewer" and result = "crvr") |
| 75 | + typename = "System.Web.UI.WebControls.CrystalReportViewer" and result = "crvr" |
76 | 76 | or |
77 | | - (typename = "System.Web.UI.HtmlControls.TextArea" and result = "txa") |
| 77 | + typename = "System.Web.UI.HtmlControls.TextArea" and result = "txa" |
78 | 78 | or |
79 | | - (typename = "System.Web.UI.HtmlControls.FileField" and result = "fle") |
| 79 | + typename = "System.Web.UI.HtmlControls.FileField" and result = "fle" |
80 | 80 | or |
81 | | - (typename = "System.Web.UI.HtmlControls.PasswordField" and result = "pwd") |
| 81 | + typename = "System.Web.UI.HtmlControls.PasswordField" and result = "pwd" |
82 | 82 | or |
83 | | - (typename = "System.Web.UI.HtmlControls.Hidden" and result = "hdn") |
| 83 | + typename = "System.Web.UI.HtmlControls.Hidden" and result = "hdn" |
84 | 84 | or |
85 | | - (typename = "System.Web.UI.HtmlControls.Table" and result = "tbl") |
| 85 | + typename = "System.Web.UI.HtmlControls.Table" and result = "tbl" |
86 | 86 | or |
87 | | - (typename = "System.Web.UI.HtmlControls.FlowLayoutPanel" and result = "flp") |
| 87 | + typename = "System.Web.UI.HtmlControls.FlowLayoutPanel" and result = "flp" |
88 | 88 | or |
89 | | - (typename = "System.Web.UI.HtmlControls.GridLayoutPanel" and result = "glp") |
| 89 | + typename = "System.Web.UI.HtmlControls.GridLayoutPanel" and result = "glp" |
90 | 90 | or |
91 | | - (typename = "System.Web.UI.HtmlControls.HorizontalRule" and result = "hr") |
| 91 | + typename = "System.Web.UI.HtmlControls.HorizontalRule" and result = "hr" |
92 | 92 | } |
93 | 93 |
|
94 | 94 | from Field f, RefType t, string name, string prefix |
|
0 commit comments