TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Souhaile Safouani
NA
1
976
REFRESH A PARTIAL VIEW WITHOUT LOADING THE WHOLE VIEW
Jun 29 2014 6:45 AM
hi,
well , i have an e-commerce app, when i click at "add to cart" button , i want that this article is added to cart without loading this page.
I know , i have to work with ajax, i did that, but when i click into the button , nothing appears in the cart, but when i load manually the view , i see the article added,
this is the structure of my app
1/_layout.cshtml : call 2 another views :
1-1/_cartshop.cshtml : contains the cart
1-2/index.chstml , contains the list of articles , also contains the
ajax button
this is my method in homecontroller :
public PartialViewResult addtocart(int id)
{
// article added to the list
return PartialView("_cartshop");
}
Reply
Answers (
1
)
Building an image capture software in c#
how i change font type,size of ppt file in C# *Desktop App)