添加到购物车与Asp .NET,Javascript,JQuery [英] Add to cart with Asp .NET, Javascript, JQuery

查看:68
本文介绍了添加到购物车与Asp .NET,Javascript,JQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Asp .NET,javascript,jquey实现购物车功能。我有一个母版页和一个子页面(产品)。在产品页面中,我使用列表视图显示所有产品。 添加到购物车按钮位于项目模板中。对于按钮单击,在母版页中编写了一个JQuery函数。我的问题是如何在JQuery函数中获取产品ID。另外建议我如何实现这个功能。请注意,我不允许在点击添加到购物车按钮

解决方案

时重定向到新页面。这个链接可以帮助你做到这一点。



http://www.highoncoding.com/Articles/499_Creating_Shopping_Cart_UI_Using_JQuery_in_an_Hour.aspx [ ^ ]



http://www.highoncoding.com/Articles/716_Creating_Shopping_Cart_Using_jQuery_Drag_and_Drop_Part_1.aspx [ ^ ]



http://www.webresourcesdepot.com/ajaxed-sliding-shopping-cart-with-jquery/ [ ^ ]



http://code.tutsplus.com/tutorials/how-to-build-a-shopping-cart-using-codeigniter-and-jquery--net-8187 [ ^ 你可以使用 SignalR [ ^ ]。现在它还提供数据库支持。



教程链接(从头开始):

----------- ----

http://www.asp.net/signalr/overview/signalr-1x/getting-started/tutorial-getting-started-with-signalr [ ^ ]



聊天帮助链接(创建userId,找到用户@davidfowl,他帮助我了):

---------------

https://jabbr.net/#/rooms/Lobby [ ^ ]

https://jabbr.net/#/rooms/signalr [ ^ ]



如果你想我也可以为你提供我的练习原型。请告诉我。


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

解决方案

this links may help you to do that.

http://www.highoncoding.com/Articles/499_Creating_Shopping_Cart_UI_Using_JQuery_in_an_Hour.aspx[^]

http://www.highoncoding.com/Articles/716_Creating_Shopping_Cart_Using_jQuery_Drag_and_Drop_Part_1.aspx[^]

http://www.webresourcesdepot.com/ajaxed-sliding-shopping-cart-with-jquery/[^]

http://code.tutsplus.com/tutorials/how-to-build-a-shopping-cart-using-codeigniter-and-jquery--net-8187[^]


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.


这篇关于添加到购物车与Asp .NET,Javascript,JQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆