asp 树,c# 查找 指定节点
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace WA.IBMS.FindTreeNode //lxh 2008-9-16
{
/// <summary>
///SelectTreeNode 的摘要说明
/// </summary>
public class SelectTreeNode
{
public SelectTreeNode()
{
//
//TODO: 在此处添加构造函数逻辑
//
}
/// <summary>
/// 查找指定节点
/// </summary>
/// <param name="tnParent">节点</param>
/// <param name="strValue">值</param>
/// <returns></returns>
public TreeNode Find_Node(TreeNode tnParent, string strValue)
{
TreeNode treeNode2 = new TreeNode();
string venueCode = "";
if (tnParent == null) return null;
if (tnParent.Value == strValue) return tnParent;
&
相关文档:
public static void Main()
{
WebRequest req = WebRequest.Create("http://blog.csdn.net/xiaofengsheng");
try
& ......
<%
'true=是邮件;false=不是;
Function validate(ByVal str)
Dim temp,reg
Set reg = new regexp
reg.ignorecase=true
reg.global=true
reg.pattern = "^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
validate = reg.test(Trim(str))
Set reg = Nothing
End Function
'************************ ......
COM接口VC实现,接口:
[id(1), helpstring("method Test")] HRESULT Test([in] BSTR strInputA, [in] BSTR strInputB, [out,retval] VARIANT* result);
ASP调用:
Set objCompInfo =server.CreateObject("组件在系统中的名字")
  ......
1 目的
2 范围
3 注释规范
3.1 概述
3.2 自建代码文件注释
3.3 模块(类)注释
3.4 类属性注释
3.5 方法注释
3.6 代码间注释
4   ......
文件名:Awa_temp.Class.asp
<%
'Crazy蛙!模板操作类
'作者Crazy~蛙! QQ:379969387 欢迎交流
'版本V1.0;
Class AwaTemp
Public aa
Private FSO,StrTemp,FileData,GetDatas,StrHtmlName,htmlwrite,StrLabel,StrLValues
'===========================================
'构造函数_初始化FSO组件
'========= ......