Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Professional ASP.NET MVC 3
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 26th, 2011, 03:08 PM
Authorized User
Points: 108, Level: 2
Points: 108, Level: 2 Points: 108, Level: 2 Points: 108, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2007
Location: North Salem, NY, USA.
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
  #2 (permalink)  
Old November 22nd, 2011, 01:52 PM
Authorized User
Points: 108, Level: 2
Points: 108, Level: 2 Points: 108, Level: 2 Points: 108, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2007
Location: North Salem, NY, USA.
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.
  #3 (permalink)  
Old December 9th, 2011, 09:48 PM
Wrox Author
Points: 165, Level: 3
Points: 165, Level: 3 Points: 165, Level: 3 Points: 165, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2006
Location: San Diego, CA, USA
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:54 PM.


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