Jump to content


Photo

Exemplo De Textbox Utilizando Array


  • Faça o login para participar
Nenhuma resposta neste tópico

#1 wozniak

wozniak

    Hands-On Founder

  • Usuários
  • 578 posts
  • Sexo:Masculino
  • Localidade:Rio de Janeiro / RJ

Posted 09/12/2003, 16:12

<script runat="Server" language="VB">
Sub Page_Load()

Dim strArrayDetails(2) As String
Dim intLoop As Integer

strArrayDetails(0) = text1.Text 
strArrayDetails(1) = text2.Text
strArrayDetails(2) = text3.Text

Message1.text = CStr(strArrayDetails(0)) 
Message2.text = CStr(strArrayDetails(1)) 
Message3.text = CStr(strArrayDetails(2)) 

End Sub
</script>

<html>
<head>
<title>Exemplo de textbox utilizando array</title>
</head>
<body>
<asp:label id="message1" runat="server" />
<br /> 
<asp:label id="message2" runat="server" /> 
<br />
<asp:label id="message3" runat="server" />
<br />
<form runat="server">
Nome:
<asp:textbox id="text1" runat="server" />
<br /><br />
Mensagem:
<asp:textbox id="text2" runat="server" rows=5 textmode="multiline" />
<br /><br />
Senha:
<asp:textbox id="text3" runat="server" textmode="password" />
<br /><br /> 
<input type="Submit">
</form>
</body>
</html>

t+




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq