I have Created Dynamically a HTML
table by Using String Bulider.
and Filled the Table with Database Values.
My requirement is to Compare the consecutive Cells Values .
How can I do this .please assist.
------
here is what i have Done
Dim s As New StringBuilder
sSql = "SP_GetValFrmDB '" & param1 & "','" & param2 & "'"
Dim sdt As New SqlDataAdapter(sSql, connects)
sdt.Fill(dtt)
s.Append("<html>")
s.Append("<head>")
s.Append("</head>")
s.Append("<body>")
s.Append("<table>")
s.Append("<tr>")
s.Append("<td>")
s.Append("UID NO")
s.Append("</td>")
s.Append("<td>")
s.Append("Item")
s.Append("</td>")
s.Append("</tr>")
For Each drowt As Data.DataRow In dtt.Rows
Dim uID As String = drowt("uIDNo")
Dim item As String = drowt("itemNm")
s.Append("<tr>")
s.Append("<td>")
s.Append("" & uID & "")
s.Append("</td>")
s.Append("<td>")
s.Append("" & item & "")
s.Append("</td>")
s.Append("</tr>")
Next
s.Append("</table>")
s.Append("</body>")
s.Append("</html>")
Response.Write(s)
for ex the Data OutPut is
UID NO --- Item
123 --- A
123-1 --- B
222 --- C
222-1 --- D
333 --- Z
and I need to Compare UID NOs
like in this Case consecutive cells 123 and Then next 123-1
then i need to Put "---" mark in the Second Cell
the Otput i want is
UID NO --- Item
123 --- A
--- --- B
222 --- C
--- --- D
333 --- Z
May you understand my Question Now.