简体   繁体   English

Combobox仅在本地正确显示

[英]Combobox displays correctly only locally

i have a serious problem. 我有一个严重的问题。

I have a combobox in a webform. 我在webform中有一个组合框。 everything works fine locally. 一切都在当地工作。 When the project is published i can't click on the combobox to display the various items. 项目发布后,我无法点击组合框来显示各种项目。 It more or less looks like a basic textbox.... 它或多或少看起来像一个基本的文本框....

This is my code: 这是我的代码:

<html>
<head>
    <title></title>
    <style id="Style1" type="text/css" runat="server">
        td
        {
            vertical-align: top;
        }
        input.RadUploadSubmit
        {
            margin-top: 20px;
        }

        #RadUpload1
        {
            width: 355px;
        }
    </style>
    <script type="text/javascript">

        function CloseWindow() {
            var oManager = GetRadWindowManager();
            var oWnd = oManager.GetWindowByName("RadWindow1");
            oWnd.Close();

        }

        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }

        function CloseDialog() {
            GetRadWindow().close();
            return true;


        }  

    </script>
</head>
<body>
    <form runat="server" id="Form1">
    <%--method="post" enctype="multipart/form-data"--%>
    <div id="formulaire">
        <center>
            Ticket : <b>
                <asp:Label ID="TicketFamille" runat="server"></asp:Label></b></center>
                <asp:Label runat="server" ID="lblERROR" Visible="false"></asp:Label>
        <table cellpadding="5px" cellspacing="2px">
            <tr>
                <td width="200px" align='right'>
                    <asp:Label ID="lblTitre" runat="server" Text="Titre"></asp:Label>
                    &nbsp;:
                </td>
                <td>
                    <telerik:RadTextBox ID="txtTitre" runat="server" Skin="Telerik" Width="250">
                    </telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                        ForeColor="Red" ControlToValidate="txtTitre" ValidationGroup="validationincident"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align='right'>
                    <asp:Label ID="lblCategorie" runat="server" Text="Concerne : "></asp:Label>
                </td>
                <td>
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server" AppendDataBoundItems="true"
                        OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged" AutoPostBack="true">
                        <asp:ListItem Selected="True" Value="1">Projet</asp:ListItem>
                        <asp:ListItem Value="2">Sous-categorie</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td align='right'>
                    <asp:Label ID="lblSousCategorie" runat="server" Text="Sous Categorie :"></asp:Label>
                </td>
                <td>
                    <telerik:RadComboBox ID="cbSousCategorie" runat="server" Skin="Telerik">
                    </telerik:RadComboBox>
                </td>
            </tr>
            <tr>
                <td align='right'>
                    <asp:Label ID="lblProjet" runat="server" Text="Projet : "></asp:Label>
                </td>
                <td>
                    <telerik:RadComboBox ID="cbProjet" runat="server" DataTextField="nomProjet" DataValueField="idProjet"
                        Skin="Telerik">
                    </telerik:RadComboBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                        ForeColor="Red" ControlToValidate="cbProjet" ValidationGroup="validationincident"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align='right'>
                    <asp:Label ID="lblDescription" runat="server" Text="Description : "></asp:Label>

                </td>
                <td>
                    <telerik:RadTextBox ID="txtDescription" runat="server" TextMode="MultiLine" Width="250"
                        Height="100" Skin="Telerik">
                    </telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                        ForeColor="Red" ControlToValidate="txtDescription" ValidationGroup="validationincident"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align='right'>
                    Joindre un fichier :
                </td>
                <td>
                    <br />
                    <telerik:RadUpload ID="RadUpload1" runat="server" MaxFileInputsCount="5" Skin="Telerik">
                        <Localization Add="Ajouter" Clear="Vider" Delete="Supprimer" Select="Parcourir" />
                    </telerik:RadUpload>
                    <br />
                    <asp:Repeater ID="reportResults" runat="server" Visible="False">
                        <HeaderTemplate>
                            Fichiers attachés:<br />
                        </HeaderTemplate>
                        <ItemTemplate>
                            '<%#DataBinder.Eval(Container.DataItem, "FileName")%>' ( '<%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>'
                            )<br />
                        </ItemTemplate>
                    </asp:Repeater>
                    <%--<asp:Button ID="buttonSubmit" CssClass="RadUploadSubmit" OnClick="buttonSubmit_Click"
        runat="server" Text="Joindre le fichier" />--%>
                    <br />
                    <%--<asp:Label ID="labelNoResults" runat="server" Visible="True">Pas de fichier joint pour le moment</asp:Label>--%>
                    <br />
                </td>
            </tr>
            </table>
        <asp:HiddenField runat="server" ID="HiddenFieldIdContact" />
                    <center><asp:Button ID="Button1" runat="server" Text="Soumettre ce ticket" OnClick="Button1_Click"
                        OnClientClick="if(Page_ClientValidate()) CloseDialog()" UseSubmitBehavior="false"
                        ValidationGroup="validationincident" /></center>
    </div>
    <center>
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
    </center>
    </form>
</body>
</html>

Thanks again for your help !!! 再次感谢你的帮助 !!!

Have all the required DLL's or in your website BIN folder? 拥有所有必需的DLL或在您的网站BIN文件夹中?

I think we have the same scenario, But I used Devexpress. 我认为我们有相同的情况,但我使用了Devexpress。 I don't know if is a bug on VS studio, but I have to manually add all the DLL's I used on my project BIN folder and upload it to production server. 我不知道VS工作室是否有bug,但是我必须手动添加我在项目BIN文件夹中使用的所有DLL并将其上传到生产服务器。

Hope this help you! 希望这对你有所帮助!

It is possible that you have hit one of the famous ( won't fix :) ) IE limitations - 31 stylesheets per page and 4095 selectors per file. 你有可能遇到了一个着名的(不会修复:) IE限制 - 每页31个样式表和每个文件4095个选择器。 http://blogs.telerik.com/aspnetmvcteam/posts/10-05-03/internet-explorer-css-limits.aspx http://blogs.telerik.com/aspnetmvcteam/posts/10-05-03/internet-explorer-css-limits.aspx

I'd recommend that you see if the problem exists in FF or Chrome. 我建议您查看FF或Chrome中是否存在问题。

Here you can find a test page, demonstrating the problem in IE. 在这里,您可以找到一个测试页面,演示IE中的问题。 http://demos.telerik.com/testcases/BrokenTheme.aspx http://demos.telerik.com/testcases/BrokenTheme.aspx

In the first case, you can try to combine the files as explained here: http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/custom-skin-asp-net-theme-ie-31-style-sheet-limit.aspx 在第一种情况下,您可以尝试组合文件,如下所述: http//www.telerik.com/community/forums/aspnet-ajax/general-discussions/custom-skin-asp-net-theme-ie- 31式片材limit.aspx

This is just an assumption of course :) Normally, it is not easy to guess what happens in such scenario. 这当然是一个假设:)通常情况下,猜测在这种情况下会发生什么并不容易。

If your combo box works in dev, but not in production (or other environment), I think your problem is the data source. 如果您的组合框在dev中工作,但不在生产(或其他环境)中,我认为您的问题是数据源。

you can confirm this by hardcoding the values for the combo box and seeing if it is then clickable in production. 您可以通过对组合框的值进行硬编码来确认,然后查看它是否可以在生产中单击。

Check web config and make sure debug mode is False once it is deploy to IIS. 检查Web配置,确保调试模式在部署到IIS后为False。

 <compilation debug="false" strict="false" explicit="true"> <assemblies> </assemblies> </compilation> 

Hello Dear Arnaud Adigard, if you code works fine locally then there show be a server problem where you are trying to deploy it. 您好亲爱的Arnaud Adigard,如果您的代码在本地工作正常,那么在您尝试部署它时会出现服务器问题。 May be some file is missing or any other problem. 可能是某些文件丢失或任何其他问题。 It's generally not your cade problem because it's fine. 这通常不是你的问题,因为它很好。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 组合框的BindingList数据源正确刷新,但组合框以错误的顺序显示项目 - The BindingList Datasource of a Combobox refreshes correctly but the Combobox displays items in the wrong order 自动填充组合框仅在我尝试输入时显示第一个字母 - Autocomplete ComboBox only displays the first letter when I try and type in it 上下文菜单项仅在第二次右键单击时正确显示 - context menu item only displays correctly on the second right click WPF MVVM组合框仅在更新属性后显示最小数量的项目 - WPF MVVM combobox only displays the smallest number of items after updating properties C#:从存储过程填充组合框只显示第一项 - C#: Populating combobox from stored procedure only displays first item ComboBox显示错误的字符串列表 - ComboBox displays a list of string wrong Combobox Dropdown显示在错误的地方 - Combobox Dropdown Displays in Wrong Place 只有 Microsoft .NET 堆积柱形图控件中的第一个系列才能正确显示工具提示 - Only the first series in Microsoft .NET stacked column chart control displays tooltip correctly ComboBox无法正确填充 - ComboBox not populating correctly 如何正确地将 SQL 表显示为同步的 ComboBox 以及如何将 Combobox.text 仅修改为 Z9775820A01401CB28 单元格6值 Z97785683 - How to correctly display a SQL Table into synchronized ComboBox and how to modify a Combobox.text only to a SQL Table cell value
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM