<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="View.ascx.vb" Inherits="Registrazione.View" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<
table
>
<
tr
>
<
td
>Name:</
td
>
<
td
>
<
asp:TextBox
runat
=
"server"
ID
=
"NameTextBox"
BorderStyle
=
"solid"
BorderWidth
=
"1px"
BorderColor
=
"#a9a9a9"
/>
</
td
>
</
tr
>
<
tr
>
<
td
>Phone Number:</
td
>
<
td
>
<
asp:TextBox
runat
=
"server"
ID
=
"PhoneNumberTextBox"
BorderStyle
=
"solid"
BorderWidth
=
"1px"
BorderColor
=
"#a9a9a9"
/>
</
td
>
</
tr
>
</
table
>
<
asp:DropDownList
ID
=
"DropDownList1"
runat
=
"server"
AutoPostBack
=
"True"
Width
=
"150px"
>
<
asp:ListItem
>America</
asp:ListItem
>
<
asp:ListItem
>Asia</
asp:ListItem
>
<
asp:ListItem
>Europe</
asp:ListItem
>
</
asp:DropDownList
>
<
br
/>
<
asp:DropDownList
ID
=
"DropDownList2"
runat
=
"server"
Width
=
"150px"
>
</
asp:DropDownList
>
<
br
/>
<
asp:RequiredFieldValidator
runat
=
"server"
ID
=
"NReq"
ControlToValidate
=
"NameTextBox"
Display
=
"None"
ErrorMessage="<b>Required Field Missing</
b
><
br
/>A name is required." />
<
ajaxToolkit:ValidatorCalloutExtender
runat
=
"Server"
ID
=
"NReqE"
TargetControlID
=
"NReq"
HighlightCssClass
=
"validatorCalloutHighlight"
/>
<
asp:RequiredFieldValidator
runat
=
"server"
ID
=
"PNReq"
ControlToValidate
=
"PhoneNumberTextBox"
Display
=
"None"
ErrorMessage="<b>Required Field Missing</
b
><
br
/>A phone number is required.<
div
style
=
'margin-top:5px;padding:5px;border:1px solid #e9e9e9;background-color:white;'
><
b
>Other Options:</
b
><
br
/><
a
href
=
' No phone number available in profile.");'
>Extract from Profile</
a
></
div
>" />
<
ajaxToolkit:ValidatorCalloutExtender
runat
=
"Server"
ID
=
"PNReqE"
TargetControlID
=
"PNReq"
HighlightCssClass
=
"validatorCalloutHighlight"
Width
=
"350px"
/>
<
asp:RegularExpressionValidator
runat
=
"server"
ID
=
"PNRegEx"
ControlToValidate
=
"PhoneNumberTextBox"
Display
=
"None"
ValidationExpression
=
"((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}"
ErrorMessage="<b>Invalid Field</
b
><
br
/>Please enter a phone number in the format:<
br
/>(###) ###-####" />
<
ajaxToolkit:ValidatorCalloutExtender
runat
=
"Server"
ID
=
"PNReqEx"
TargetControlID
=
"PNRegEx"
HighlightCssClass
=
"validatorCalloutHighlight"
/>
<
asp:Button
ID
=
"Button1"
runat
=
"server"
Text
=
"Submit"
OnClick
=
"Button1_OnClick"
Width
=
"61px"
/>
<
br
/><
br
/>
<
asp:UpdatePanel
ID
=
"UpdatePanel1"
runat
=
"server"
>
<
ContentTemplate
>
<
asp:Label
id
=
"lblMessage"
runat
=
"server"
/>
</
ContentTemplate
>
<
Triggers
>
<
asp:AsyncPostBackTrigger
ControlID
=
"Button1"
EventName
=
"Click"
/>
</
Triggers
>
</
asp:UpdatePanel
>