PRIYA ANKA

PRIYA ANKA

  • 1.9k
  • 32
  • 1.8k

form submit and send it as email to myemail_id

Sep 6 2018 8:38 AM
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server" action="mailto:priyaaanka22@gmail.com" method="post" enctype="multipart/form-data">
<div>

<p>Please update details and send</p>
<p>Yourname:
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" controltovalidate="Yourname" ValidationGroup="save"><br></br>
</asp:RequiredFieldValidator>
<asp:textbox ID="Yourname" runat="server" Width="250px"></asp:textbox>

</br>
Youremail:
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" controltovalidate="Youremail" ErrorMessage="*" ValidationGroup="save"><br></br>
</asp:RequiredFieldValidator>
<asp:TextBox ID="youremail" runat="server" Width="250px"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="youremail" Display="Dynamic" ErrorMessage="*" SetFocusOnError="true" Text="example: username@gmail.com" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="save"> </asp:RegularExpressionValidator>

</p>
<p>
<asp:Button ID="btnsubmit" runat="server" Text="send" ValidationGroup="save" OnClientClick="returnconfirm('want to add in server')" />
</p>



</div>
</form>
</body>
</html>
 
pls help to write what in c#
contactwebform1.aspx.cs 

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (1)