|Hi, Please help me in checking the condition.I am displaying information in a html table.
I have two grids in asp and On click of first grid items it should be added to the second grid. Always items with same satus
we should add.
Example :I have 5 records in First grid.
if I select different status records and click add button on the page it should throw an error message,
If I select same status then it shouldn't through an error message.
I have code like below. Here rs means the number of records in the second grid.
If rs.RecordCount > 0 Then
If trim(rs.Fields.Item("Status").Value) <> trim(grid.Columns.Item("Status").Value)
MsgBox "Items should be with same status."
Please let me know how to how to validate the above condition.