Combobox is displayed correctly only locally

I have a serious problem.

I have a summary in a web form. everything works fine in place. When the project is published, I cannot click on the combo box to display various items. It looks more or less like a main text file ....

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!!!

+3


source to share


5 answers


Do you have all the required DLLs or in your site's BIN folder?

I think we have the same scenario, but I used Devexpress. I don't know if the bug is in VS studio, but I need to manually add the entire DLL I was using in my project BIN folder and upload it to the production server.



Hope it helps you!

+2


source


You may have hit one of IE's famous (don't fix :)) limitations of 31 styles per page and 4095 selectors per file. http://blogs.telerik.com/aspnetmvcteam/posts/10-05-03/internet-explorer-css-limits.aspx

I would recommend that you check if the problem exists in FF or Chrome.

You can find a test page here that demonstrates the problem in IE. http://demos.telerik.com/testcases/BrokenTheme.aspx



In the first case, you can try concatenating files as described here: http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/custom-skin-asp-net-theme-ie-31-style -sheet-limit.aspx

It's just a guess, of course :) It's usually not that hard to figure out what's going on in a scenario like this.

+1


source


If your combo box is running in dev, but not in production (or another environment), then I think your problem is the data source.

you can confirm this by adjusting the values ​​for the combo box and seeing if it is then available during production.

+1


source


Hello Arno Adigard, if the code works fine locally then there is a problem with the server where you are trying to deploy it. Maybe some file is missing or any other problem. This isn't your kayde problem at all, because that's okay. :)

0


source


Check your web configuration and make sure debug mode is False after deploying it to IIS.

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

Run codeHide result


0


source







All Articles