2016-08-17 2 views
-2
str_builder_optin.Append("<table id='mytable' width='300px'><thead><tr><th>Mobilenumber</th> <th>time</th><th>Date</th><th>Message</th><th>FirstTime</th> <th>Sent</th><th>Status</th></tr></thead><tbody>") 
For i As Integer = 0 To ds.Tables(0).Rows.Count - 1 
     str_builder_optin.Append("<tr><td>" + ds.Tables(0).Rows(i)(0).ToString() + " </td> <td>" + ds.Tables(0).Rows(i)(1).ToString() + "</td><td>" + ds.Tables(0).Rows(i)(2).ToString() + "</td><td>" + ds.Tables(0).Rows(i)(3).ToString() + "</td> <td>" + ds.Tables(0).Rows(i)(4).ToString() + "</td> <td>" + ds.Tables(0).Rows(i)(5) + "</td><td>" + ds.Tables(0).Rows(i)(6).ToString() + "</td></tr>") 
Next 
str_builder_optin.Append("</toby></table>")      
+1

에 오신 것을 환영합니다 SO, 제목에 마지막 2 개 자리를 대체하기 좋아하고 코드가 일치하지 않는 경우, 여기에서 더 나은 응답을 얻을하는 데 필요한 정보를 제공하십시오 제공한다. 문제에 대한 설명, 지금까지 시도한 내용, 직면 한 문제 등 –

답변

0
Dim mobile = ds.Tables(0).Rows(i)(0).ToString() 
Dim mobileWithXX = mobile.Substring(0, mobile.Length - 2) & "XX" 
+0

'ds.Tables (0) .Rows (i) (0)'은'name' 또는 다른 값입니다 (아마도). 왜 그렇게 넓은 가정을 할 건데? 당신의 명성이 논평하기에 충분할 것입니다. –

+0

그가 올린 글보기 :'mobile'이 첫 번째 제목란에 있습니다. 'ds.Tables (0) .Rows (i) (0) .ToString()'은 첫 번째 행의 열에 있습니다. – FloatingKiwi

+0

감사합니다. 나는 그것을 끝낼 수 있었다. – Krishna508

관련 문제