The text of this article is not in this database — only its details are. Read it on the old site: Shopping Cart in ASP.NET using VB.NET
26 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Shopping Cart in ASP.NET using VB.NET
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
bobo bebePosted Mar 31, 2012, 8:46 AM
thaaaaaaaaaaannnnnkkkkkkkkssss so much :))
pawan saklaniPosted Jan 21, 2011, 4:41 AM
Really very nice thanks a lot
narendar kumarPosted Sep 7, 2010, 6:58 AM
Hi, Protected Function bindData() Dim con As New SqlConnection(ConfigurationSettings.AppSettings("connectionstring")) Dim objDA As SqlDataAdapter Dim myRow As SqlDataReader Dim comd As New SqlCommand("SELECT * FROM products", con) con.Open() myRow = comd.ExecuteReader() Dim strRowGen As String = "" While myRow.Read() strRowGen = strRowGen & "<TR>" strRowGen = strRowGen & "<TD>" & myRow.GetValue(1) & "</TD>" strRowGen = strRowGen & "<TD>" & myRow.GetValue(4) & "</TD>" strRowGen = strRowGen & "<TD>" & myRow.GetValue(5) & "</TD>" strRowGen = strRowGen & "<TD><a href='#' onclick=""javascript:document.Form1.action='ShoppingPage.aspx?Actn=Add&itemId=" & myRow.GetValue(0) & "';document.Form1.submit();"">Add To Cart</TD>" strRowGen = strRowGen & "</TR>" cellshoping.InnerHtml = strRowGen End While End Function In the above Code, The Image type of Data is not able to Retreive & the related code is given below : strRowGen = strRowGen & "<TD>" & myRow.GetValue(5) & "</TD>" Get the Error : Converting a Byte Datatype into String Datatype is not possible. Pls if anybody knows the Solution for the above Problem, Pls send the Solution Thx
Nick GreyrillPosted Aug 16, 2010, 6:01 AM
Thanks for providing us with your example but may you please upload the one using VB Script instead of Java Script.Thanks
inder prakashPosted May 19, 2010, 7:39 AM
nice website
ohoodPosted Mar 6, 2010, 8:59 AM
Hi i have shopping cart case but it seems different than this solution Can u help me in it plz
guna vigneshPosted Jan 9, 2010, 12:23 PM
this is very useful for web page developer
divya mukuntharajanPosted Dec 27, 2009, 12:21 AM
hello friends, i wanna know about the Shopping Cart projects in asp.net using vb.net codings pls help me in this and send me some easy understanding projects to my e-mail id: [email protected] PLS HELP !!!
funY lisbanPosted Sep 13, 2009, 2:52 PM
thx
Kamil KalimullinPosted May 11, 2009, 3:25 PM
Thanks for script. Also one of VB.NET shopping cart: http://advantshop.com
Nubia LevonPosted Mar 24, 2009, 3:05 PM
Do you have a version of shopping cart that is compatible with Visual Studio 2005, SQL Server 2005, and ASP.NET 2.0/3.5 coded in VB, if so please send to [email protected]
Michael RobbinsPosted Mar 3, 2009, 1:52 PM
Is there a good example asp.net shopping cart out there?
ashitaPosted Feb 21, 2009, 2:27 AM
Thank you,this code is wonderful.It is simple as well.But, please send me code for making payments at [email protected] Thanks & Regards, Ashita
raghav khungereditedPosted Jan 23, 2009, 3:14 AMEdited Jan 23, 2009, 3:17 AM
Hi, Good Explanantion BUt What To Do After that As u have wriiten >>> In next one of the session I will present code snippet for integrating with authorized.net payment gateway. Ok I have made my cart and has n number of items in that .What to do after that .How He Will PAy what after that.....Please Explain
rupa khaklaryPosted Sep 21, 2008, 6:10 AM
Hi, I a student that i am developing a project on shopping cart,I have to bind textbox control to display the quantity of the product that a user added to cart so that user can update the quanity of products, previously added if they want.How can I do like,please give idea then I will be ever gratefull to you.
kannan itsPosted Sep 20, 2008, 5:54 AM
please anybdy know the this concept then send the my mail or any way
RahulPosted Nov 23, 2007, 5:19 AM
good notes for me
Dave NottinghameditedPosted Dec 31, 2006, 5:16 PMEdited Jan 8, 2007, 1:44 AM
Hi Munnamax I have integrated and added to the code to make a .NET 2.0 cart work with a MasterPage. I am now a little stumped as to how to pull the data from the cells into a payment gateway - I've been able to do this with the total value but not the other elements. Of course I also need to find a way of updating the database with the cell values. Could you point me in the right direction? Thanks Happy New Year I have now managed this (of sorts) but I guess there must be a more efficient way to do it - and this method does limit the amount of rows (unless you want to code forever and ever... if vTotalRows > 3 Then 'start JavaScript Dim GetValues As String = "<script language='JavaScript'>" & _ "var table= document.getElementById('Table1'); " & _ "var totalrows = table.rows.length; " & _ "var i = (totalrows - 3) ; " & _ "var nID = new Array(i); " & _ "nID[0] = table.rows[2].cells[0].innerText; " & _ "var vQty1 = document.getElementById('ctl00_txt0').value ; " & _ "if (i > 1) { " & _ "nID[1] = table.rows[3].cells[0].innerText; " & _ "var vQty2 = document.getElementById('ctl00_txt1').value ; " & _ "}" & _ "else { " & _ "nID[1] = ''; " & _ "var vQty2 = '' ;" & _ "}" & _ "if (i > 2) { " & _ "nID[2] = table.rows[4].cells[0].innerText; " & _ "var vQty3 = document.getElementById('ctl00_txt2').value ; " & _ "}" & _ "else { " & _ "nID[2] = '' ;" & _ "var vQty3 = '' ;" & _ "} " & _ "if (i > 3) { " & _ "nID[3] = table.rows[5].cells[0]; " & _ "var vQty4 = document.getElementById('ctl00_txt3').value ; " & _ "} " & _ "else { " & _ "nID[3] = '' ; " & _ "var vQty4 = '' ; " & _ "}" & _ "if (i > 4) { " & _ "nID[4] = table.rows[6].cells[0]; " & _ "var vQty5 = document.getElementById('ctl00_txt4').value ; " & _ "} " & _ "else { " & _ "nID[4] = ''; " & _ "var vQty5 = '' ; " & _ "} " & _ "if (i > 5) { " & _ "nID[5] = table.rows[7].cells[0]; " & _ "var vQty6 = document.getElementById('ctl00_txt5').value ; " & _ "} " & _ "else { " & _ "nID[5] = '' ; " & _ "var vQty6 = '' ; " & _ "}" & _ "if (i > 6 ) { " & _ "nID[6] = table.rows[8].cells[0]; " & _ "var vQty7 = document.getElementById('ctl00_txt6').value ; " & _ "} " & _ "else { " & _ "nID[6] = '' ; " & _ "var vQty7 = '' ; " & _ "}" & _ "document.getElementById('Label1').innerText = nID[0] ; " & _ "document.getElementById('Label2').innerText = nID[1] ; " & _ "document.getElementById('Label3').innerText = nID[2] ; " & _ "document.getElementById('Label4').innerText = vQty1 ; " & _ "document.getElementById('Label5').innerText = vQty2 ; " & _ "document.getElementById('Label6').innerText = vQty3 ; " & _ "</script>" 'end JavaScript GetValues = GetValues.Replace("Table1", Table1.ClientID).Replace("Label1", Label1.ClientID) GetValues = GetValues.Replace("Label2", Label2.ClientID).Replace("Label3", Label3.ClientID).Replace("Label4", Label4.ClientID) GetValues = GetValues.Replace("Label5", Label5.ClientID).Replace("Label6", Label6.ClientID) Page.ClientScript.RegisterStartupScript(Me.GetType(), "GetValues", GetValues) Else Label1.Text = "Table is empty!" End If
Star FishPosted Nov 28, 2006, 5:40 PM
Hi I am trying to use your code in a project for school, the Add to Cart doesn't work! I am using ASP.net version 2.0
amara reddyPosted Oct 15, 2006, 3:25 PM
sir, i requesting to u for give me a suggestion regarding .net wt is the features .net rather than java? iam studying mca final year plz guidence to me and give replay to my mail id [email protected]
lilin weePosted Jul 22, 2006, 5:48 AM
hi i tried your shopping cart codes but when i try to view them in ie browser i don't see the datafields inside.Do i have to key in myself or ?
garrett meierPosted Jul 6, 2006, 6:53 PM
Hi, I just downloaded your sample code for the javascript cart for vb.net which I think is a great idea, but I could not get the update function to work. I am having to use 1.1 .Net but I dont think that would cause a problem on this example. Please let me know if you have any ideas. Thanks, Garrett