Wrox Programmer Forums
|
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950
This is the forum to discuss the Wrox book ASP.NET MVC Website Programming Problem Design Solution by Nicholas Berardi, Al Katawazi, and Marco Bellinaso; ISBN: 9780470410950
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 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 November 10th, 2009, 09:28 PM
Authorized User
 
Join Date: Sep 2009
Posts: 34
Thanks: 4
Thanked 1 Time in 1 Post
Default I can't invoke an action method via href

In the sample appl. the ManageUser.aspx contains a list of user in a table. (p. 142). Every row contains a href link to the User/EditUser action, that picks up a memebership id parameter as querystring, and invokes the method with the parameter:

p. 143.

<td><a href="EditUser?id=<%= membershipUser.UserName %>"><img border="0" alt="Edit User" src="/content/images/EditSymbol.png" title="Modify User" align="middle"/></a></td>

I tried to implement this code snippet in my own appl., but while this link is working in the TheBeerHouse application, doesn't in mine.

In my application the link invokes EditUser method without the user id.

Does anybody can explain me, what is missed in my application, that preclude the parameter pick up?

The delete action method is working, that uses the same user id.

I use the same web.config file.

Thanks

Gabriel
 
Old November 12th, 2009, 11:37 AM
Authorized User
 
Join Date: Sep 2009
Posts: 34
Thanks: 4
Thanked 1 Time in 1 Post
Default

The answer to my own question is here:

http://thebeerhouse.codeplex.com/Thr...ThreadId=74746





Similar Threads
Thread Thread Starter Forum Replies Last Post
Action Method to handle POST, ex. ManageUser philthy BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 2 September 14th, 2009 04:57 PM
Chapter 8, href and HRef (p. 285) roman BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 June 16th, 2008 10:40 AM
error HREF=$PHP_SELF?action broccolo PHP Databases 5 December 26th, 2004 10:07 AM
LoadFrom Invoke Member... Method not found DolphinBay VB.NET 2002/2003 Basics 1 April 29th, 2004 10:01 AM
LoadFrom Invoke Member... Method not found DolphinBay ASP.NET 1.0 and 1.1 Basics 0 April 29th, 2004 09:29 AM





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