I have a datagrid, dgResult which is created by Dreamweaver. What I want to do is when I click on a column, i use javascript to set a variable then submit the whole page.<BR><BR>onPageLoad, I tried to <BR> If Request.Form("picFlag") = "0" Then<BR> dgResult.Columns(1).Visible = false<BR> End If<BR><BR>But it keep telling me that "Name &#039;dgResult&#039; is not declared." Am I doing something wrongly?