ASP.net 自制TableTree实现
using System;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
namespace UserControl.UI
{
/// <summary>
/// TreesTable 的摘要说明。
/// </summary>
public class TreesTable
{
public interface iTrees
{
void AddNode(Trees node);
Control NodeItem{get;}
Control Title{get;set;}
}
public class Trees:Control,iTrees
{
private Control m_TreeNodeCollect;
private Control m_TitleControl;
private string m_TextTitle;
private HtmlTable m_HtmlTabe;
private string m_script;
private const string SCRIPT="<script language='javascript'>{0}</script>";
public Trees()
{
m_TreeNodeCollect = new Control();
m_HtmlTabe = new HtmlTable();
//Java script
m_script = string.Format(SCRIPT,
"function ShowObject(showObjName){var showObj1=showObjName; if(showObj1.style.display=='none'){showObj1.style.display='block';}else{showObj1.style.display='none';}}");
}
public Trees(string title)
{
m_TreeNodeCollect = new Control();
m_HtmlTabe = new HtmlTable();
//Java script
m_script = string.Format(SCRIPT,
"function ShowObject(showObjName){var showObj1=showObjName; if(showObj1.style.display=='none'){showObj1.style.display='block';}else{showObj1.style.display='none';}}");
TextTitle = title;
}
相关文档:
回车点击按钮
只需在.aspx页面代码中加入一段JavaScript即可:
<script type="text/javascript" language="javascript">
document.onkeydown = Check;
function Check(){ &n ......
Trustwave's SpiderLabs Security Advisory TWSL2010-001:
Multiplatform View State Tampering Vulnerabilities
Published: 2010-02-08 Version: 1.1
SpiderLabs has documented view state tampering
vulnerabilities in three products from separate vendors.
View states are used by some web application frame ......
< align=middle src=http://player.youku.com/player.php/sid/XMTQ3NTE2NzIw/v.swf width=480 height=400 type=application/x-shockwave-flash allowScriptAccess="sameDomain" quality="high" mce_src="http://player.youku.com/player.php/sid/XMTQ3NTE2NzIw/v.swf"> ......
vs2005 没有ASP.NET WEB应用程序(Application)的解决方案
vs2005 sp1下载地址
2009-02-21 09:08
VS80sp1-KB926604-X86-CHS.exe
WebApplicationProjectSetup.msi
相关文章:
最近帮同事安装了Vs2005和sp1,发现根本打不开原来的程序,新建项目中没有ASP.NET WEB应用程序,同事的系统是windows 2003,而在wi ......
这类问题通常在整合或二次开发ASP网站时遇到。按常理来说,浏览器的Cookie存放在客户端,实际上与服务端使用什么语言无关,但我们在实际操作过程中,总会遇到一些意想不到的问题。
1. 当ASP写的Cookie的Key中带有下划线,例如我们在ASP中这样设置Cookie:
......