S
Sue
Help! I have an asp table with an embedded table. The asp
tablerow that contains this table has a static ID assigned
of "FilterRow2" (see snippets of code below). When I click
on the button to set the tablerow style property
to "None", the row (And embedded table) briefly disappear,
but then bounce right back into sight.
Any ideas on why it's doing this and how to make the
style.display = "None" stick?
tia,
Sue
control declared in .aspx page:
<asp:TableRow ID="FilterRow2" Runat="server">
<asp:TableCell Runat="server"
columnspan="6">
I have a client-side VBScript sub that sets the
DHTML "display" property of this FilterRow2 to "None"
or "InLine" triggered by a click on ASP Buttons.
These scripts are added to the project using
RegisterClientScriptBlock (see snip of the .aspx code-
behind below):
Me.ClientScriptString = "<script language=VBScript>" &
vbCrLf _
& " sub HideFilters()" & vbCrLf _
& " document.all(" & Chr(34) & Me.FilterRow2.ClientID & Chr
(34) & ").style.display = " & Chr(34) & "None" & Chr(34) &
vbCrLf _
& " end sub " & vbCrLf & "<" _
& "/" _
& "script>"
If (Not Page.IsClientScriptBlockRegistered("HideFilters"))
Then
Page.RegisterClientScriptBlock("HideFilters",
ClientScriptString)
End If
Here's the source code for the generated .ASPX page in an
IE browser:
<script language=VBScript>
sub HideFilters()
document.all("_ctl2_FilterRow2").style.display
= "None"
end sub
</script>
Here's the TableRow object in the source code in IE:
<tr id="_ctl2_FilterRow2">
tablerow that contains this table has a static ID assigned
of "FilterRow2" (see snippets of code below). When I click
on the button to set the tablerow style property
to "None", the row (And embedded table) briefly disappear,
but then bounce right back into sight.
Any ideas on why it's doing this and how to make the
style.display = "None" stick?
tia,
Sue
control declared in .aspx page:
<asp:TableRow ID="FilterRow2" Runat="server">
<asp:TableCell Runat="server"
columnspan="6">
I have a client-side VBScript sub that sets the
DHTML "display" property of this FilterRow2 to "None"
or "InLine" triggered by a click on ASP Buttons.
These scripts are added to the project using
RegisterClientScriptBlock (see snip of the .aspx code-
behind below):
Me.ClientScriptString = "<script language=VBScript>" &
vbCrLf _
& " sub HideFilters()" & vbCrLf _
& " document.all(" & Chr(34) & Me.FilterRow2.ClientID & Chr
(34) & ").style.display = " & Chr(34) & "None" & Chr(34) &
vbCrLf _
& " end sub " & vbCrLf & "<" _
& "/" _
& "script>"
If (Not Page.IsClientScriptBlockRegistered("HideFilters"))
Then
Page.RegisterClientScriptBlock("HideFilters",
ClientScriptString)
End If
Here's the source code for the generated .ASPX page in an
IE browser:
<script language=VBScript>
sub HideFilters()
document.all("_ctl2_FilterRow2").style.display
= "None"
end sub
</script>
Here's the TableRow object in the source code in IE:
<tr id="_ctl2_FilterRow2">