Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 Display Modes
  #11 (permalink)  
Old May 26th, 2010, 08:36 PM
Registered User
 
Join Date: May 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

How did you solve this
using ManagedFusion.Web.Mvc; and [Service, HttpPostOnly] issue.

I created ServiceAttribute class but now ManagedFusion cannot be recognized. Suck!

Quote:
Originally Posted by roguestorm View Post
Ok, I think I'm nearly there, I have one error coming up now and that is
"The name Iso3166CountryCodes does not exist in the current context" I've read in one of your replies that to mention country codes in the book would detract from th book's purpose, however, I have searched for this class and can't seem to find it anywhere, if it is a class that is. Where is the code for this? Many thanks.
  #12 (permalink)  
Old March 20th, 2011, 10:45 AM
Registered User
 
Join Date: Mar 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down The source code has erros

the code has some erros Like the action DeleteRole.
so i modified it

[Authorize(Roles = "Admin")]
[Service, HttpPostOnly]
public ActionResult DeleteRole(string id)
{
if (Roles.GetUsersInRole(id).Count() == 0)
Roles.DeleteRole(id);
else
{
ArrayList user = new ArrayList(Roles.GetUsersInRole(id));
foreach (string name in user)
{
Roles.RemoveUserFromRole(name, id);
}
Roles.DeleteRole(id);
}
return View(new { id = id });
//Roles.DeleteRole(id);
//return View(new { id = id });
}
now it works
  #13 (permalink)  
Old March 30th, 2011, 02:24 AM
Registered User
 
Join Date: Feb 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hm, what sort of error did you encounter when deleting a role, sir, mind to elaborate? thanks for posting the codes however.
The original source code works OK for me (only 2 lines in the body of the action method)
  #14 (permalink)  
Old August 4th, 2011, 10:20 PM
Registered User
 
Join Date: Aug 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default why i cannot add to cart when online

hi,sir:
i am trying to be good...and thanks first
i can use add to cart in my local computer with online database, but when i put the website online, i can not use add to cart in shopping process, it direct again and again to Register New User even i login yet...

which kind of problem is it? i should do the detailed programming by myself? i hope to do it quicker...

many thanks...please reply.

regards.

brain
 


Thread Tools
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
Impersonate with windows service for Service A/C vinod_yadav1919 C# 0 October 18th, 2008 03:29 PM
Web Service Consuming another web service CraigWhitfield EJB 0 January 10th, 2008 08:38 AM
Web Service ankesh13 ADO.NET 1 March 8th, 2007 11:12 AM
how to Uninstall a service MadJac C# 2005 3 December 6th, 2006 11:48 AM
Service Oriented Web Service aldwinenriquez .NET Web Services 2 September 15th, 2005 04:25 AM



All times are GMT -4. The time now is 12:42 PM.


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