Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Professional ASP.NET MVC 3
|
BOOK: Professional ASP.NET MVC 3
This is the forum to discuss the Wrox book Professional ASP.NET MVC 3 by Jon Galloway, Phil Haack, Brad Wilson, K. Scott Allen; ISBN: 978-1-1180-7658-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET MVC 3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 26th, 2011, 03:08 PM
Authorized User
 
Join Date: Nov 2007
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
Default Chpt 8 -- Back Button in AJAX Autocomplete

In studying ASP.Net and ASP.Net MVC 3, I ran across an interesting problem about the back button in AJAX. It doesn't record history. In regular ASP.Net web forms this problem can be fixed per history points as illustrated in Wrox Prof ASP.Net for VB and C# (Evjen, Hansleman, Rader), chpt 18.

I noticed that an otherwise totally successful launch of the MVC Music Store tutorial with the AJAX Autocomplete search box from the book that the back button does not register after hitting the search button. How does one address this in MVC?

PS. I am using Razor, as in the online tutorial and the book.

Last edited by JackHerr; October 26th, 2011 at 03:26 PM.. Reason: Clarification
 
Old November 22nd, 2011, 01:52 PM
Authorized User
 
Join Date: Nov 2007
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
Default

It turns out you can use history points in mvc as well. Found this in:

http://www.asp.net/mvc/tutorials/ite...nctionality-cs

Thanks for looking at this.
 
Old December 9th, 2011, 09:48 PM
Wrox Author
 
Join Date: Oct 2006
Posts: 36
Thanks: 1
Thanked 5 Times in 5 Posts
Default history.js

You can also use a Javascript solution that doesn't require Microsoft Ajax, like the history.js library. It's available via NuGet: https://nuget.org/packages/history.js





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chpt 8 Ajax Search Form JackHerr BOOK: Professional ASP.NET MVC 3 8 October 14th, 2011 03:31 PM
Chpt 8 Ajax Search Form JackHerr BOOK: Professional ASP.NET MVC 3 0 October 13th, 2011 05:04 PM
ASP.Net AJAX AutoComplete Extender help Djvarley ASP.NET 4 General Discussion 3 August 24th, 2011 04:39 AM
Ajax not pulling back data gmoney BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 August 22nd, 2006 02:31 AM
history.back or hitting the back button won't work lian_a Classic ASP Basics 4 July 29th, 2004 12:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.