Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ID Already Used By Another Control

Status
Not open for further replies.

RobHudson

Programmer
Apr 30, 2001
172
0
0
GB
I have been using the microsoft treeview control and all of a sudden, for apparently no reason I get the following error:
The ID 'pol1x1x999999x999999' is already used by antoher control.

The error occurs on the follwoing line:
<%@ register tagprefix=&quot;mytree&quot; namespace=&quot;Microsoft.Web.UI.WebControls&quot; assembly=&quot;Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;%>

Does anybody have an idea on what this could be?

Thanks
Rob
 
You don't need the line

<%@ register tagprefix=&quot;mytree&quot; namespace=&quot;Microsoft.Web.UI.WebControls&quot; assembly=&quot;Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;%>

because the Microsoft.Web.UI.WebControls namespace is registered by default. Just declare a tag like
<asp:Tree id=&quot;mytree&quot; runat=&quot;server&quot;/>

(I'm not sure about the classname 'Tree', but you'll figure it out).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top