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?
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?