Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp elements question

Status
Not open for further replies.

Jerred

MIS
Mar 1, 2005
3
0
0
US
quick background: im making an online store, dynamically

when i click on a product i have it to display in a label.
dim strresultsholder as string
strResultsHolder = "<table style= WIDTH: 260px; HEIGHT: 206px><tbody><tr><td align=middle rowspan=6>"

dbConnection.Open
Dim dataReader As System.Data.IDataReader = dbCommand.ExecuteReader(System.Data.CommandBehavior.CloseConnection)
Do While dataReader.Read()=True

strResultsHolder += "<img src=" + dataReader("image") + "/>"
strResultsHolder += "</td><td>product name:</td><td>"
strResultsHolder += dataReader("product_name")
strResultsholder += "</td></tr><tr><td>Model Number:</td><td>"
strResultsHolder += dataReader("model_number")
session("modelnumber") = dataReader("model_number")
strResultsholder += "</td></tr><tr><td>Price:</td><td>"
strResultsHolder += "$" + cstr(dataReader("price"))
strResultsholder += "</td></tr><tr><td>Description:</td><td>"
strResultsHolder += dataReader("description")
strResultsholder += "</td></tr><tr><td>Quantity:</td><td>"
strResultsHolder += "<asp:textbox id=qty runat=server value=1></asp:textbox>"
strResultsHolder += "<asp:Button id=addtocart onclick=addtocart_Click runat=server Text=Add to Cart></asp:Button>"
strResultsHolder += "</td></tr></tbody></table>"

lbl.text = strResultsHolder

MY QUESTION: i cant get the asp controls to show up, is there anyway to do this?
 
check out this signature:

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top