0

I am using Visual Studio 2008 developing a web app front-end for a T-SQL DB using asp.net and vb.net.

I have a label inside a list like so:

<ul id="ul" class="class">
            <li id="li">
                <asp:Label runat="server" ID="label"></asp:Label>
            </li>
        </ul>

I cannot access the label directly in my code-behind file like I normally would. (Ex. label.text = "Something")

I'm assuming I need to use FindControl in some way, but I'm obviously having no success.

I guess that means my question is: How can I expose the label control so I can manipulate it with vb?

Thank you,
J'Tok

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by J'Tok
1

in code, say the page_load event you could do:

me.label.text = "Test Text"
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.