I get: literalList is not declared but it is!

A

AAaron123

I have a site where most of the pages use a master.

However, I have one page that does not.

I don't know if that's relevant, but

In the aspx file I have:

<form id="form1" runat="server">

<asp:Literal id="literalList" runat="server" />


....

In the code behind I have:

....

literalList.Text = sb.ToString()

And I get the error:

literalList is not declared



I do similar thing in other page with no problem.

Can you suggest what might be wrong?





Thanks
 

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

Forum statistics

Threads
474,261
Messages
2,571,041
Members
48,769
Latest member
Clifft

Latest Threads

Top