Login view troubles

Hi,
I have a login view (loginview1) with a button (but1) and a text box (textbox1) inside it that appears to logged in users. But when ever I write the code for the button click event it says that textbox1 is not declared. when the button is clicked I want the word in textbox1 to be stored as an String, so I'm doing this...
myString = TextBox1.Text
But it says textbox 1 isnt declared, so I tried this...
myString = LoginView1.TextBox1.Text
That hasnt worked, can anybody help me out please?

Thanks.
[536 byte] By [SarH] at [2007-11-20 7:39:44]
# 1 Re: Login view troubles
have you tried

this.TextBox1.Text.

when you type this. you should see a popup appear with all the available controls. It could be that the text box is nested in the login view control, which may have a different name. use this. and drill down through the auto-complete popup.

hth,
mcm
mcmcom at 2007-11-9 11:53:10 >