使用TOC重定向到所选部分(目录) [英] Redirect to the selected part using TOC(Table of content)

查看:80
本文介绍了使用TOC重定向到所选部分(目录)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的Treeview ...



AA

------ BB

------ CC

***** ------ CC的第3个孩子

DD

- ----- EE

------ FF



我使用树视图作为TOC(目录)

我的要求是当我们点击将重定向到该网页中特定部分的任何节点时(无论名称等于html页面中的节点名称应该去哪些地方)。 。



先生我试过这样......



I have a Treeview like this...

AA
------BB
------CC
*****------3rd Child Of CC
DD
------EE
------FF

I am using this Tree View as a TOC(Table of content)
My requirement is when we click on any nodes that will redirect to the particular section in that web page(wherever the name is equal to the node name in the html page should go to that places)..

Sir I tried like this...

protected void trvToc_SelectedNodeChanged(object sender, EventArgs e)
{
    try
    {
        string SlelectedText = trvToc.SelectedNode.Text;
        StringBuilder sb=PageContent;///I have complete html page part in this sb

    }
    catch (Exception Ex)
    {

        throw Ex;
    }
}





现在我想知道如何将光标的位置更改为哪个部分等于节点名称..

请帮帮我先生。

谢谢



Now i want to know how to change the location of the curser to the section which is equal to the node name..
Help me pls sir.
Thank you

推荐答案

它是在文档 [ ^ ]。


这篇关于使用TOC重定向到所选部分(目录)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆