Webcontainer and controls

I am building a large form made up of several containers that I will make visible as needed.

So I have the container with controls and want to access the controls on the container from a method in the Webpage.

Like a text field called txtFirstName, But if I try and use x = txtFirstName.text I get compile error This item doesn’t exist.

If I try ContainerName.txtFirstName.Text I get the same thing. I Also Tried WebpageName.ContainerName.txtFirstName.Text and still same error.

How do I reference the controls on the container? I know I can from Methods in the Container, But want do do it from a Method in the WebPage.


You must use the name of the instance of the container on the page, not the name of the container class itself.

Duh! Thanks for pointing out the obvious!