Link submittion Form

windows

Guest
Hi everyone!

I am new to web design and wanted to create a link submittion form.
However, i am now having some problems with the submit and reset buttons, hope you guys can help me!


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Link Submittion Form</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="background-color: lemonchiffon" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 240px; background-color: orange; text-align: center">
<span style="font-size: 10pt; font-family: Arial"><strong>-Please fill in the following
form-</strong></span></td>
</tr>
<tr>
<td style="width: 240px; height: 21px">
<span style="font-size: 10pt; font-family: Arial">Site Title:<br />
<asp:TextBox ID="TextBox1" runat="server" Width="220px"></asp:TextBox><br />
Website URL:<br />
<asp:TextBox ID="TextBox2" runat="server" Width="220px">http://</asp:TextBox><br />
Country:<br />
<asp:DropDownList ID="DropDownList2" runat="server" Width="190px">
<asp:ListItem>Please select your country:</asp:ListItem>
<asp:ListItem>China</asp:ListItem>
<asp:ListItem>Japan</asp:ListItem>
<asp:ListItem>Taiwan</asp:ListItem>
<asp:ListItem>United States</asp:ListItem>
</asp:DropDownList><br />
Title:<br />
<asp:DropDownList ID="DropDownList1" runat="server" Width="65px">
<asp:ListItem>Title:</asp:ListItem>
<asp:ListItem>Mr.</asp:ListItem>
<asp:ListItem>Ms.</asp:ListItem>
<asp:ListItem>Mrs.</asp:ListItem>
<asp:ListItem>Dr.</asp:ListItem>
</asp:DropDownList><br />
First Name:<br />
<asp:TextBox ID="TextBox3" runat="server" Width="220px"></asp:TextBox><br />
Last Name:</span><br />
<asp:TextBox ID="TextBox4" runat="server" Width="220px"></asp:TextBox><br />
<span style="font-size: 10pt; font-family: Arial">
e-mail:<br />
</span>
<asp:TextBox ID="TextBox5" runat="server" Width="220px"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 240px; text-align: right">
<asp:Button ID="Button2" runat="server" Text="Reset" CausesValidation="False" />
<asp:Button ID="Button1" runat="server" Text="Submit" /></td>
</tr>
</table>

</div>
</form>
</body>
</html>


mikewhat is the proble with the buttons? they dont show up or submit?they do show up but i dont know how to make them work
reset=clear the form
submit=send an email to me

Do you know anywhere that i can get a free example?

Thanks

MikeYou need to write the functions in the code-behind to handle these events.

If you are using Visual Studio to develop these forms you can double click the button in the design view (bottom left) to auto-create the event method in the code behind. It is then up to you to add the code to clear all the form elements (reset) or build and send an email (submit).

Let me know if you need more solid examples.
 
Back
Top