|
-
May 11th, 2005, 10:56 AM
#1
Thread Starter
Lively Member
Help! incorrect data format
Hi,
I have a AddtoCart function, how do i convert the Dreamweaver's
tags to Session variables below?
-
Sub AddToCart(s As Object, e As EventArgs)
dtCart = Session("Cart")
drCart = dtCart.NewRow
drCart("ProductID") = <%# ds.FieldValue("id", Container) %> <-ERROR
drCart("ProductName") = <%# ds.FieldValue("name", Container) %> <-ERROR
drCart("Cost") = <%# ds.FieldValue("cost", Container) %> <-ERROR
dtCart.Rows.Add(drCart)
Session("Cart") = dtCart
dg.DataSource = dtCart
dg.DataBind()
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|