当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 现有一个对话框,想把一个exe文件嵌入到对话框中如何做? 现我是用::shellexecute,再findowwindow,再modifystyle,再setwindowpos 使其看起来就像是一个程序一样.但仍有很大问题.比如切换时. 请问是否有什么办法可以像建立一个子对话框一样可以嵌入的办法呢? ......
    摘要: 怎么校验身份证的合法性? 怎么校验军官证的合法性? 怎么校验护照的合法性? ......


得到XML子节点的属性值

XmlDocument   doc   =   new   XmlDocument();  
  Page   Page   =   new   System.Web.UI.Page();  
  doc.Load(Page.Server.MapPath("Language.xml"));  
  XmlNode   child   =   doc.SelectSingleNode("//"+StringName);  
  int   count   =   child.ChildNodes.Count;  
  string[][]   Arr   =   new   string[2][];  
  for   (int   i=0;i<child.ChildNodes.Count;i++)  
  {  
  if   (child   !=   null)  
  {  
  if   (child.HasChildNodes)    
  {  
  Arr[1][count]   =   child.ChildNodes.Item(count).InnerText;  
  Arr[2][count]   =   节点的value属性的值;  
  return   Arr;  
  }  
  else  
  {  
  return   Arr;  
  }  
  }  
  else  
  {  
  return   Arr;  
  }  
  }  
   
  Arr[2][count]不知道怎么写了??

NO.1   作者: yi63

用XMLpath找到子节点


    摘要: 请指教 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE