(希望有人能回答)怎么用javascript读取treeview的值和其父结点的值
发布时间:2011-06-22 16:49:52 文章来源:www.iduyao.cn 采编人员:星星草
(希望有人能回答)如何用javascript读取treeview的值和其父结点的值
用asp.net进行网页设计时,希望用javascript读取treeview的值和其父结点的值,然后放进页面的textbox中,应该怎么做啊,希望有人能回答我,谢谢了!
------解决方案--------------------
function GetNodeData()
{
indexid=TreeView1.clickedNodeIndex;
var data = TreeView1.getTreeNode(indexid).getAttribute( "NodeData ");
document.getElementById( 'TB13 ').value=data;
}
------解决方案--------------------
上,正解
C:\Inetpub\wwwroot\webctrl_client\1_0]\treeview.htc
里面你要属性,方法,都有
<public:component tagname=treeview literalcontent=true>
<public:attach event=oncontentready onevent= "oncontentready() " />
<public:attach event=ondocumentready onevent= "ondocumentready() " />
<public:attach event= "onscroll " onevent= "onScroll() " />
<public:event name= "onexpand " id= "_tvevtExpand " />
<public:event name= "oncollapse " id= "_tvevtCollapse " />
<public:event name= "onselectedindexchange " id= "_tvevtSelect " />
<public:event name= "oncheck " id= "_tvevtCheck " />
<public:event name= "onfirequeuedevents " id= "_tvevtFireQueuedEvents " />
<public:event name= "onnodebound " id= "_tvevtNodeBound " />
<public:event name= "onnodetypesbound " id= "_tvevtNodeTypesBound " />
<public:event name= "onhover " id= "_tvevtHover " />
<public:event name= "onunhover " id= "_tvevtUnhover " />
<public:property name= "clickedNodeIndex " GET= "getClickedNodeIndex " />
<public:property name= "defaultStyle " id= "_tvpropDefaultStyle " GET= "getDefaultStyle " PUT= "setDefaultStyle " />
<public:property name= "hoverStyle " id= "_tvpropHoverStyle " GET= "getHoverStyle " PUT= "setHoverStyle " />
<public:property name= "selectedStyle " id= "_tvpropSelectedStyle " GET= "getSelectedStyle " PUT= "setSelectedStyle " />
<public:property name= "childType " id= "_tvpropChildType " GET= "getChildType " PUT= "setChildType " />
<public:property name= "imageUrl " id= "_tvpropImageUrl " GET= "getImageUrl " PUT= "setImageUrl " />
<public:property name= "expandedImageUrl " id= "_tvpropExpandedImageUrl " GET= "getExpandedImageUrl " PUT= "setExpandedImageUrl " />
<public:property name= "selectedImageUrl " id= "_tvpropSelectedImageUrl " GET= "getSelectedImageUrl " PUT= "setSelectedImageUrl " />
<public:property name= "target " id= "_tvpropTarget " GET= "getTarget " PUT= "setTarget " />
<public:property name= "treeNodeSrc " id= "_tvpropTreeNodeSrc " GET= "getTreeNodeSrc " PUT= "setTreeNodeSrc " />
<public:property name= "treeNodeXsltSrc " id= "_tvpropTreeNodeXsltSrc " GET= "getTreeNodeXsltSrc " PUT= "setTreeNodeXsltSrc " />
<public:property name= "selectExpands " id= "_tvpropSelectExpands " GET= "getSelectExpands " PUT= "setSelectExpands " />
<public:property name= "expandLevel " id= "_tvpropExpandLevel " GET= "getExpandLevel " PUT= "setExpandLevel " />
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
页面基类PageBase.cs代码,实现系统进入权限判断 这样思路有问题吗?
pagebase.cs 代码
C# code
public class PageBase:System.We...
-
linq中的表连接语句???
例如:album,artist,genre这三个表的连接语句。。谢谢
------解决方案--------------------
public PagedList<...
-
为什么Repeater控件生成的HTML有很多空行?
效果如下,每个超链接之后都自动换行。
<a target="_blank" href='http://v.gamefy.cn/v...
-
关于模式窗口关闭的问题(在线等,解答立刻结贴给分)
功能什么都做完了。问题有二:
1.关闭的时候父窗口不刷新。于是我在吊用模式窗口的...
-
ASP.NET 中为什么要把相对路径处理成 绝对路径
处理函数如下:
C# code
// Builds an absolute URL
private static strin...
-
asp.net里面像QQ相册那样列表然后预览的jquery特效
asp.net里面像QQ相册那样列表然后预览的jquery特效
谁有这样的完整例子,...
-
求高手共同破解JQGrid 4.1 for Asp.net(比GridView强大)
软件名称:jqSuite(此插件比asp.net自带GridView强大的多,但只能使用30天)
...
-
急!!!在线等 asp.net中页面传值刷新不跳转新建窗口
C# code
<asp:TemplateField HeaderText="操作管...
-
请教:asp.net 导出word文件思路
我要从数据库取数据,写到word文件里,请教高手指点.多谢了!
------解决方案--------------------...
-
jqGrid4定义按钮查询(用过jqGrid的高手请进,在线等)
如图,json格式数据已加载,如果不用JQGrid底部工具栏上查询按钮查询,用最上面自己...