惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Blog — PlanetScale
Blog — PlanetScale
博客园 - Franky
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
D
Docker
Google DeepMind News
Google DeepMind News
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
N
Netflix TechBlog - Medium
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
H
Help Net Security
B
Blog
宝玉的分享
宝玉的分享

博客园 - 风语战士

asp.net 命名规范 CSS 色彩值... 请问 CType和DirectCast函数有何区别 soundex 从数据库中存取二进制数据并显示 - 风语战士 - 博客园 vs2005 web.config大全 javascript中showModalDialog和showModelessDialog的使用 设为主页 - 风语战士 - 博客园 CSS样式表 截取字付串 表达是做为参数验证用 DataList翻页 .net安全防止写不规范字付 引用一个falsh使它显示出来 删除成功后.添加前.可判断 弹出另一页面 (转)VS2005(c#)项目调试问题解决方案集锦 常用正则表达式 在ASP.NET中使用Session常见问题集锦
RadMenu菜单的父节指定image - 风语战士 - 博客园
风语战士 · 2008-03-06 · via 博客园 - 风语战士

RadMenu菜单的父节指定image
dim statusIcon as string="icon.jpg"
If statusIcon <> String.Empty Then
  Dim rootItem As New RadMenuItem
  rootItem.ImageUrl = statusIcon
  rootItem.ToolTip = statusIconText
  rootItem.Attributes("onclick") = "return false;"
  Dim childItem As New RadMenuItem
  childItem.Text = New AOSpine.Business.Terms().GetField("STATUS_PENDING")
  childItem.Value = DirectCast(e.Item.DataItem, DataRowView)("EventNumber").ToString & Systems.SplitString & DirectCast

(e.Item.DataItem, DataRowView)("DayNumber").ToString & Systems.SplitString & DirectCast(e.Item.DataItem, DataRowView)

("ItemNumber").ToString & Systems.SplitString & "STATUS_PENDING"
  rootItem.Items.Add(childItem)
  childItem = New RadMenuItem
  childItem.Text = New AOSpine.Business.Terms().GetField("STATUS_ACCEPTED")
  childItem.Value = DirectCast(e.Item.DataItem, DataRowView)("EventNumber").ToString & Systems.SplitString & DirectCast

(e.Item.DataItem, DataRowView)("DayNumber").ToString & Systems.SplitString & DirectCast(e.Item.DataItem, DataRowView)

("ItemNumber").ToString & Systems.SplitString & "STATUS_ACCEPTED"
  rootItem.Items.Add(childItem)
  childItem = New RadMenuItem
  childItem.Text = New AOSpine.Business.Terms().GetField("STATUS_DECLINED")
  childItem.Value = DirectCast(e.Item.DataItem, DataRowView)("EventNumber").ToString & Systems.SplitString & DirectCast

(e.Item.DataItem, DataRowView)("DayNumber").ToString & Systems.SplitString & DirectCast(e.Item.DataItem, DataRowView)

("ItemNumber").ToString & Systems.SplitString & "STATUS_DECLINED"
  rootItem.Items.Add(childItem)
  DirectCast(e.Item.FindControl("radStatus"), RadMenu).Items.Add(rootItem)
End If