我想在运行时动态更改SiteMapNode的颜色。
我要从母版页更改它。
代码的某些部分是这样的:
C1.Web.Command.C1WebMenuItem item = new C1.Web.Command.C1WebMenuItem(); C1.Web.Command.C1WebMenuItem subitem = new C1.Web.Command.C1WebMenuItem(); C1.Web.Command.C1WebMenuItem msgitem = new C1.Web.Command.C1WebMenuItem(); C1.Web.Command.C1WebItemCollection collection = C1WebMenu1.Items;
if (collection.Count > 0) { item = (C1WebMenuItem)C1WebMenu1.Items[0]; item.CreateChildGroup(); msgitem = (C1WebMenuItem)C1WebMenu1.Items[13]; msgitem.Text = msgitem.Text + "(1)"; ----------------- i want to change the color of msgitem.text------------ if (Session["intUserId"] != null) { dsAccessed = objSASiteMaster.smaSPGetLastAccessedCases(Session["intUserId"].ToString()); if (dsAccessed.Tables.Count > 0) { if (dsAccessed.Tables[0].Rows.Count > 0) { for (int i = 0; i < dsAccessed.Tables[0].Rows.Count; i++) { DataSet dsCase = objSASiteMaster.GetCaseByCaseID(dsAccessed.Tables[0].Rows[i]["lacnCaseID"].ToString()); using (DataTable dtCase = dsCase.Tables[0]) { if (dtCase.Rows[0]["GroupID"].ToString() == "149")