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

推荐订阅源

Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
雷峰网
雷峰网
J
Java Code Geeks
G
Google Developers Blog
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
L
LangChain Blog
人人都是产品经理
人人都是产品经理
GbyAI
GbyAI
Vercel News
Vercel News
S
SegmentFault 最新的问题
Engineering at Meta
Engineering at Meta
H
Hackread – Cybersecurity News, Data Breaches, AI and More
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
Y
Y Combinator Blog
博客园_首页
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
A
About on SuperTechFans
B
Blog
Microsoft Security Blog
Microsoft Security 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