error message from VWD - literal ID is not declared

J

Jon Paal

When trying to change visibility of literal control ,
VWD keeps telling me " 'FailureText' is not declared" (blue squiggly line).
what's missing ?

<%@ Page Language="VB" %>
<script runat="server">
Public Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If Page.IsPostBack = True Then
FailureText.Visible = True '<-- error here
End if
End Sub
</script>

....
<p class="warning">
<asp:Literal runat="server"
Visible="false"
ID="FailureText"
EnableViewState="False" />
</p>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top