Maybe the Url does not have ctl=login where you expect it.
To Test, try adding a Response.write statment just above the code that checks the Url. <scriptrunat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Response.write Request.Url.PathAndQuery
If Request.Url.PathAndQuery.ToLower().IndexOf("ctl=login") > -1 Then
dnnDOCUMENTSSUMMARY.Visible = False
End If
End Sub
</script> |