拼了所有点数请教一个问题
我用treeview作的webform,现在遇到一个问题,就是在右击弹出菜单的时候怎么获得它选择的node ID?
或者是怎么在treeview中在增加一个del按钮.谢谢...
------解决方案--------------------
asp 三级树形菜单
<script language="JavaScript">
function openmu(td,img)
{
if (td.style.display=="none")
{td.style.display="";
img.src="img/T05.gif";
}
else
{td.style.display="none";
img.src="img/T02.gif";
}
}
</script>
<table cellspacing=0 cellpadding=0 width=180 border=0>
<tbody>
<tr>
<td> <img height=30 src="../../profile/main_23.gif"
width=180> </td>
</tr>
<tr>
<td background="../../profile/main_29.gif"> <table width="170" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> <%
set menu_rs=Server.CreateObject("ADODB.RecordSet")
menu_sql="select * from ific_news_sort where ParentID=11 and id <>ParentID and Sign=0 order by Orders"
menu_rs.open menu_sql,conn,1,1
if menu_rs.RecordCount>0 then
%> <%
a=0
do while (not menu_rs.eof)%>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td align="left" valign="top">
<table width="145" border="0" cellpadding="0" cellspacing="0" class="mttext">
<tr>
<td> <div align="left">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mttext">
<tr>
<td height="22" id=ern <%=a%> style="cursor: hand" onMouseUp="openmu(td <%=a%>,img <%=a%>);" language=JavaScript l> <img id="img <%=a%>" src="../../images/bar.gif" width="10" height="10">
<font color="#FF0000" size="2"> <%=menu_rs("Newsort")%> </font> </td>
</tr>
<tr>
<td id="td <%=a%>" style="display: none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td align="left" valign="top">
<%
set lbrs=server.CreateObject("adodb.recordset")
lbrs.open "select * from purpose where newsort="&menu_rs("id"),conn,1,1
if lbrs.eof then
%>
<div class="bai" align="left">
<font color="#9999FF"> <img src="img/help_1.gif" width="14" height="14">
没有任何类别 </font> </div> </td> <tr>
<%
else
do while not lbrs.eof
%>
<tr>
<td> <div class="bai"> <font color="#9999FF"> <img src="../../images/dot.gif" width="12" height="12">
<a href="open.asp?id= <%=lbrs("id")%>"> <%=lbrs("title")%> </a> </font> </di