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

推荐订阅源

N
Netflix TechBlog - Medium
V
Vulnerabilities – Threatpost
Google Online Security Blog
Google Online Security Blog
Hugging Face - Blog
Hugging Face - Blog
L
LINUX DO - 热门话题
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
D
Docker
C
Cyber Attacks, Cyber Crime and Cyber Security
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
T
Tenable Blog
P
Privacy International News Feed
Google DeepMind News
Google DeepMind News
小众软件
小众软件
Cisco Talos Blog
Cisco Talos Blog
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
A
Arctic Wolf
C
Cybersecurity and Infrastructure Security Agency CISA
C
Cisco Blogs
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
The Hacker News
The Hacker News
Project Zero
Project Zero
AWS News Blog
AWS News Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threatpost
V
Visual Studio Blog
The GitHub Blog
The GitHub Blog
The Cloudflare Blog
Last Week in AI
Last Week in AI
Jina AI
Jina AI
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
MongoDB | Blog
MongoDB | Blog
U
Unit 42
Scott Helme
Scott Helme
A
About on SuperTechFans
WordPress大学
WordPress大学
F
Fortinet All Blogs
大猫的无限游戏
大猫的无限游戏
G
GRAHAM CLULEY
Latest news
Latest news
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
Schneier on Security

博客园 - 光阴的故事-SKY

基于.NET平台常用的框架整理 My 2016 如何做好一个保安队长。 Jax 博文阅读密码验证 - 博客园 博文阅读密码验证 - 博客园 博文阅读密码验证 - 博客园 我的2014 teee 师说 韩愈 荀子·劝学 parallelActivity EventHandlingScopeActivity 获取容器内的所有节点 workflow 角色的使用关键 ConditionedActivityGroup ThrowActivity 浅谈 Workflow 的角色控制的优势与局限 自定义用户跟踪
数据库的数据 转化为XML 在页面上浏览
光阴的故事-SKY · 2007-12-25 · via 博客园 - 光阴的故事-SKY

html 元素:
<td align="left"><input type="button" value="查询" onclick="Search();"/></td>
<td colspan="6" align="center" id="Report"></td>js元素:
        function Search()
        {
            var SearchDateTime=document.form1.SearchDateTime.value;
            var Site=document.form1.SiteCode.value;
            var xmlString = 命名空间.当前页面的cs文件.Search(SearchDateTime,Site).value;
            if(xmlString!=null)
            {
             var xml = new ActiveXObject("Microsoft.XMLDOM");      
             xml.async = false;
             xml.loadXML(xmlString);      
             Fill(document.getelementbyID("Report"),xml,"http://www.cnblogs.com/XSL/test.xsl");
         }
         else
         {
             document.getelementbyID("Report").innerText="没有符合条件的数据";
         }
        }
 function Fill(control,xml,xslfile){
 control.innerHTML="";
 var xsl = new ActiveXObject("Microsoft.XMLDOM");
 xsl.async = false;
 xsl.load(xslfile);
 if(xml!=null) control.innerHTML=xml.transformNode(xsl);
 else alert("xml为空");
 var Alltd=control.getElementsByTagName("td");
 for(var i=0;i<Alltd.length;i++)if(Alltd[i].innerHTML=="")Alltd[i].innerText=" ";
 ReSize();
}
function ReSize()
{
 if( parent.location.href!=window.location.href )
 {
  var AllIframe=parent.document.getElementsByTagName("IFRAME");
  for(var i=0;i<AllIframe.length;i++)
  {
   if(AllIframe[i].contentWindow==window)
   {
    AllIframe[i].height=document.body.scrollHeight;
    parent.ReSize();
   }
  }
 }
}

cs 元素

        [AjaxMethod]
        public string Search(string beginDate,string S_ST)
        {
               
              DataSet ds = GetDate(_dd, dd);
               
              return ds.GetXml();
          
        }