Note that there are some explanatory texts on larger screens.

plurals
  1. PODefault ASP.NET MVC 2 web pages do not work in IE6
    primarykey
    data
    text
    <p>I need to get my application to work in ie6. I have found that the default login page does not work. The login section in white is to the right of the header, and more importantly I cannot enter anything into the textboxes. How do I fix this?</p> <pre><code>&lt;%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage&lt;ITOC.WebUI.Models.LogOnModel&gt;" %&gt; &lt;asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server"&gt; Log On &lt;/asp:Content&gt; &lt;asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server"&gt; &lt;h2&gt;Log On&lt;/h2&gt; &lt;p&gt; Please enter your username and password. &lt;/p&gt; &lt;% using (Html.BeginForm()) { %&gt; &lt;%: Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.") %&gt; &lt;div&gt; &lt;fieldset&gt; &lt;legend&gt;Account Information&lt;/legend&gt; &lt;div class="editor-label"&gt; &lt;%: Html.LabelFor(m =&gt; m.UserName) %&gt; &lt;/div&gt; &lt;div class="editor-field"&gt; &lt;%: Html.TextBoxFor(m =&gt; m.UserName) %&gt; &lt;%: Html.ValidationMessageFor(m =&gt; m.UserName) %&gt; &lt;/div&gt; &lt;div class="editor-label"&gt; &lt;%: Html.LabelFor(m =&gt; m.Password) %&gt; &lt;/div&gt; &lt;div class="editor-field"&gt; &lt;%: Html.PasswordFor(m =&gt; m.Password) %&gt; &lt;%: Html.ValidationMessageFor(m =&gt; m.Password) %&gt; &lt;/div&gt; &lt;div class="editor-label"&gt; &lt;%: Html.CheckBoxFor(m =&gt; m.RememberMe) %&gt; &lt;%: Html.LabelFor(m =&gt; m.RememberMe) %&gt; &lt;/div&gt; &lt;p&gt; &lt;input type="submit" value="Log On" /&gt; &lt;/p&gt; &lt;/fieldset&gt; &lt;/div&gt; &lt;% } %&gt; &lt;/asp:Content&gt; </code></pre> <p>Translates to this in the page source;</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt;&lt;title&gt; Log On &lt;/title&gt;&lt;link href="../Content/Site.css" rel="stylesheet" type="text/css" /&gt; &lt;script src="http://code.jquery.com/jquery-1.4.1.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.js" type="text/javascript" language="javascript"&gt;&lt;/script&gt; &lt;link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/overcast/jquery-ui.css" type="text/css" rel="Stylesheet" class="ui-theme" /&gt; &lt;script type="text/javascript"&gt; $(function () { $(".datePicker").datepicker({ showOn: 'both', dateFormat: 'dd/mm/yy' }); }); // $(function () { // jQuery.validator.addMethod("mustexistproperty", function (value, element, params) { // if (this.optional(element)) { // return true; // } // var otherPropertyControl = $("#" + params.otherProperty); // if (otherPropertyControl == null) { // return false; // } // var otherPropertyValue = otherPropertyControl[0].value; // return (otherPropertyValue.length + value.length &gt; 0); // }); // }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="page"&gt; &lt;div id="header"&gt; &lt;div id="title"&gt; &lt;h1&gt;Instruction To Open Contract (ITOC)&lt;/h1&gt; &lt;/div&gt; &lt;div id="logindisplay"&gt; [ &lt;a href="/"&gt;Log On&lt;/a&gt; ] &lt;/div&gt; &lt;div id="menucontainer"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="main"&gt; &lt;h2&gt;Log On&lt;/h2&gt; &lt;p&gt; Please enter your username and password. &lt;/p&gt; &lt;form action="/Account/LogOn?ReturnUrl=%2fContract%2fDetails%2f3" method="post"&gt; &lt;div&gt; &lt;fieldset&gt; &lt;legend&gt;Account Information&lt;/legend&gt; &lt;div class="editor-label"&gt; &lt;label for="UserName"&gt;User name&lt;/label&gt; &lt;/div&gt; &lt;div class="editor-field"&gt; &lt;input id="UserName" name="UserName" type="text" value="" /&gt; &lt;/div&gt; &lt;div class="editor-label"&gt; &lt;label for="Password"&gt;Password&lt;/label&gt; &lt;/div&gt; &lt;div class="editor-field"&gt; &lt;input id="Password" name="Password" type="password" /&gt; &lt;/div&gt; &lt;div class="editor-label"&gt; &lt;input id="RememberMe" name="RememberMe" type="checkbox" value="true" /&gt;&lt;input name="RememberMe" type="hidden" value="false" /&gt; &lt;label for="RememberMe"&gt;Remember me?&lt;/label&gt; &lt;/div&gt; &lt;p&gt; &lt;input type="submit" value="Log On" /&gt; &lt;/p&gt; &lt;/fieldset&gt; &lt;/div&gt; &lt;/form&gt; &lt;div id="footer"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload