Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Jun 2006
    Messaggi
    794

    [ASP.net] - problemi visualizzazione controlli

    Questo è il codice:

    Response.Write("<tr>")
    esame = ""
    If reader("esame_cod") <> "Nessuno" Then
    esame = reader("esame_cod")
    End If

    Response.Write("<td>")
    Response.Write("<asp:TextBox ID=" & Quota("TextBox1" & i) & " text=" & Quota(esame) & " runat=" & Quota("server") & " visible=" & Quota("true") & ">Ciao</asp:TextBox>")

    Response.Write("</td>")
    Response.Write("<td>")
    Response.Write("<aspropDownList ID=" & Quota("ddl" & i) & " runat=" & Quota("server") & ">")
    Response.Write("<asp:ListItem Value=" & Quota("SI") & ">SI</asp:ListItem>")
    Response.Write("<asp:ListItem Selected=" & Quota("true") & " value=" & Quota("NO") & ">NO</asp:ListItem>")
    Response.Write("</aspropDownList>")
    Response.Write("</td>")
    commento = ""
    If reader("esame_cod") <> "Nessuno" And reader("commento") <> "commento" Then
    commento = reader("commento")
    End If
    Response.Write("<td>")
    Response.Write("<asp:TextBox id=" & Quota("TextBox2" & i) & " text=" & Quota(commento) & " runat=" & Quota("server") & " visible=" & Quota("true") & "></asp:TextBox>")
    Response.Write("</td>")
    Response.Write("<td>")
    Response.Write("<asp:Button onclick=" & Quota("modificaa_record") & " id=" & Quota("buttonok" & i) & " text =" & Quota("OK") & " runat=" & Quota("server") & " visible=" & Quota("true") & "></asp:Button>")
    Response.Write("</td>")
    Response.Write("<td>")
    Response.Write("<asp:Button onclick=" & Quota("elimina_record") & " id=" & Quota("buttonelimina" & i) & " text =" & Quota("X") & " runat=" & Quota("server") & " visible=" & Quota("true") & "></asp:Button>")
    Response.Write("</td>")
    Response.Write("</tr>")

    Crea tabelle, celle, ma i controlli non me li visualizza all'interno di esse (textbox e button) Cosa sbaglio?

  2. #2
    tutto

    sul response.write devi mettere codice HTML, non aspx, i controlli aspx li metti solo nel file aspx.

    Poi x le tabelle studiati il GridView
    Fiore Bat - www.bcscommunity.it

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.