I've seen it happen before, although I'm not exactly sure why (I think
sometimes it can happen if you add the control using copy and paste, but
once again, I'm not sure). But it is usually because the controls are not
declared correctly in the *.aspx.designer.vb file. To get the
*.aspx.designer.vb file updated, here are some of the ways that sometimes
work (since the *.aspx.designer.vb file is intended to be automatically
generated rather than manually updated, I'm not going to promise anything):
1. Open the *.aspx file and switch between design and source views
2. Open the *.aspx.designer.vb file and update it manually (note that these
changes will be overridden the next time the *.aspx.designer.vb file is
generated)
3. Open the *.aspx file and remove and add the controls again; it is usually
more guaranteed to update the *.aspx.designer.vb file if you do this using
the ToolBox or IntelliSense
4. Close and reopen Visual Studio
All of these suggestions are simply things I sometimes try when I come
across the situation you mentioned, so they are purely from experience and I
have done no testing on when and whether they always work, so hopefully they
will work for you. (NOTE: I use Visual Studio 2005, but unless the bug is
100% fixed in 2008 it will probably apply mostly the same there). Good Luck!
--
Nathan Sokalski
nj********@hotmail.com http://www.nathansokalski.com/
"AAaron123" <aa*******@roadrunner.comwrote in message
news:ux*************@TK2MSFTNGP03.phx.gbl...
The aspx file includes the following:
<asp:LoginView ID="LoginView1" Runat="server">
<LoggedInTemplate>
<fieldset>
<asp:label id="message1" runat="server" />
The .vb file includes in a method
If (ChangePassword1.CurrentPassword.ToString() =
ChangePassword1.NewPassword.ToString) Then
Message1.Visible = True
Both Message1 and ChangePassword1 are reported to be "not declared"
The drop down list in the .vb file does not show them.
They were typed as shown, not draged from the toolbox.
The loginView1 does show in that drop down list.
Does any of this make sense to you?
Do you know what I have that is wrong?
Thanks in advance