خرید بک لینک

Vote count: 0

i geting tow string from htmlcode using html-agility-pack here is how i get the first string

 Dim links = htmlDoc1.DocumentNode.SelectNodes("//*[@id='listone']")

and then get the Attributes

Dim Attributes = links.Cast(Of HtmlNode).Select(Function(x) x.GetAttributeValue("href", ""))

and

Dim linklist1 As String = String.Join(Environment.NewLine, Attributes)
    Dim string1 As String() = linklist1.Split(New String() {Environment.NewLine},
                                   StringSplitOptions.None)

the same thing for the second string

 Dim links2 = htmlDoc1.DocumentNode.SelectNodes("//*[@id='listone']")
 Dim Attributes2 = links.Cast(Of HtmlNode).Select(Function(x) x.IerText)
 Dim linklist2 As String = String.Join(Environment.NewLine, Attributes)
 Dim string2 As String() = linklist1.Split(New String() {Environment.NewLine},
                                   StringSplitOptions.None)

sow know i got tow array of string string1 and string2 correct me if im wrong

i want to add these tow to my listviwe ech string in one column
opposite other like this :

cloumn1 \\\ cloumn 2

\\\\\\\\\\\\\\\\\\

string1 \\\\ string2

i try

For Each s As String In  string1
            Dim livv As New ListViewItem
            livv.SubItems.Add(t)
            ListView1.Items.Add(livv)
        Next

and

ListView1.Items.AddRange(linklis2 .Select(Function(x) New ListViewItem(x)) _
                                  .ToArray)

but it only add one array of string to the coulmn how to add the second string string2 to the second column withe the same line of the first column any help please

asked 3 mins ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: جمعه 14 اسفند 1394 ساعت: 3:08

صفحه بندی