Good. I have the following sketch of a contact form made in wix.com but I wanted to put it also in my asp.net project.
Sofar,itlookslikethis:
Mycodeisasfollows:
<body><style>textarea,input{border:2pxsolidrgba(7,143,27,1);padding:5px10px;background-color:white;font-family:Arial;width:400px;height:33px;}</style><formid="form1" runat="server">
<div>
<table border="0" style="width: 409px">
<tr>
<td>
<asp:TextBox ID="txtName" runat="server" ValidationGroup="contact" placeholder="Nome*"></asp:TextBox>
<br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*Campo obrigatório"
ControlToValidate="txtName"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="TextBox1" runat="server" placeholder="Assunto*"></asp:TextBox>
<br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*Campo obrigatório"
ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="txtEmail" runat="server" placeholder="Email*"></asp:TextBox>
<br />
<asp:RegularExpressionValidator ID="valRegEx" runat="server"
ControlToValidate="txtEmail"
ValidationExpression=".*@.*\..*"
ErrorMessage="*Endereço de email inválido."
Display="dynamic">
</asp:RegularExpressionValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*Campo obrigatório"
ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" placeholder="Mensagem*"></asp:TextBox>
<br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*Campo obrigatório"
ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<%--<td></td>--%>
<td>
<asp:Button ID="btnSend" runat="server" Text="Enviar" OnClick="btnSend_Click" />
</td>
</tr>
<tr>
<%--<td></td>--%>
<td>
<asp:Label ID="lblMessage" runat="server" Text="" ForeColor="Green"></asp:Label>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Anyone can help please? Thank you in advance!