Since I have to require site registration for readers to use Comment Notification, I wanted to eliminate the frustration I always have when I use the DNN Registration Form.
That frustration is when I fire up the form, I don't want it to default to JAPAN as the country, then select “U” and have UGANDA displayed, requiring 3 or 4 keystrokes downward to find UNITED STATES, then an autopostback, and you can select your state. I looked for a DNN Host or Admin Site Settings option to change the default, but I didn't see any. So instead of doing exploratory code surgery I added a couple lines of code to default the country dropdown to UNITED STATES, with the STATE dropdown ready for action.
in /controls/address.ascx.vb
Select Case LCase(_CountryData)
Case "text"
If Not cboCountry.Items.FindByText(_Country) Is Nothing Then
cboCountry.ClearSelection()
cboCountry.Items.FindByText(_Country).Selected = True
Else
'DBVT Code Begin
cboCountry.ClearSelection()
cboCountry.Items.FindByText("United States").Selected = True
'DBVT Code End
End If
Case "value"
If Not cboCountry.Items.FindByValue(_Country) Is Nothing Then
cboCountry.ClearSelection()
cboCountry.Items.FindByValue(_Country).Selected = True
End If
End Select