复选框值升级到Sitefinity 6.1后丢失

时间:2013-08-05 21:58:25

标签: asp.net telerik sitefinity

在我们的网站上,我们有一个包含一组复选框列表的页面(http://www.boxerproperty.com/search-results?type=0&mkt=Denver&size=-1&prop=0&page=1)。每个复选框列表都在RadDockLayout控件中:

<telerik:RadDockLayout runat="server" ID="RadDockLayout1">
  <telerik:RadDockZone runat="server" ID="RadDockZone1">
    <telerik:RadDock ID="dockSubMarket" Title="SUBMARKETS" runat="server" DefaultCommands="ExpandCollapse" DockMode="Docked" EnableDrag="false">
      <TitlebarTemplate>
        <div class="RadDockTitle">
          SUBMARKETS
        </div>
      </TitlebarTemplate>
      <ContentTemplate>
        <div id="Div5">
          <div id="Div6">
            <asp:CheckBoxList ID="chkSubmarket" runat="server" ViewStateMode="Enabled"></asp:CheckBoxList>
          </div>
        </div>
      </ContentTemplate>
    </telerik:RadDock>
  </telerik:RadDockZone>
</telerik:RadDockLayout>

在我们升级到Sitefinity 6.1之前,页面标记包含复选框的数值: <input id="ctl00_cphBreadcrumb_C002_dockSubMarket_C_chkSubmarket_1" type="checkbox" name="ctl00$cphBreadcrumb$C002$dockSubMarket$C$chkSubmarket$1" value="77" />(注意结尾处的值=“77”)

升级后,该值丢失。我们怎样才能获得价值?

1 个答案:

答案 0 :(得分:1)

从Sitefinity 5.1到6.1的升级过程将controlRenderingCompatibilityVersion="3.5"添加到web.config中的pages部分。这导致复选框不包含值属性。

<configuration>
  <system.web>
    <pages controlRenderingCompatibilityVersion="3.5">
    </pages>
  </system.web>
</configuration>