Today, I used the coalesys webmenu for Asp.net control and found that the support for Chinese characters was too poor. It was garbled and dizzy! This is how others solve it!
Private void page_load (Object sender, system. eventargs E)
{
String Path = server. mappath (".");
If (! Path. endswith ("Web "))
Path = server. mappath ("../");
String pathforwms = path + "\ usercontrol \ workermenu. WMS ";
Workermenu. loadstate (pathforwms );
Initmenu ();
}
Private void initmenu ()
{
Workermenu. itemfont. size = "12px ";
Workermenu. itemfont. Family = "Ms sans serif ";
Workermenu. Groups [0]. items [0]. Caption = "querying Department Information ";
Workermenu. Groups [0]. items [1]. Caption = "add Department Information ";
Workermenu. Groups [0]. items [2]. Caption = "Modify Department Information ";
Workermenu. Groups [0]. items [3]. Caption = "delete Department Information ";
Workermenu. Groups [1]. items [0]. Caption = "querying instructor information ";
Workermenu. Groups [1]. items [1]. Caption = "add instructor information ";
Workermenu. Groups [1]. items [2]. Caption = "Modify instructor information ";
Workermenu. Groups [1]. items [3]. Caption = "delete instructor information ";
Workermenu. Groups [2]. items [0]. Caption = "querying student information ";
Workermenu. Groups [2]. items [1]. Caption = "add student information ";
Workermenu. Groups [2]. items [2]. Caption = "Modify student information ";
Workermenu. Groups [2]. items [3]. Caption = "delete student information ";
Workermenu. groups [3]. items [0]. Caption = "querying account information ";
Workermenu. groups [3]. items [1]. Caption = "add subject information ";
Workermenu. groups [3]. items [2]. Caption = "Modify Subject Information ";
Workermenu. groups [3]. items [3]. Caption = "delete account information ";
Workermenu. groups [3]. items [5]. Caption = "add professional required subject information ";
Workermenu. groups [3]. items [6]. Caption = "querying professional required subject information ";
Workermenu. groups [3]. items [7]. Caption = "delete professional compulsory subject information ";
Workermenu. Groups [4]. items [0]. Caption = "Required Course information ";
Workermenu. Groups [4]. items [0]. Group. items [0]. Caption = "query required courses ";
Workermenu. Groups [4]. items [0]. Group. items [1]. Caption = "add Required Course ";
Workermenu. Groups [4]. items [0]. Group. items [2]. Caption = "Modify Required Course ";
Workermenu. Groups [4]. items [0]. Group. items [3]. Caption = "delete Required Course ";
Workermenu. Groups [4]. items [1]. Caption = "elective course information ";
Workermenu. Groups [4]. items [1]. Group. items [0]. Caption = "querying electives ";
Workermenu. Groups [4]. items [1]. Group. items [1]. Caption = "add Elective Course ";
Workermenu. Groups [4]. items [1]. Group. items [2]. Caption = "Modify electives ";
Workermenu. Groups [4]. items [1]. Group. items [3]. Caption
]>