I have mulitple tables in multiple panels in my form and I am needing to make sure that all the tables have the same column widths and alignments so I placed the table ID's in an array and tried looping through the tables using the array. However, the compiler does not like referencing the table properties through a variable and posts the message, "Compiler Error Message: BC30456: 'Rows' is not a member of 'String'" for line 6 of the following code.
<%@ Page Language="VB" Debug="true" %>
<script language="vbscript" runat=server>
Sub Page_Load()
Dim vRow As Integer
Dim aTables() As String = {"table1","table2"}
For vRow = 0 To aTables(vRow).Rows.Count - 1
aTables(vRow).Rows(vRow).Cells(0).Width = 300
aTables(vRow).Rows(vRow).Cells(1).Width = 600
Next
End Sub
</script>
<html>
<head>
<title>Test Page</title>
</head>
<body>
<form ID="Test" runat="server ...
Go to the complete details ...