Widget error
Hi
We have a simple ‘Application form’ widget (source below) which allows entering basic applicant info along with uploading a CV. When the widget is dragged to a SF page, the outline and the header of the widget appears but the content only shows this error message; “Exception of type 'System.Web.HttpUnhandledException' was thrown”.
What is the problem and its fix?
Many Thanks
Regards
ApplicationControl.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ApplicationControl.ascx.cs"
Inherits="SitefinityWebApp.Widgets.ApplicationControl.Resources.Views.ApplicationControl" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sitefinity" %>
<
telerik:RadScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
EnableTheming
=
"True"
>
</
telerik:RadScriptManager
>
<
b
>Please fill in the fields below</
b
><
div
class
=
"pbody"
>
* denotes required information</
div
>
<
br
/>
<
asp:Label
ID
=
"Label32"
runat
=
"server"
Text
=
"Some of the fields below are required or the information given is not valid. For more information, please move your mouse over the boxes highlighted in blue."
></
asp:Label
>
<
br
/>
<
br
/>
<
table
style
=
"width: 98%;"
>
<
tr
>
<
td
class
=
"style1"
>
<
asp:Label
ID
=
"Label1"
Text
=
"First Name"
runat
=
"server"
AssociatedControlID
=
"FirstName"
Font-Bold
=
"False"
/><
strong
>*</
strong
><
asp:RequiredFieldValidator
ID
=
"FirstNameRequired"
runat
=
"server"
CssClass
=
"sfError"
Display
=
"Dynamic"
ValidationGroup
=
"CVUpload"
ControlToValidate
=
"FirstName"
ErrorMessage
=
"First name required"
SetFocusOnError
=
"true"
>
<
strong
>First name required</
strong
>
</
asp:RequiredFieldValidator
>
<
br
/>
<
asp:TextBox
ID
=
"FirstName"
runat
=
"server"
Width
=
"78%"
ValidationGroup
=
"CVUpload"
/>
</
td
>
<
td
>
<
asp:Label
ID
=
"Label26"
Text
=
"Last name"
runat
=
"server"
AssociatedControlID
=
"Lastname"
Font-Bold
=
"False"
/>*<
asp:RequiredFieldValidator
ID
=
"FirstNameRequired20"
runat
=
"server"
CssClass
=
"sfError"
Display
=
"Dynamic"
ValidationGroup
=
"CVUpload"
ControlToValidate
=
"FirstName"
ErrorMessage
=
"First name required"
SetFocusOnError
=
"true"
>
<
strong
>First name required</
strong
>
</
asp:RequiredFieldValidator
>
<
br
/>
<
asp:TextBox
ID
=
"Lastname"
runat
=
"server"
Width
=
"78%"
ValidationGroup
=
"CVUpload"
/>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"style1"
>
<
asp:Label
ID
=
"Label16"
Text
=
"Preferred name "
runat
=
"server"
AssociatedControlID
=
"Preferredname"
Font-Bold
=
"False"
/><
strong
>*</
strong
><
asp:RequiredFieldValidator
ID
=
"FirstNameRequired10"
runat
=
"server"
CssClass
=
"sfError"
Display
=
"Dynamic"
ValidationGroup
=
"CVUpload"
ControlToValidate
=
"Preferredname"
ErrorMessage
=
"First name required"
SetFocusOnError
=
"true"
>
<
strong
>First name required</
strong
>
</
asp:RequiredFieldValidator
>
<
br
/>
<
asp:TextBox
ID
=
"Preferredname"
runat
=
"server"
Width
=
"78%"
ValidationGroup
=
"CVUpload"
/>
</
td
>
<
td
>
<
asp:Label
ID
=
"Label25"
Text
=
"Contact telephone "
runat
=
"server"
AssociatedControlID
=
"Phone"
Font-Bold
=
"False"
/>*<
asp:RequiredFieldValidator
ID
=
"FirstNameRequired19"
runat
=
"server"
CssClass
=
"sfError"
Display
=
"Dynamic"
ValidationGroup
=
"CVUpload"
ControlToValidate
=
"FirstName"
ErrorMessage
=
"First name required"
SetFocusOnError
=
"true"
>
<
strong
>First name required</
strong
>
</
asp:RequiredFieldValidator
>
<
br
/>
<
asp:TextBox
ID
=
"Phone"
runat
=
"server"
Width
=
"78%"
ValidationGroup
=
"CVUpload"
/>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"style1"
>
<
asp:Label
ID
=
"Label17"
Text
=
"Email address (username)"
runat
=
"server"
AssociatedControlID
=
"Email"
Font-Bold
=
"False"
/><
strong
>*</
strong
><
asp:RequiredFieldValidator
ID
=
"FirstNameRequired11"
runat
=
"server"
CssClass
=
"sfError"
Display
=
"Dynamic"
ValidationGroup
=
"CVUpload"
ControlToValidate
=
"FirstName"
ErrorMessage
=
"First name required"
SetFocusOnError
=
"true"
>
<
strong
>First name required</
strong
>
</
asp:RequiredFieldValidator
>
<
br
/>
<
asp:TextBox
ID
=
"Email"
runat
=
"server"
Width
=
"78%"
ValidationGroup
=
"CVUpload"
/>
</
td
>
<
td
>
<
asp:Label
ID
=
"Label24"
Text
=
"Confirm email address "
runat
=
"server"
AssociatedControlID
=
"Confirmemail"
Font-Bold
=
"False"
/>*<
asp:RequiredFieldValidator
ID
=
"FirstNameRequired18"
runat
=
"server"
CssClass
=
"sfError"
Display
=
"Dynamic"
ValidationGroup
=
"CVUpload"
ControlToValidate
=
"FirstName"
ErrorMessage
=
"First name required"
SetFocusOnError
=
"true"
>
<
strong
>First name required</
strong
>
</
asp:RequiredFieldValidator
>
<
br
/>
<
asp:TextBox
ID
=
"Confirmemail"
runat
=
"server"
Width
=
"78%"
ValidationGroup
=
"CVUpload"
/>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"style1"
>
<
asp:Label
ID
=
"Label18"
Text
=
"Address 1 "
runat
=
"server"
AssociatedControlID
=
"Address1"
Font-Bold
=
"False"
/>*<
asp:RequiredFieldValidator
ID
=
"FirstNameRequired12"
runat
=
"server"
CssClass
=
"sfError"
Display
=
"Dynamic"
ValidationGroup
=
"CVUpload"
ControlToValidate
=
"Address1"
ErrorMessage
=
"First name required"
SetFocusOnError
=
"true"
>
<
strong
>First name required</
strong
>
</
asp:RequiredFieldValidator
>
<
br
/>
<
asp:TextBox
ID
=
"Address1"
runat
=
"server"
Width
=
"78%"
ValidationGroup
=
"CVUpload"
/>
</
td
>
<
td
>
<
asp:Label
ID
=
"Label23"
Text
=
"Address 2"
runat
=
"server"
AssociatedControlID
=
"Address2"
Font-Bold
=
"False"
/>*<
asp:RequiredFieldValidator
ID
=
"FirstNameRequired17"
runat
=
"server"
CssClass
=
"sfError"
Display
=
"Dynamic"
ValidationGroup
=
"CVUpload"
ControlToValidate
=
"FirstName"
ErrorMessage
=
"First name required"
SetFocusOnError
=
"true"
>
<
strong
>First name required</
strong
>
</
asp:RequiredFieldValidator
>
<
br
/>
<
asp:TextBox
ID
=
"Address2"
runat
=
"server"
Width
=
"78%"
ValidationGroup
=
"CVUpload"
/>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"style1"
>
<
asp:Label
ID
=
"Label19"
Text
=
"Town"
runat
=
"server"
AssociatedControlID
=
"Town"
Font-Bold
=
"False"
/>*<
asp:RequiredFieldValidator
ID
=
"FirstNameRequired13"
runat
=
"server"
CssClass
=
"sfError"
Display
=
"Dynamic"
ValidationGroup
=
"CVUpload"
ControlToValidate
=
"FirstName"
ErrorMessage
=
"First name required"
SetFocusOnError
=
"true"
>
<
strong
>First name required</
strong
>
</
asp:RequiredFieldValidator
>
<
br
/>
<
asp:TextBox
ID
=
"Town"
runat
=
"server"
Width
=
"78%"
ValidationGroup
=
"CVUpload"
/>
</
td
>
<
td
>
<
asp:Label
ID
=
"Label22"
Text
=
"County"
runat
=
"server"
AssociatedControlID
=
"County"
Font-Bold
=
"False"
/>*<
asp:RequiredFieldValidator
ID
=
"FirstNameRequired16"
runat
=
"server"
CssClass
=
"sfError"
Display
=
"Dynamic"
ValidationGroup
=
"CVUpload"
ControlToValidate
=
"FirstName"
ErrorMessage
=
"First name required"
SetFocusOnError
=
"true"
>
<
strong
>First name required</
strong
>
</
asp:RequiredFieldValidator
>
<
br
/>
<
asp:TextBox
ID
=
"County"
runat
=
"server"
Width
=
"78%"
ValidationGroup
=
"CVUpload"
/>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"style1"
>
<
asp:Label
ID
=
"Label20"
Text
=
"Postcode"
runat
=
"server"
AssociatedControlID
=
"Postcode"
Font-Bold
=
"False"
/>*<
asp:RequiredFieldValidator
ID
=
"FirstNameRequired14"
runat
=
"server"
CssClass
=
"sfError"
Display
=
"Dynamic"
ValidationGroup
=
"CVUpload"
ControlToValidate
=
"FirstName"
ErrorMessage
=
"First name required"
SetFocusOnError
=
"true"
>
<
strong
>First name required</
strong
>
</
asp:RequiredFieldValidator
>
<
br
/>
<
asp:TextBox
ID
=
"Postcode"
runat
=
"server"
Width
=
"78%"
ValidationGroup
=
"CVUpload"
/>
</
td
>
<
td
>
<
asp:Label
ID
=
"Label21"
Text
=
"First Name"
runat
=
"server"
AssociatedControlID
=
"Country"
Font-Bold
=
"False"
/>*<
asp:RequiredFieldValidator
ID
=
"FirstNameRequired15"
runat
=
"server"
CssClass
=
"sfError"
Display
=
"Dynamic"
ValidationGroup
=
"CVUpload"
ControlToValidate
=
"FirstName"
ErrorMessage
=
"First name required"
SetFocusOnError
=
"true"
>
<
strong
>First name required</
strong
>
</
asp:RequiredFieldValidator
>
<
br
/>
<
asp:DropDownList
ID
=
"Country"
runat
=
"server"
Width
=
"203px"
OnSelectedIndexChanged
=
"Country_SelectedIndexChanged"
>
<
asp:ListItem
Value
=
"GA"
>Georgia</
asp:ListItem
>
<
asp:ListItem
Value
=
"-1"
>[ Select ]</
asp:ListItem
>
<
asp:ListItem
Value
=
"AF"
>Afghanistan</
asp:ListItem
>
<
asp:ListItem
Value
=
"AL"
>Albania</
asp:ListItem
>
<
asp:ListItem
Value
=
"DZ"
>Algeria</
asp:ListItem
>
<
asp:ListItem
Value
=
"AS"
>American Samoa</
asp:ListItem
>
<
asp:ListItem
Value
=
"AD"
>Andorra</
asp:ListItem
>
<
asp:ListItem
Value
=
"AO"
>Angola</
asp:ListItem
>
<
asp:ListItem
Value
=
"AI"
>Anguilla</
asp:ListItem
>
<
asp:ListItem
Value
=
"AQ"
>Antarctica</
asp:ListItem
>
<
asp:ListItem
Value
=
"AG"
>Antigua and Barbuda</
asp:ListItem
>
<
asp:ListItem
Value
=
"AR"
>Argentina</
asp:ListItem
>
<
asp:ListItem
Value
=
"AM"
>Armenia</
asp:ListItem
>
<
asp:ListItem
Value
=
"AW"
>Aruba</
asp:ListItem
>
<
asp:ListItem
Value
=
"AC"
>Ascension Island</
asp:ListItem
>
<
asp:ListItem
Value
=
"AU"
>Australia</
asp:ListItem
>
<
asp:ListItem
Value
=
"AT"
>Austria</
asp:ListItem
>
<
asp:ListItem
Value
=
"AZ"
>Azerbaijan</
asp:ListItem
>
<
asp:ListItem
Value
=
"BS"
>Bahamas</
asp:ListItem
>
<
asp:ListItem
Value
=
"BH"
>Bahrain</
asp:ListItem
>
<
asp:ListItem
Value
=
"BD"
>Bangladesh</
asp:ListItem
>
<
asp:ListItem
Value
=
"BB"
>Barbados</
asp:ListItem
>
<
asp:ListItem
Value
=
"BY"
>Belarus</
asp:ListItem
>
<
asp:ListItem
Value
=
"BE"
>Belgium</
asp:ListItem
>
<
asp:ListItem
Value
=
"BZ"
>Belize</
asp:ListItem
>
<
asp:ListItem
Value
=
"BJ"
>Benin</
asp:ListItem
>
<
asp:ListItem
Value
=
"BM"
>Bermuda</
asp:ListItem
>
<
asp:ListItem
Value
=
"BT"
>Bhutan</
asp:ListItem
>
<
asp:ListItem
Value
=
"BO"
>Bolivia</
asp:ListItem
>
<
asp:ListItem
Value
=
"BA"
>Bosnia and Herzegovina</
asp:ListItem
>
<
asp:ListItem
Value
=
"BW"
>Botswana</
asp:ListItem
>
<
asp:ListItem
Value
=
"BV"
>Bouvet Island</
asp:ListItem
>
<
asp:ListItem
Value
=
"BR"
>Brazil</
asp:ListItem
>
<
asp:ListItem
Value
=
"IO"
>British Indian Ocean Territory</
asp:ListItem
>
<
asp:ListItem
Value
=
"BN"
>Brunei</
asp:ListItem
>
<
asp:ListItem
Value
=
"BG"
>Bulgaria</
asp:ListItem
>
<
asp:ListItem
Value
=
"BF"
>Burkina Faso</
asp:ListItem
>
<
asp:ListItem
Value
=
"BI"
>Burundi</
asp:ListItem
>
<
asp:ListItem
Value
=
"KH"
>Cambodia</
asp:ListItem
>
<
asp:ListItem
Value
=
"CM"
>Cameroon</
asp:ListItem
>
<
asp:ListItem
Value
=
"CA"
>Canada</
asp:ListItem
>
<
asp:ListItem
Value
=
"CV"
>Cape Verde</
asp:ListItem
>
<
asp:ListItem
Value
=
"KY"
>Cayman Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"CF"
>Central African Republic</
asp:ListItem
>
<
asp:ListItem
Value
=
"TD"
>Chad</
asp:ListItem
>
<
asp:ListItem
Value
=
"CL"
>Chile</
asp:ListItem
>
<
asp:ListItem
Value
=
"CN"
>China</
asp:ListItem
>
<
asp:ListItem
Value
=
"CX"
>Christmas Island</
asp:ListItem
>
<
asp:ListItem
Value
=
"CC"
>Cocos (Keeling) Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"CO"
>Colombia</
asp:ListItem
>
<
asp:ListItem
Value
=
"KM"
>Comoros</
asp:ListItem
>
<
asp:ListItem
Value
=
"CG"
>Congo</
asp:ListItem
>
<
asp:ListItem
Value
=
"CD"
>Congo (DRC)</
asp:ListItem
>
<
asp:ListItem
Value
=
"CK"
>Cook Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"CR"
>Costa Rica</
asp:ListItem
>
<
asp:ListItem
Value
=
"CI"
>Côte d'Ivoire</
asp:ListItem
>
<
asp:ListItem
Value
=
"HR"
>Croatia</
asp:ListItem
>
<
asp:ListItem
Value
=
"CU"
>Cuba</
asp:ListItem
>
<
asp:ListItem
Value
=
"CY"
>Cyprus</
asp:ListItem
>
<
asp:ListItem
Value
=
"CZ"
>Czech Republic</
asp:ListItem
>
<
asp:ListItem
Value
=
"DK"
>Denmark</
asp:ListItem
>
<
asp:ListItem
Value
=
"DJ"
>Djibouti</
asp:ListItem
>
<
asp:ListItem
Value
=
"DM"
>Dominica</
asp:ListItem
>
<
asp:ListItem
Value
=
"DO"
>Dominican Republic</
asp:ListItem
>
<
asp:ListItem
Value
=
"EC"
>Ecuador</
asp:ListItem
>
<
asp:ListItem
Value
=
"EG"
>Egypt</
asp:ListItem
>
<
asp:ListItem
Value
=
"SV"
>El Salvador</
asp:ListItem
>
<
asp:ListItem
Value
=
"GQ"
>Equatorial Guinea</
asp:ListItem
>
<
asp:ListItem
Value
=
"ER"
>Eritrea</
asp:ListItem
>
<
asp:ListItem
Value
=
"EE"
>Estonia</
asp:ListItem
>
<
asp:ListItem
Value
=
"ET"
>Ethiopia</
asp:ListItem
>
<
asp:ListItem
Value
=
"FK"
>Falkland Islands (Islas Malvinas)</
asp:ListItem
>
<
asp:ListItem
Value
=
"FO"
>Faroe Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"FJ"
>Fiji Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"FI"
>Finland</
asp:ListItem
>
<
asp:ListItem
Value
=
"FR"
>France</
asp:ListItem
>
<
asp:ListItem
Value
=
"GF"
>French Guiana</
asp:ListItem
>
<
asp:ListItem
Value
=
"PF"
>French Polynesia</
asp:ListItem
>
<
asp:ListItem
Value
=
"TF"
>French Southern and Antarctic Lands</
asp:ListItem
>
<
asp:ListItem
Value
=
"GA"
>Gabon</
asp:ListItem
>
<
asp:ListItem
Value
=
"GM"
>Gambia, The</
asp:ListItem
>
<
asp:ListItem
Value
=
"GE"
>Georgia</
asp:ListItem
>
<
asp:ListItem
Value
=
"DE"
>Germany</
asp:ListItem
>
<
asp:ListItem
Value
=
"GH"
>Ghana</
asp:ListItem
>
<
asp:ListItem
Value
=
"GI"
>Gibraltar</
asp:ListItem
>
<
asp:ListItem
Value
=
"GR"
>Greece</
asp:ListItem
>
<
asp:ListItem
Value
=
"GL"
>Greenland</
asp:ListItem
>
<
asp:ListItem
Value
=
"GD"
>Grenada</
asp:ListItem
>
<
asp:ListItem
Value
=
"GP"
>Guadeloupe</
asp:ListItem
>
<
asp:ListItem
Value
=
"GU"
>Guam</
asp:ListItem
>
<
asp:ListItem
Value
=
"GT"
>Guatemala</
asp:ListItem
>
<
asp:ListItem
Value
=
"GG"
>Guernsey</
asp:ListItem
>
<
asp:ListItem
Value
=
"GN"
>Guinea</
asp:ListItem
>
<
asp:ListItem
Value
=
"GW"
>Guinea-Bissau</
asp:ListItem
>
<
asp:ListItem
Value
=
"GY"
>Guyana</
asp:ListItem
>
<
asp:ListItem
Value
=
"HT"
>Haiti</
asp:ListItem
>
<
asp:ListItem
Value
=
"HM"
>Heard Island and McDonald Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"HN"
>Honduras</
asp:ListItem
>
<
asp:ListItem
Value
=
"HK"
>Hong Kong SAR</
asp:ListItem
>
<
asp:ListItem
Value
=
"HU"
>Hungary</
asp:ListItem
>
<
asp:ListItem
Value
=
"IS"
>Iceland</
asp:ListItem
>
<
asp:ListItem
Value
=
"IN"
>India</
asp:ListItem
>
<
asp:ListItem
Value
=
"ID"
>Indonesia</
asp:ListItem
>
<
asp:ListItem
Value
=
"IR"
>Iran</
asp:ListItem
>
<
asp:ListItem
Value
=
"IQ"
>Iraq</
asp:ListItem
>
<
asp:ListItem
Value
=
"IE"
>Ireland</
asp:ListItem
>
<
asp:ListItem
Value
=
"IM"
>Isle of Man</
asp:ListItem
>
<
asp:ListItem
Value
=
"IL"
>Israel</
asp:ListItem
>
<
asp:ListItem
Value
=
"IT"
>Italy</
asp:ListItem
>
<
asp:ListItem
Value
=
"JM"
>Jamaica</
asp:ListItem
>
<
asp:ListItem
Value
=
"JP"
>Japan</
asp:ListItem
>
<
asp:ListItem
Value
=
"JE"
>Jersey</
asp:ListItem
>
<
asp:ListItem
Value
=
"JO"
>Jordan</
asp:ListItem
>
<
asp:ListItem
Value
=
"KZ"
>Kazakhstan</
asp:ListItem
>
<
asp:ListItem
Value
=
"KE"
>Kenya</
asp:ListItem
>
<
asp:ListItem
Value
=
"KI"
>Kiribati</
asp:ListItem
>
<
asp:ListItem
Value
=
"KR"
>Korea</
asp:ListItem
>
<
asp:ListItem
Value
=
"KW"
>Kuwait</
asp:ListItem
>
<
asp:ListItem
Value
=
"KG"
>Kyrgyzstan</
asp:ListItem
>
<
asp:ListItem
Value
=
"LA"
>Laos</
asp:ListItem
>
<
asp:ListItem
Value
=
"LV"
>Latvia</
asp:ListItem
>
<
asp:ListItem
Value
=
"LB"
>Lebanon</
asp:ListItem
>
<
asp:ListItem
Value
=
"LS"
>Lesotho</
asp:ListItem
>
<
asp:ListItem
Value
=
"LR"
>Liberia</
asp:ListItem
>
<
asp:ListItem
Value
=
"LY"
>Libya</
asp:ListItem
>
<
asp:ListItem
Value
=
"LI"
>Liechtenstein</
asp:ListItem
>
<
asp:ListItem
Value
=
"LT"
>Lithuania</
asp:ListItem
>
<
asp:ListItem
Value
=
"LU"
>Luxembourg</
asp:ListItem
>
<
asp:ListItem
Value
=
"MO"
>Macao SAR</
asp:ListItem
>
<
asp:ListItem
Value
=
"MK"
>Macedonia, Former Yugoslav Republic of</
asp:ListItem
>
<
asp:ListItem
Value
=
"MG"
>Madagascar</
asp:ListItem
>
<
asp:ListItem
Value
=
"MW"
>Malawi</
asp:ListItem
>
<
asp:ListItem
Value
=
"MY"
>Malaysia</
asp:ListItem
>
<
asp:ListItem
Value
=
"MV"
>Maldives</
asp:ListItem
>
<
asp:ListItem
Value
=
"ML"
>Mali</
asp:ListItem
>
<
asp:ListItem
Value
=
"MT"
>Malta</
asp:ListItem
>
<
asp:ListItem
Value
=
"MH"
>Marshall Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"MQ"
>Martinique</
asp:ListItem
>
<
asp:ListItem
Value
=
"MR"
>Mauritania</
asp:ListItem
>
<
asp:ListItem
Value
=
"MU"
>Mauritius</
asp:ListItem
>
<
asp:ListItem
Value
=
"YT"
>Mayotte</
asp:ListItem
>
<
asp:ListItem
Value
=
"MX"
>Mexico</
asp:ListItem
>
<
asp:ListItem
Value
=
"FM"
>Micronesia</
asp:ListItem
>
<
asp:ListItem
Value
=
"MD"
>Moldova</
asp:ListItem
>
<
asp:ListItem
Value
=
"MC"
>Monaco</
asp:ListItem
>
<
asp:ListItem
Value
=
"MN"
>Mongolia</
asp:ListItem
>
<
asp:ListItem
Value
=
"MS"
>Montserrat</
asp:ListItem
>
<
asp:ListItem
Value
=
"MA"
>Morocco</
asp:ListItem
>
<
asp:ListItem
Value
=
"MZ"
>Mozambique</
asp:ListItem
>
<
asp:ListItem
Value
=
"MM"
>Myanmar</
asp:ListItem
>
<
asp:ListItem
Value
=
"NA"
>Namibia</
asp:ListItem
>
<
asp:ListItem
Value
=
"NR"
>Nauru</
asp:ListItem
>
<
asp:ListItem
Value
=
"NP"
>Nepal</
asp:ListItem
>
<
asp:ListItem
Value
=
"NL"
>Netherlands</
asp:ListItem
>
<
asp:ListItem
Value
=
"AN"
>Netherlands Antilles</
asp:ListItem
>
<
asp:ListItem
Value
=
"NC"
>New Caledonia</
asp:ListItem
>
<
asp:ListItem
Value
=
"NZ"
>New Zealand</
asp:ListItem
>
<
asp:ListItem
Value
=
"NI"
>Nicaragua</
asp:ListItem
>
<
asp:ListItem
Value
=
"NE"
>Niger</
asp:ListItem
>
<
asp:ListItem
Value
=
"NG"
>Nigeria</
asp:ListItem
>
<
asp:ListItem
Value
=
"NU"
>Niue</
asp:ListItem
>
<
asp:ListItem
Value
=
"NF"
>Norfolk Island</
asp:ListItem
>
<
asp:ListItem
Value
=
"KP"
>North Korea</
asp:ListItem
>
<
asp:ListItem
Value
=
"MP"
>Northern Mariana Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"NO"
>Norway</
asp:ListItem
>
<
asp:ListItem
Value
=
"OM"
>Oman</
asp:ListItem
>
<
asp:ListItem
Value
=
"PK"
>Pakistan</
asp:ListItem
>
<
asp:ListItem
Value
=
"PW"
>Palau</
asp:ListItem
>
<
asp:ListItem
Value
=
"PS"
>Palestinian Authority</
asp:ListItem
>
<
asp:ListItem
Value
=
"PA"
>Panama</
asp:ListItem
>
<
asp:ListItem
Value
=
"PG"
>Papua New Guinea</
asp:ListItem
>
<
asp:ListItem
Value
=
"PY"
>Paraguay</
asp:ListItem
>
<
asp:ListItem
Value
=
"PE"
>Peru</
asp:ListItem
>
<
asp:ListItem
Value
=
"PH"
>Philippines</
asp:ListItem
>
<
asp:ListItem
Value
=
"PN"
>Pitcairn Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"PL"
>Poland</
asp:ListItem
>
<
asp:ListItem
Value
=
"PT"
>Portugal</
asp:ListItem
>
<
asp:ListItem
Value
=
"PR"
>Puerto Rico</
asp:ListItem
>
<
asp:ListItem
Value
=
"QA"
>Qatar</
asp:ListItem
>
<
asp:ListItem
Value
=
"RE"
>Reunion</
asp:ListItem
>
<
asp:ListItem
Value
=
"RO"
>Romania</
asp:ListItem
>
<
asp:ListItem
Value
=
"RU"
>Russia</
asp:ListItem
>
<
asp:ListItem
Value
=
"RW"
>Rwanda</
asp:ListItem
>
<
asp:ListItem
Value
=
"WS"
>Samoa</
asp:ListItem
>
<
asp:ListItem
Value
=
"SM"
>San Marino</
asp:ListItem
>
<
asp:ListItem
Value
=
"ST"
>São Tomé and Príncipe</
asp:ListItem
>
<
asp:ListItem
Value
=
"SA"
>Saudi Arabia</
asp:ListItem
>
<
asp:ListItem
Value
=
"SN"
>Senegal</
asp:ListItem
>
<
asp:ListItem
Value
=
"YU"
>Serbia and Montenegro</
asp:ListItem
>
<
asp:ListItem
Value
=
"SC"
>Seychelles</
asp:ListItem
>
<
asp:ListItem
Value
=
"SL"
>Sierra Leone</
asp:ListItem
>
<
asp:ListItem
Value
=
"SG"
>Singapore</
asp:ListItem
>
<
asp:ListItem
Value
=
"SK"
>Slovakia</
asp:ListItem
>
<
asp:ListItem
Value
=
"SI"
>Slovenia</
asp:ListItem
>
<
asp:ListItem
Value
=
"SB"
>Solomon Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"SO"
>Somalia</
asp:ListItem
>
<
asp:ListItem
Value
=
"ZA"
>South Africa</
asp:ListItem
>
<
asp:ListItem
Value
=
"GS"
>South Georgia and the South Sandwich Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"ES"
>Spain</
asp:ListItem
>
<
asp:ListItem
Value
=
"LK"
>Sri Lanka</
asp:ListItem
>
<
asp:ListItem
Value
=
"SH"
>St. Helena</
asp:ListItem
>
<
asp:ListItem
Value
=
"KN"
>St. Kitts and Nevis</
asp:ListItem
>
<
asp:ListItem
Value
=
"LC"
>St. Lucia</
asp:ListItem
>
<
asp:ListItem
Value
=
"PM"
>St. Pierre and Miquelon</
asp:ListItem
>
<
asp:ListItem
Value
=
"VC"
>St. Vincent and the Grenadines</
asp:ListItem
>
<
asp:ListItem
Value
=
"SD"
>Sudan</
asp:ListItem
>
<
asp:ListItem
Value
=
"SR"
>Suriname</
asp:ListItem
>
<
asp:ListItem
Value
=
"SJ"
>Svalbard and Jan Mayen</
asp:ListItem
>
<
asp:ListItem
Value
=
"SZ"
>Swaziland</
asp:ListItem
>
<
asp:ListItem
Value
=
"SE"
>Sweden</
asp:ListItem
>
<
asp:ListItem
Value
=
"CH"
>Switzerland</
asp:ListItem
>
<
asp:ListItem
Value
=
"SY"
>Syria</
asp:ListItem
>
<
asp:ListItem
Value
=
"TW"
>Taiwan</
asp:ListItem
>
<
asp:ListItem
Value
=
"TJ"
>Tajikistan</
asp:ListItem
>
<
asp:ListItem
Value
=
"TZ"
>Tanzania</
asp:ListItem
>
<
asp:ListItem
Value
=
"TH"
>Thailand</
asp:ListItem
>
<
asp:ListItem
Value
=
"TP"
>Timor-Leste</
asp:ListItem
>
<
asp:ListItem
Value
=
"TG"
>Togo</
asp:ListItem
>
<
asp:ListItem
Value
=
"TK"
>Tokelau</
asp:ListItem
>
<
asp:ListItem
Value
=
"TO"
>Tonga</
asp:ListItem
>
<
asp:ListItem
Value
=
"TT"
>Trinidad and Tobago</
asp:ListItem
>
<
asp:ListItem
Value
=
"TA"
>Tristan da Cunha</
asp:ListItem
>
<
asp:ListItem
Value
=
"TN"
>Tunisia</
asp:ListItem
>
<
asp:ListItem
Value
=
"TR"
>Turkey</
asp:ListItem
>
<
asp:ListItem
Value
=
"TM"
>Turkmenistan</
asp:ListItem
>
<
asp:ListItem
Value
=
"TC"
>Turks and Caicos Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"TV"
>Tuvalu</
asp:ListItem
>
<
asp:ListItem
Value
=
"UG"
>Uganda</
asp:ListItem
>
<
asp:ListItem
Value
=
"UA"
>Ukraine</
asp:ListItem
>
<
asp:ListItem
Value
=
"AE"
>United Arab Emirates</
asp:ListItem
>
<
asp:ListItem
Selected
Value
=
"UK"
>United Kingdom</
asp:ListItem
>
<
asp:ListItem
Value
=
"US"
>United States</
asp:ListItem
>
<
asp:ListItem
Value
=
"UM"
>United States Minor Outlying Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"UY"
>Uruguay</
asp:ListItem
>
<
asp:ListItem
Value
=
"UZ"
>Uzbekistan</
asp:ListItem
>
<
asp:ListItem
Value
=
"VU"
>Vanuatu</
asp:ListItem
>
<
asp:ListItem
Value
=
"VA"
>Vatican City</
asp:ListItem
>
<
asp:ListItem
Value
=
"VE"
>Venezuela</
asp:ListItem
>
<
asp:ListItem
Value
=
"VN"
>Vietnam</
asp:ListItem
>
<
asp:ListItem
Value
=
"VI"
>Virgin Islands</
asp:ListItem
>
<
asp:ListItem
Value
=
"VG"
>Virgin Islands, British</
asp:ListItem
>
<
asp:ListItem
Value
=
"WF"
>Wallis and Futuna</
asp:ListItem
>
<
asp:ListItem
Value
=
"YE"
>Yemen</
asp:ListItem
>
<
asp:ListItem
Value
=
"ZM"
>Zambia</
asp:ListItem
>
<
asp:ListItem
Value
=
"ZW"
>Zimbabwe</
asp:ListItem
>
</
asp:DropDownList
>
</
td
>
</
tr
>
</
table
>
<
table
style
=
"width: 98%;"
>
<
tr
>
<
td
class
=
"style2"
>
<
asp:Label
ID
=
"Label27"
Text
=
"Which type of job are you interested in?"
runat
=
"server"
AssociatedControlID
=
"Postcode"
Font-Bold
=
"False"
/> *<
br
/>
<
asp:Label
ID
=
"Label28"
Text
=
"(hold 'control' and click to add multiple job types)"
runat
=
"server"
AssociatedControlID
=
"Postcode"
Font-Bold
=
"False"
/>
</
td
>
<
td
style
=
"text-align: right; margin-left: 80px;"
>
<
asp:ListBox
ID
=
"staff_select"
runat
=
"server"
Style
=
"text-align: left; margin-left: 0px"
Width
=
"218px"
Height
=
"105px"
OnSelectedIndexChanged
=
"staff_select_SelectedIndexChanged"
>
<
asp:ListItem
Selected
Value
=
"-1"
>[ Select ]</
asp:ListItem
>
<
asp:ListItem
Value
=
"Waitress"
>Waitress</
asp:ListItem
>
<
asp:ListItem
Value
=
"Waiter"
>Waiter</
asp:ListItem
>
<
asp:ListItem
Value
=
"Porter"
>Porter</
asp:ListItem
>
<
asp:ListItem
Value
=
"Kitchen Porter"
>Kitchen Porter</
asp:ListItem
>
<
asp:ListItem
Value
=
"Driver/Porter"
>Driver/Porter</
asp:ListItem
>
</
asp:ListBox
>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"style2"
>
<
asp:Label
ID
=
"Label29"
Text
=
"Nearest tube or train station"
runat
=
"server"
AssociatedControlID
=
"Postcode"
Font-Bold
=
"False"
/> *
</
td
>
<
td
style
=
"text-align: right; margin-left: 80px;"
>
<
asp:TextBox
ID
=
"closest_tube"
runat
=
"server"
Width
=
"74%"
ValidationGroup
=
"CVUpload"
/>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"style2"
>
<
asp:Label
ID
=
"Label30"
Text
=
"What is your current employment status?"
runat
=
"server"
AssociatedControlID
=
"Postcode"
Font-Bold
=
"False"
/> *
</
td
>
<
td
style
=
"text-align: right; margin-left: 80px;"
>
<
asp:DropDownList
ID
=
"occupation"
runat
=
"server"
Style
=
"text-align: right; margin-left: 0px"
OnSelectedIndexChanged
=
"occupation_SelectedIndexChanged"
>
<
asp:ListItem
Selected
Value
=
"-1"
>[ Select ]</
asp:ListItem
>
<
asp:ListItem
Value
=
"Full time employment"
>Full time employment</
asp:ListItem
>
<
asp:ListItem
Value
=
"Part time employment"
>Part time employment</
asp:ListItem
>
<
asp:ListItem
Value
=
"Retired"
>Retired</
asp:ListItem
>
<
asp:ListItem
Value
=
"Self employed"
>Self employed</
asp:ListItem
>
<
asp:ListItem
Value
=
"Student"
>Student</
asp:ListItem
>
</
asp:DropDownList
>
</
td
>
</
tr
>
<
tr
>
<
td
class
=
"style2"
>
<
asp:Label
ID
=
"Label31"
Text
=
"Which type of job are you interested in?"
runat
=
"server"
AssociatedControlID
=
"Postcode"
Font-Bold
=
"False"
/> *
</
td
>
<
td
style
=
"text-align: right; margin-left: 80px;"
>
<
asp:DropDownList
ID
=
"referee"
runat
=
"server"
OnSelectedIndexChanged
=
"referee_SelectedIndexChanged"
>
<
asp:ListItem
Selected
Value
=
"-1"
>[ Select ]</
asp:ListItem
>
<
asp:ListItem
Value
=
"1-A staff member"
>A staff member</
asp:ListItem
>
<
asp:ListItem
Value
=
"10-Kings Job Fair"
>Kings Job Fair</
asp:ListItem
>
<
asp:ListItem
Value
=
"2-Word of mouth"
>Word of mouth</
asp:ListItem
>
<
asp:ListItem
Value
=
"4-Newspaper"
>Newspaper</
asp:ListItem
>
<
asp:ListItem
Value
=
"3-University careers service"
>University careers service</
asp:ListItem
>
<
asp:ListItem
Value
=
"5-Gumtree"
>Gumtree</
asp:ListItem
>
<
asp:ListItem
Value
=
"11-BritBound"
>BritBound</
asp:ListItem
>
<
asp:ListItem
Value
=
"6-TNT"
>TNT</
asp:ListItem
>
<
asp:ListItem
Value
=
"7-Google"
>Google</
asp:ListItem
>
<
asp:ListItem
Value
=
"9-Other"
>Other</
asp:ListItem
>
<
asp:ListItem
Value
=
"8-Search engine"
>Search engine</
asp:ListItem
>
</
asp:DropDownList
>
</
td
>
</
tr
>
</
table
>
<
br
/>
<
br
/>
<
asp:Label
ID
=
"Label5"
Text
=
"How Did You Hear About Us?"
runat
=
"server"
AssociatedControlID
=
"HowDidYouHear"
Font-Bold
=
"True"
/>
<
telerik:RadComboBox
ID
=
"HowDidYouHear"
runat
=
"server"
onselectedindexchanged
=
"HowDidYouHear_SelectedIndexChanged"
>
<
Items
>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Internet Ad"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Mobile Phone Ad"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Social Network"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Television Ad"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Web Link"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Web Search"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Magazine Ad"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Other"
/>
</
Items
>
</
telerik:RadComboBox
>
<
br
/>
<
br
/>
<
asp:CustomValidator
ID
=
"Customvalidator1"
runat
=
"server"
Display
=
"Dynamic"
OnServerValidate
=
"Customvalidator1_ServerValidate"
>
<
span
style
=
"FONT-SIZE: 11px;"
>Invalid extensions.</
span
>
</
asp:CustomValidator
>
<%--<
asp:CustomValidator
ID
=
"Customvalidator2"
runat
=
"server"
Display
=
"Dynamic"
ClientValidationFunction
=
"validateRadUpload1"
onservervalidate
=
"Customvalidator1_ServerValidate"
>
<
span
style
=
"FONT-SIZE: 11px;"
>Invalid extensions.</
span
>
</
asp:CustomValidator
>--%>
<
telerik:RadProgressManager
ID
=
"Radprogressmanager1"
runat
=
"server"
/>
<
asp:Label
ID
=
"Label3"
Text
=
"Document Upload"
runat
=
"server"
AssociatedControlID
=
"RadUpload1"
Font-Bold
=
"True"
/><
br
/>
<
telerik:RadUpload
ID
=
"RadUpload1"
runat
=
"server"
AllowedFileExtensions
=
".doc,.docx,.pdf,.txt,.rtf"
MaxFileInputsCount
=
"1"
InputSize
=
"45"
ControlObjectsVisibility
=
"None"
/>
<
br
/>
<
telerik:RadProgressArea
ID
=
"progressArea1"
runat
=
"server"
/>
<
asp:Button
runat
=
"server"
ID
=
"SubmitButton"
Text
=
"Submit"
Width
=
"60px"
ValidationGroup
=
"CVUpload"
CausesValidation
=
"True"
OnClick
=
"SubmitButton_Click"
/>
<%--<
script
type
=
"text/javascript"
>
function validateRadUpload1(source, arguments)
arguments.IsValid = $find('<%= RadUpload1.ClientID %>').validateExtensions();
</
script
>--%>
ApplicationControl.ascx.cs
using
System;
using
System.Collections;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Linq;
using
System.Data;
using
System.Drawing;
using
System.Web;
using
System.Web.SessionState;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
System.Web.UI.HtmlControls;
namespace
SitefinityWebApp.Widgets.ApplicationControl.Resources.Views
public
partial
class
ApplicationControl : System.Web.UI.UserControl
protected
void
Page_Load(
object
sender, EventArgs e)
protected
void
SubmitButton_Click(
object
sender, EventArgs e)
protected
void
Customvalidator1_ServerValidate(
object
source, ServerValidateEventArgs args)
args.IsValid = (RadUpload1.InvalidFiles.Count == 0);
protected
void
Country_SelectedIndexChanged(
object
sender, EventArgs e)
protected
void
staff_select_SelectedIndexChanged(
object
sender, EventArgs e)
protected
void
occupation_SelectedIndexChanged(
object
sender, EventArgs e)
protected
void
referee_SelectedIndexChanged(
object
sender, EventArgs e)
protected
void
HowDidYouHear_SelectedIndexChanged(
object
sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
Have you tested this control outside Sitefinity? Others might be able to spot the problem in all the code posted above, but it's way too much for me to troubleshoot at a glance.
--
I've been through this stuff a lot. Here is my strategy for getting to the bottom of these issues:
1. Create a new ASPX page (test.aspx) in your Sitefinity website.
2. Toggle into Design mode of the ASPX page
3. Drag & drop your custom control onto the page.
4. Rebuild the web site
5. View the text.aspx page in your web browser.
The steps above take Sitefinity out of the equation. Yes, the ASPX page exists in a Sitefinity web site, but Sitefinity is no longer handling this page. Instead you're using traditional ASP.NET ASPX pages.
After following these steps, did it give an error? Google the error and/or post the error here. Also, feel free to backup all your work and then aggressively delete code until it starts working again. All of these things help turn a vague error into something specific that you (and we) can specifically target.
--
That's my advice. The real support guys (I'm just an opinionated evangelist) may have other tips. :)
Gabe Sumner
Evangelist
Telerik | Sitefinity CMS