1. Open visual studio and create new project.
2. Add new web form and design like in this example.
3. Design code:
---------------------------------------------------------------------------------------
<head>
<style type="text/css">
.auto-style1 {
width: 41%;
}
.auto-style2 {
height: 30px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<table class="auto-style1" border="1" style="background-color: #6699FF">
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text="To"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" TextMode="Email" Width="177px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label2" runat="server" Text="Subject"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" Width="177px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label3" runat="server" Text="Message"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox3" runat="server" Height="76px" TextMode="MultiLine" Width="177px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label4" runat="server" Text="Attachment"></asp:Label>
</td>
<td>
<asp:FileUpload ID="FileUpload1" runat="server" Width="187px" AllowMultiple="true" />
</td>
</tr>
<tr>
<td class="auto-style2"></td>
<td class="auto-style2">
<asp:Button ID="Button1" runat="server" Text="Send" OnClick="Button1_Click" />
</td>
</tr>
</table>
<div>
</div>
</form>
</body>
----------------------------------------------------------------------------------------------
5. connect to internet and Run project
Output
*If you still have any issue, please follow our YouTube video given above. In YouTube, we have cleared all types off error that can be occurred in this tutorial. So please watch my YouTube video and subscribe my channel.
0 Comments