| | |
Error with Shopping cart
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2006
Posts: 32
Reputation:
Solved Threads: 0
i am working on Shopping cart
in the AddToCart function
at this line >>> cost1 = Decimal.Parse(ddlProducts.SelectedItem.Value)
there is an error
this is the error message
Input string was not in a correct format.
need help plz
in the AddToCart function
at this line >>> cost1 = Decimal.Parse(ddlProducts.SelectedItem.Value)
there is an error
this is the error message
Input string was not in a correct format.
ASP.NET Syntax (Toggle Plain Text)
Sub AddToCart(s As Object, e As EventArgs) objDT = Session("Cart") Dim Product = ddlProducts.SelectedItem.Text Dim blnMatch As Boolean = False For Each objDR In objDT.Rows If objDR("Product") = Product Then objDR("Quantity") += txtQuantity.Text blnMatch = True Exit For End If Next If Not blnMatch Then objDR = objDT.NewRow objDR("Quantity") = txtQuantity.Text objDR("Product") = ddlProducts.SelectedItem.Text Dim cost1 cost1 = Decimal.Parse(ddlProducts.SelectedItem.Value) MsgBox(cost1) objDR("Cost") = cost1 objDT.Rows.Add(objDR) End If Session("Cart") = objDT dg.DataSource = objDT dg.DataBind() lblTotal.Text = "$" & GetItemTotal() End Sub
need help plz
![]() |
Similar Threads
- Shopping Cart Not Working (ASP.NET)
- Php Mysql Shopping Cart (PHP)
- Shopping cart related exception (ASP.NET)
- Parse error: parse error, unexpected T_STRING (PHP)
- JSP shopping cart (JSP)
- fatal error (PHP)
- Syntax error,plz help (PHP)
- Ms Access Help Please (MySQL)
- ASP.NET problem (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Datagrid within Datalist Problem
- Next Thread: for creating own media player like you tube webapplication in c# plz help me
Views: 431 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 activexcontrol advice ajax application asp asp.net bc30451 bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn chat checkbox child class click compatible confirmationcodegeneration content contenttype countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock development dgv dropdown dropdownmenu edit feedback flash flv folder form forms google grid gridview homeedition hosting identity iframe iis index javascript jquery list menu mono mssql multistepregistration nameisnotdeclared object objects order problem profile ratings refer rotatepage save search security serializesmo.table session silverlight smartcard software sql suse textbox tracking typeof unauthorized update validation vb vb.net video view virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt wizard xml





