比如
dim UserName = e.Cookies("username")
With wb.AddGrid("","g1")
if UserName = "张三" then
.Add("c1","Button", "./images/button.png").Attribute = "onclick='javascript:alert(""张三你单击了我!"")'"
elseif UserName = "李四" then
.Add("c1","Button", "./images/button2.png").Attribute = "onclick='javascript:alert(""李四你单击了我!"")'"
else
.Add("c1","Button", "./images/button3.png").Attribute = "onclick='javascript:alert(""你谁谁谁单击了我!"")'"
end if
.Add("c2","Cell", "./images/cell.png", "http://www.foxtable.com")
‘……
End With
[此贴子已经被作者于2019/12/17 12:01:47编辑过]