>I think "this" in your _click method refers to the Button class. And the button class does not have TextBox2 (the page class does). Have you tried to change your code to
>
>string mouserpass = this.text;
>
>
>Just a guess but I thought you might want to look into this.
>
Actually, that's not really how it works in ASP.NET. Controls aren't nested in the same way they would be in VFP. Controls are added to a collection of the container they are on. When you hook up an event, it is added at the container level (usually a page/class) so "this" always refers to the container not the control that raised the event.