Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (52 sloc) 2.22 KB
<!-- #include virtual="" -->
<form runat="server">
<script runat="server">
void Page_Load ()
if (!IsPostBack){
Page.Validate ();
string token = InsertData (name.Text, email.Text, country.Text, comments.Text);
mail (email.Text, token);
Response.Redirect ("thanks.aspx");
static void mail (string recipient, string token)
MailMessage m = new MailMessage ();
m.From = "";
m.To = recipient;
m.Subject = "Mono Meeting 2006 Registration Information";
m.Body = String.Format ("\n\nHello,\n\n" +
"To complete your registration for the Mono Meeting 2006, please go to the\n" +
"following address\n\n\t{0}\n\n" +
"To find more about the Mono Meeting, visit:\n\n\t\n\n" +
"The Mono Team (", token);
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send (m);
<div id="column-content">
<h2>Mono Meeting Registration</h2>
<p>Please enter the following information to register for the
Mono Meeting, the information obtained here will not be used
for marketing purposes and will not be published.
<p>Attendance to the meeting is free, but we need to evaluate
how many people will attend to get the proper venue.
<asp:TextBox id="name" columns="50" runat="server" maxLength="100" /><br/>
<asp:RequiredFieldValidator runat="server" class="errorst" ControlToValidate="name" ErrorMessage="Please enter your name."/>
<asp:TextBox id="email" columns="50" runat="server" maxLength="100"/><br/>
<asp:RequiredFieldValidator runat="server" class="errorst" ControlToValidate="email" ErrorMessage="Please enter an email address."/>
<asp:RegularExpressionValidator runat="server" ControlToValidate="email"
ErrorMessage="Please enter a valid email address."/>
<asp:TextBox id="country" columns="50" runat="server" maxLength="100"/>
<asp:TextBox id="comments" columns="70" rows="8" TextMode="multiline" runat="server" maxLength="1024"/>
<asp:button type="submit" runat="server" Text="Register" />
Jump to Line
Something went wrong with that request. Please try again.