for example notice the example below
Dim myvar as string
myvar = "something"
Dim mystring as system.text.stringBuilder
mystring.append (" myvar ")
the above code does not work. It puts myvar as the literal text and not the actual value of the variable.
Please help with the syntax.You have to take the quotes out:
mystring.Append(myvar)
Thanks! Another question :) How can i retrieve an item from my datalist. For example I can get the Datakey but how can I get a particular item?
Here is the code I use to obtain the datakeys
Dim dlItem As DataListItem
For Each dlItem In detailsgrid.Items
' reference the TextBox
Dim txtItems As TextBox = CType(dlItem.FindControl("item_received"), TextBox)
' Grab the value
item_recieved = txtItems.Text
' Get the order number from DataKeys
order_num = detailsgrid.DataKeys(dlItem.ItemIndex).ToString()
0 comments:
Post a Comment