Apr 04, 2013, 1:16 PM
[OPEN] [#257] Namespace and ID issue in v2.2
Hi,
I am testing version 2.2. I have a issue with namespacing which worked well in v2.2.
Here's my code to test:
For Page:
In version 2.1, I could access panel1 as Controls.panel1
In version 2.2, it has changed to Controls.test1_panel1
The only way to make it work is to have IDMode="static" in web.config. But in that case I am getting endless errors of ID already used. In version 2.1, I had to just specify ItemID and it would become unique name in a namespace, nothing else required. Just to upgrae to 2.2 I will have to make lots of changes everywhere.
Please advise.
I am testing version 2.2. I have a issue with namespacing which worked well in v2.2.
Here's my code to test:
For Page:
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<%@ Register Src="~/test/uc.ascx" TagName="test" TagPrefix="uc1" %>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server"/>
<uc1:test ID="test1" runat="server" />
</form>
</body>
</html>
For Control:<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="uc.ascx.cs" Inherits="test.uc" %>
<ext:Panel ID="panel1" ItemID="panel1" runat="server" Width="500" Height="500" Namespace="Controls" Title="UC Panel">
<Content>Hello</Content>
</ext:Panel>
In version 2.1, I could access panel1 as Controls.panel1
In version 2.2, it has changed to Controls.test1_panel1
The only way to make it work is to have IDMode="static" in web.config. But in that case I am getting endless errors of ID already used. In version 2.1, I had to just specify ItemID and it would become unique name in a namespace, nothing else required. Just to upgrae to 2.2 I will have to make lots of changes everywhere.
Please advise.
Last edited by Daniil; May 30, 2013 at 4:22 AM.
Reason: [OPEN] [#257]