2013-11-20 60 views

回答

0

你可以用你的樹節點文本錨(<a>)元素的內部和rel='nofollow'值應用於錨一樣,此:

C#:

protected void TreeView1_TreeNodeDataBound(object sender, TreeNodeEventArgs e) 
{ 
    e.Node.Text = "<a rel='nofollow'>" + e.Node.Text + "</a>"; 
} 

VB.NET:

Protected Sub TreeView1_TreeNodeDataBound(sender As Object, e As TreeNodeEventArgs) 
    e.Node.Text = "<a rel='nofollow'>" & e.Node.Text & "</a>" 
End Sub 
+0

它沒有工作 。它導致 Other (12) 雖然我想的它像 Other (12)

+0

任何幫助球員在它 –

相關問題