MVC ActionLink not working after submit

These past days, I was having a problem with links for an iPad web app. The problem was that when I submit a form (step 1) and go to the next form (step 2), the link to return back to step 1 was not working. Apparently the problem is caused by Ajax. The solution is the following, instead of using the normal form tag to init a form:

      ……

use this type of form initialiser

@using (Html.BeginForm(“action”, “controller”, FormMethod.Post))
{

      ……

}

And add the following attribute:

{ “data-ajax”, “false” }

So the final code would look like this:

@using (Html.BeginForm(“action”, “controller”, FormMethod.Post, new Dictionary { { “data-ajax”, “false” } }))
{
……

}

Hope this post helps you, and reduces your swearing 🙂 Happy Form-ing!

 

 

 

Nokia’s New Lumia 620 and Lumia 505

On Wednesday, Nokia announced a new Windows Phone 8 member at LeWeb 2012 in Paris, the Lumia 620. The entry-level handset has the following specs:

  • 3.8-inch TFT screen at WVGA resolution (800 x 480)
  • 1GHz dual-core Snapdragon S4 Plus processor
  • 512MB RAM
  • 8GB of internal storage
  • expandable by microSD (up to 64GB cards supported)
  • 5-megapixel shooter with LED flash capable of recording 720p video
  • Front VGA camera is for those self-portraits
  • WiFi or WCDMA 3G
  • NFC & Bluetooth 3.0 taking care of all your sharing and pairing

It also has a “Dual-shot color” Continue reading