如题
解决方案 »
- c#自动提交网页表单,并获取提交后的页面的内容
- 关于内容中包含js 显示的问题
- 如何获取IQueryable里面某一个元素
- 高级要求,大家来看看怎么实现
- 提一个比较难的算法!高手进来瞧瞧
- 如何从 runat=server 的form中获得html控件的值??
- 梦凌制作的仿CSDN.NET论坛?哪位贤兄有源码,给我一份。谢谢,顶者有分
- 如何让一个TextBox只能输入数字和 +、- 号.
- 一个简单的问题,关于WebControls.TextBox和HtmlControls.HtmlInputText
- 怎么获得动态生成的dropdownlist中所选择的内容值?
- 改变WEB.CONFIG里面appsettings里定义的字符串的值的问题
- ◆◇◆ 急,在线等! 求一个提取网页中 src="*" 的正则表达式! ◆◇◆
if(e.Item.ItemType==ListItemType.Item||还有那个交替项)
e.Item.Attributes.Add("onmouseover","javascript:this.bgcolor='red'");
e.Item.Attributes.Add("onmouselevel","javascript:this.bgcolor='原来的颜色'");
可以试试看
createtree()
End SubPrivate Sub createtree()
Dim tnd As New TreeNode
Dim tndChild As New TreeNode tnd.Text = "root"
tnd.DefaultStyle.CssText = "color:#ffffff;background-color:#cc0000;"
tnd.HoverStyle.CssText = "color:#ffffff;background-color:#cc0000;"
tnd.SelectedStyle.CssText = "color:#ffffff;background-color:#000000;" tndChild.Text = "Child"
tndChild.DefaultStyle.CssText = "color:#ffffff;background-color:#0000ff;"
tndChild.HoverStyle.CssText = "color:#ffffff;background-color:#0000ff;"
tndChild.SelectedStyle.CssText = "color:#ffffff;background-color:#000000;" tnd.Nodes.Add(tndChild)
TreeView1.Nodes.Add(tnd) TreeView1.ExpandLevel = 5 PlaceHolder1.Controls.Add(New LiteralControl("<div style='background-color:#ffcc99'>"))
PlaceHolder1.Controls.Add(TreeView1)
PlaceHolder1.Controls.Add(New LiteralControl("</div>"))End Sub
<iewc:TreeView id="TreeView1" runat="server"></iewc:TreeView>
<asp:PlaceHolder id="PlaceHolder1" runat="server"></asp:PlaceHolder>
</form>
{
TreeCtrl.Attributes.Add("onmouseover", "this.className='MouseOver'");
TreeCtrl.Attributes.Add("onmouseout", "this.className='MouseOut'");
}