Watch, Follow, &
Connect with Us
Public Report
Report From:    [ Add a report in this area ]  
Report #:  18157   Status: Closed
(Pulled) The designer doesn't properly parse and represent tagprefixes for user controls. I have this <%@ Register TagPrefix="lmx"
Project:   Build #:  7.1.1446.610
Version:    1.0 Submitted By:   John Kaster
Report Type:  Minor failure / Design problem Date Reported:  12/19/2003 12:00:00 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   192590
Resolution: Fixed (Resolution Comments) Resolved in Build: : 10.0.2098.14501
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
The designer doesn't properly parse and represent tagprefixes for user controls.

I have this

<%@ Register TagPrefix="lmx" TagName="ucBottomCenter" Src="ucBottomCenter.ascx" %>
<%@ Register TagPrefix="lmx" TagName="ucTopCenter" Src="ucTopCenter.ascx" %>

in an aspx page.  I declare the controls as

<lmx:uctopcenter id=MainImageUserControl  runat="server">
</lmx:uctopcenter>

and later

<lmx:ucbottomcenter id=BottomCenterUserControl
                                runat="server">
            </lmx:ucbottomcenter>

in that aspx page.  I get

"Error: Parser Error: Unknown server tag 'lmx:ucbottomcenter'"

in the designer. If I swith the Register tags around, the first one
won't parse.

I definitely should be able to have two controls declared with the
same prefix.
Steps to Reproduce:
1.  Create new ASP.NET application
2.  Add two user controls to the project.
3.  go to the main page, and use Insert|User Control to add the two user controls to the main page.
4.  Go to the ASPX page and make the tagprefixes in the <$@ register %> tags the +same+  (Note, this should be allowed.
5. Go to the designer, and note that it shows a parser error.

Workarounds
None
Attachment
N
Comments

None

Server Response from: ETNACODE01