Note that there are some explanatory texts on larger screens.

plurals
  1. POInternet Explorer Post Data Bug - ASP.NET MVC
    primarykey
    data
    text
    <p>I just started playing with MVC and I've run into a roadblock. I'm using a partial view as a User Login flyout on the header of each page using OpenID. When the user clicks on the provider (similar to stackoverflow) it authenticates and then either returns to the calling page or redirects to the signup page. The code works flawlessly under Firefox and Chrome but bombs out in IE. The "provider" parameter in the controller is always sent as null. Is there some sort of bug involving posting input names/values in IE or am I doing something wrong? </p> <p>This is what my openid partial view looks like:</p> <pre><code>&lt;% using (Html.BeginForm("Authenticate", "Membership", new { ReturnUrl = Request.Url }, FormMethod.Post)) { if (!Page.User.Identity.IsAuthenticated) { %&gt; &lt;div class="openidProviders"&gt; Log in or join using one of these OpenID providers: &lt;div class="large buttons"&gt; &lt;div class="provider"&gt;&lt;div&gt;&lt;%= Html.SubmitImage("provider", "/Content/common/images/google.gif", new { value = "Google" })%&gt;&lt;/div&gt;&lt;/div&gt; &lt;div class="provider"&gt;&lt;div&gt;&lt;%= Html.SubmitImage("provider", "/Content/common/images/Yahoo.gif", new { value = "Yahoo" })%&gt;&lt;/div&gt;&lt;/div&gt; &lt;div class="provider"&gt;&lt;div&gt;&lt;%= Html.SubmitImage("provider", "/Content/common/images/AOL.gif", new { value = "AOL" })%&gt;&lt;/div&gt;&lt;/div&gt; &lt;div class="provider"&gt;&lt;div&gt;&lt;%= Html.SubmitImage("provider", "/Content/common/images/OpenId.gif", new { value = "OpenId" })%&gt;&lt;/div&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;% } } %&gt; </code></pre> <p>And the controller logic is here:</p> <pre><code>[AcceptVerbs(HttpVerbs.Post), ValidateInput(false)] public void Authenticate(string provider, string ReturnUrl) { // Figure out provider endpoint // Authentication function calls here } </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    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