Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

:confused:

I have script and this script have to get information from textbox which is in a LoginView!

 

<script language="vb" runat="server">
....
............. = TextBox1.Text
....

</script>
<html.... 
....
  <asp:LoginView ID="LoginView1" runat="server">
     <AnonymousTemplate>
        <asp:TextBox ID="TextBox1" runat="server" Width="305px"></asp:TextBox>
     </AnonymousTemplate>
  </asp:LoginView>

</html>

 

But there is an error whet I run my page...

:(

"TextBox1 not declared" <--- error in script!

 

WHY?????

 

I have tried to write "LoginView1.TextBox1.Text", "LoginView1.AnonymousTemplate.TextBox1.Text" and others... :(

 

:confused:

Posted

=/ I still have a problem.

 

LoginView1.FindControl(textbox1).Text

 

The name 'textbox1' is not declared!

 

=/

 

i don't understand!!!! :confused:

 

p.S. Textbox is in ''AnonymousTemplate'' ---> and i'm not logged in...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...