i will try to explain myself better.
I have this problem in my asp.net vb, in the code behind i am generating html content, with data being pulled from a database.
The problem comes when i have to generate an asp element (lets say, an asp button or an asp dropdownlist), problem is that the asp elements generate in the html code. But they dont show up, the button and the dropdown list are invisible, if i hit F12 the code is there.
This is the code im generating:
In aspx page i have this:
<div id="tarjetas" runat="server"></div>
Then in code behind i have this:
html = "<div class='col-lg-3'> <div class='panel panel-default'> <div class='panel-heading' style=' background-color: #1c72dc; '>Nº: " & id_ticket.ToString & " - " & Urgente.ToString & " </div> <!-- /.panel-heading --> <div class='panel-body'> <div class='row'> <div class='col-lg-12 col-lg-12'> <div class='thumbnail' style='background-color:rgba(60, 88, 188, 0.15); border-color: red;'> <div class='caption'> <h2>DIR: " & Calle_Numero.ToString & "</h2> <h4>ED: " & Nombre_Edificio.ToString & "</h4> <h4>TIPO: " & Tipo_Urgente.ToString & "</h4> <h4>TEL: " & Tel_Contacto.ToString & "</h4> <h5>DETALLE: " & Detalle_Problema.ToString & "</h5> <p style='text-align: center;'> <asp:DropDownList ID='ddlGender' runat='server' Width='200px'> <asp:ListItem Text='Select Gender' Value='0'></asp:ListItem> <asp:ListItem Text='Male' Value='1'></asp:ListItem> <asp:ListItem Text='Female' Value='2'></asp:ListItem> </asp:DropDownList> </p> <p style='text-align: center;'> </p> </div> </div> </div> </div> </div> </div> </div>
That's from the code behind. Then i do
Label.Text = html
tarjetas.Controls.Add(Label)
How can i make the buttons,especifically dropdownlist, to show up in aspx ?
Thanks in advance, im new to this. Im googled a lot but cant find answer.