Click here to Skip to main content
15,888,210 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have developed an app using c# and Asp.net version 4.6.1, when I run it on visual studio everything runs smooth.
However when I run the app on Internet Explorer my date and time controls displays empty fields; however when running it on Chrome and Firefox, the date/time controls display the times and calendar but fail to submit.


What problem am I facing?

I need your guys's assistance asap

What I have tried:

<div class="form-group">
                    <label for="arrivalTime" class="control-label col-md-12">Arrival Time</label>
                    <div class="col-md-12">
                        <input type="time" runat="server" id="arrivalTime" class="form-control input-sm" required />
                    </div>
                </div>
                <div class="form-group">
                    <label for="deliveryDate" class="control-label col-md-12">Delivery Date</label>
                    <div class="col-md-9">
                        <input type="date" runat="server" id="deliveryDate" onserverclick="Load_AvailableTimes" class="form-control input-sm" required />
                        <input type="button" value="Set" runat="server" id="setDate" onserverclick="Load_AvailableTimes" />
                    </div>
                </div>
                <div class="form-group">

                    <label for="carrierType" class="control-label col-md-12">CarrierType:</label>
                    <div class="col-md-12 form-inline">
                        <asp:DropDownList ID="CarrierType" runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="Carrier_Type_Click" class="form-control input-sm col-md-12">
                            <asp:ListItem Enabled="true" Text="Select Carrier Type" Value="Select Carrier Type"></asp:ListItem>
                            <asp:ListItem Text="Truck" Value="truck"></asp:ListItem>
                            <asp:ListItem Text="Container" Value="container"></asp:ListItem>
                            <asp:ListItem Text="Bakkie" Value="bakkie"></asp:ListItem>
                            <asp:ListItem Text="Other" Value="other"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="LoadType" runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="ClearCarrierSize" class="form-control input-sm col-md-6">
                            <asp:ListItem Enabled="true" Text="Select Load Type" Value="-1"></asp:ListItem>
                            <asp:ListItem Text="Palletized" Value="palletized"></asp:ListItem>
                            <asp:ListItem Text="Packed Loose" Value="packedloose"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="LogCarrierSize" runat="server" AutoPostBack="True"
                            OnSelectedIndexChanged="Carrier_Size_Click" class="form-control input-sm col-md-6">
                            <asp:ListItem Enabled="true" Text="Select Load Size" Value=""></asp:ListItem>

                        </asp:DropDownList>
                    </div>
                </div>
            </div>

            <div class="col-md-4">
                <div class="form-group">
                    <label for="courierCompanyName" class="control-label col-md-12">Courier Company Name</label>
                    <div class="col-md-12">
                        <input type="text" runat="server" id="courierCompanyName" value="" class="form-control input-sm" placeholder="Courier Company Name" required />

                    </div>
                </div>
                <div class="form-group">
                    <label for="driverContactNumber" class="control-label col-md-12">Driver Contact Number</label>
                    <div class="col-md-12">
                        <input type="text" runat="server" id="driverContantNumber" value="" class="form-control input-sm" placeholder="Driver Contact Number" required />
                    </div>
                </div>
                <div class="form-group">
                    <label for="deliveryTime" class="control-label col-md-12">Delivery Time(Input your selected Available Booking Time here)</label>
                    <div class="col-md-12">
                        <input type="time" runat="server" id="deliveryTime" class="form-control input-sm" required="required" />
                    </div>
Posted
Updated 18-Apr-18 15:54pm

1 solution

Check your page emulation in Internet Explorer. Internet Explorer displays Intranet sites in Compatibility Mode by default - unless switched off.

Open the page in IE & check the Developer Tools (F12 keyboard shortcut) & then go to the Emulation tab.
If the Document mode is other that "Edge (Default)" then Compatibility mode is on & you may see this type of behavior.
To force IE to use Edge mode add the following to the html head section of the page/master page;
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />


This has resolved many issues for me with controls on Intranet sites

Kind Regards
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900