你是说设计时不能在页面显示吧~!就这样vs.net就是不能显示
解决方案 »
- JS返回False
- 请教各位兄弟一下,谁有合约管理的系统拿出来分享一下!
- 请教在asp.net中如何获取时间,日期 谢谢!
- system.io对应的是哪个dll呀
- 保存图片和读取图片到固定地方的问题(Asp.Net)
- DataGrid控件没用分页,为了使这个控件耗费尽可能低的资源,我该关闭哪些属性呢
- 请问,用dataGrid做分页的时候,怎么能让不够分页数目的时候显示空行呢?
- .net中怎样得到访问者的MAC,硬盘序列号?
- 有关RegularExpressionValidator的问题!
- datagrid遇到的问题,我使用datagrid翻页,报错: Type 'System.Web.UI.WebControls.DataGrid' does not have a property named 'property
- 我的aspx文件在ASP.NET Web Matrix中打开就不能显示中文了,怎么回事?
- 百分相送:我应该按照怎样的路径学习ASP.NET?
imports system.web
imports system.web.ui
imports system.collections
namespace mycontrols
public class simpleRotator2:inherits control
public items as new arraylist()
protected overrides sub addParsedSubObject(obj as object)
if (typeof obj is rotatorItem2)
items.add(obj)
end if
end sub
protected overrides sub render(objTextWriter as htmlTextWriter)
dim objrandom as new random
dim intRanIndex as integer
dim objSelectedItem as rotatorItem2 if items.count>0 then
intranindex=objrandom.next(items.count-1)
objSelectedItem=ctype(items(intranindex),rotatoritem2)
objTextWriter.write(objselecteditem.text)
'objTextWriter.write("test")
end if
end sub
end class
public class rotatorItem2:inherits control
public text as string
end class
end namespace
protected mycontrols simpleRotator2
应该就可以了