Cannnot resolve symbol Follow
Re: VS2005 and R# 2.0.249.3
This problem also occurs when trying to work with controls on another page
from a web user control, i.e.:
protected void Page_Load( object sender, EventArgs e )
{
TreeView trvGroups = Parent.Parent.FindControl("Menu").FindControl("Panel1").FindControl("trvGroups")
as TreeView;
if (trvGroups != null)
{
TreeNode node = trvGroups.SelectedNode;
if (node != null)
{
string message = string.Format("Are you sure you want to
delete {0}?", node.Text);
ClientScripts.ConfirmDelete(this.Page, this.Page.ClientScript,
message);
}
else
ClientScripts.ConfirmDelete(Page, Page.ClientScript);
}
else
ClientScripts.ConfirmDelete(this.Page, this.Page.ClientScript);
.
.
.
}
in the above code TreeView is recognized but it SelectedNode property is not.
Sometimes restarting VS fixes the problem but this is really getting annoying.
Please sign in to leave a comment.
I just installed build 253 and this issue is still present.
Another perplexing issue is although, apparently all properties of TreeView
are not recognized, properties and methods lower in the hierachy are recognized.
i.e., in the two code lines below, SelectedNode and Nodes are the only sections
in red all else is in black.
trvGroups.SelectedNode.Parent.ChildNodes.Remove(trvGroups.SelectedNode);
trvGroups.Nodes[0].Selected = true;
Matthew,
Could You send us a small sample solution, that illustrates the problem?
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Sergey,
Sorry, when I create a small solution the issue does not present itself.
I have bee using an evaluation copy that expires in 13 days. Except for this
and the other issue reported elsewhere about the autotype jumping outside
braces before the full expression has been entered, it has worked well for
me.