sure thing..
User Control page (ControlForm)
<%@ Control Language="
VB" AutoEventWireup="false" CodeFile="ContactForm.ascx.
vb" Inherits="Controls_ContactForm" %>
<style type="text/css">
.style1
{
width: 100%;
}
td
{
width: 250px;
}
.style2
{
width: 153px;
}
.style3
{
height: 35px;
}
.style4
{
width: 153px;
height: 35px;
}
</style>
<script language="text/javascript">
function ValidatePhoneNumbers(source, args)
{
var txtPhoneHome = document.getElementById('<%= txtPhoneHome.ClientID %>');
var txtPhoneBusiness = document.getElementById('<%= txtPhoneBusiness.ClientID %>');
if (txtPhoneHome != '' || txtPhoneBusiness != '')
{
args.IsValid = true;
}
else
{
args.IsValid = false;
}
</script>
<table class="style1">
<tr>
<td colspan="3" style="width:100%;" >
<span style="font-size:xx-large;font-weight:bold;">Get in touch with us</span><br />
<br />
Use the form below to get in touch with us. Enter your name, e-mail address and
your home or phone number to get in touch with us.</td>
</tr>
<tr>
<td>Your name</td>
<td class="style2">
<asp:TextBox ID="txtName" runat="server" Width="162px"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtName" ErrorMessage="Please enter your name">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
Your e-mail address</td>
<td class="style2">
<asp:TextBox ID="txtEmailAddress" runat="server" Width="162px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="txtEmailAddress" Display="Dynamic"
ErrorMessage="Please enter an e-mail address">*</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txtEmailAddress" Display="Dynamic"
ErrorMessage="Please enter a valid e-mail address"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="style3">
Your e-mail address again</td>
<td class="style4">
<asp:TextBox ID="txtEmailAddressConfirm" runat="server" Width="162px"></asp:TextBox>
</td>
<td class="style3">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="txtEmailAddressConfirm" Display="Dynamic"
ErrorMessage="Please confirm the e-mail address">*</asp:RequiredFieldValidator>
<asp:CompareValidator ID="CompareValidator1" runat="server"
ControlToCompare="txtEmailAddressConfirm" ControlToValidate="txtEmailAddress"
Display="Dynamic" ErrorMessage="Please retype the e-mail address">*</asp:CompareValidator>
</td>
</tr>
<tr>
<td>
Home phone number</td>
<td class="style2">
<asp:TextBox ID="txtPhoneHome" runat="server" Width="162px"></asp:TextBox>
</td>
<td>
<asp:CustomValidator ID="CustomValidator1" runat="server"
ErrorMessage="Please enter your home or business number"
ClientValidationFunction="ValidatePhoneNumbers" Display="Dynamic"
ValidateEmptyText="True">*</asp:CustomValidator>
</td>
</tr>
<tr>
<td>
Business phone number</td>
<td class="style2">
<asp:TextBox ID="txtPhoneBusiness" runat="server" Width="162px"></asp:TextBox>
</td>
<td>
</td>
</tr>
<tr>
<td>
Comments</td>
<td class="style2">
<asp:TextBox ID="txtComments" runat="server" Height="69px" TextMode="MultiLine"
Width="404px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="txtComments" Display="Dynamic"
ErrorMessage="Please enter a comment">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td >
</td>
<td class="style2" >
<asp:Button ID="btnSend" runat="server" Text="Send" />
</td>
<td>
</td>
</tr>
<tr>
<td colspan="3">
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
HeaderText="Please correct the follow errors before you press the Send button"
ShowMessageBox="false" ShowSummary="true" />
</td>
</tr>
</table>
About Contact page
<%@ Page Title="Contact" Language="
VB" MasterPageFile="~/MasterPages/MasterPage.master" AutoEventWireup="false" CodeFile="Contact.aspx.
vb" Inherits="Contact" %>
<%@ Register src="../Controls/ContactForm.ascx" tagname="ContactForm" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
<uc1:ContactForm ID="ContactForm1" runat="server" />
</asp:Content>
Another thing..
How do you look up your internet provider, if you choose not to call them?
Do you by chance know that ? :)
thanks in advance..