Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to achieve a shopping cart functionality with Asp .NET, javascript, jquey. I have a master page and a child page (product). In the Product page, I am showing all products using a listview. Add to Cart button is inside an item template. For the button click, there is a JQuery function written in the master page. My question is how can I get the product id in the JQuery function. Else suggest me how to achieve this functionality. Please note, I am not allowed to redirect to a new page while clicking on Add to Cart button
Posted
Comments
Gihan Liyanage 29-Aug-14 1:00am    
Did you got the answer ?

 
Share this answer
 
Comments
Gihan Liyanage 15-Sep-14 6:14am    
Did you got a solution from my support, I can see you have not accepted any answer.If you are ok with this answer plz accept it. Then any user having same problem can identified it has solved the problem..
rupesh kunwar 8-Apr-21 23:03pm    
can it be used in asp.net core.?
you can use SignalR[^]. Now it also provides database support.

Tutorial Links(to start initialy):
---------------
http://www.asp.net/signalr/overview/signalr-1x/getting-started/tutorial-getting-started-with-signalr[^]

Chat Help Links(create userId, find user @davidfowl, he helped me out):
---------------
https://jabbr.net/#/rooms/Lobby[^]
https://jabbr.net/#/rooms/signalr[^]

If you want i can provide you my practice prototype too. just let me know.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900