ASP.NET Super Form - Multi Select ListBox Field

Customer Details
Customer IDWOLZA
Company Name
Contact Name
Countries
  • Afghanistan1
  • Albania2
  • Algeria3
  • American Samoa4
  • Andorra5
  • Angola6
  • Anguilla7
  • Antigua and Barbuda8
  • Argentina9
  • Armenia10
  • Aruba11
  • Australia12
  • Austria13
  • Azerbaijan14
  • Bahamas15
  • Bahrain16
  • Bangladesh17
  • Barbados18
  • Belarus19
  • Belgium20
  • Belize21
  • Benin22
  • Bermuda23
  • Bhutan24
  • Bolivia25
  • Bosnia and Herzegovina26
  • Botswana27
  • Brazil28
  • British Indian Ocean Territory29
  • British Virgin Islands30
  • Brunei31
  • Bulgaria32
  • Burkina Faso33
  • Burma34
  • Burundi35
  • Cambodia36
  • Cameroon37
  • Canada38
  • Cape Verde39
  • Cayman Islands40
  • Central African Republic41
  • Chad42
  • Chile43
  • China44
  • Colombia45
  • Comoros46
  • Congo Democratic Republic47
  • Congo Republic48
  • Cook Islands49
  • Costa Rica50
  • Cote Divoire51
  • Croatia52
  • Cuba53
  • Cyprus54
  • Czech Republic55
  • Denmark56
  • Djibouti57
  • Dominica58
  • Dominican Republic59
  • East Timor60
  • Egypt61
  • El Salvador62
  • England63
  • Equador64
  • Equatorial Guinea65
  • Eritrea66
  • Estonia67
  • Ethiopia68
  • Falkland Islands69
  • Faroe Islands70
  • Fiji71
  • Finland72
  • France73
  • French Polynesia74
  • Gabon75
  • Gambia76
  • Georgia77
  • Germany78
  • Ghana79
  • Gibraltar80
  • Great Britain81
  • Greece82
  • Greenland83
  • Grenada84
  • Guam85
  • Guatemala86
  • Guernsey87
  • Guinea88
  • Guinea Bissau89
  • Guyana90
  • Haiti91
  • Honduras92
  • Hong Kong93
  • Hungary94
  • Iceland95
  • India96
  • Indonesia97
  • Iran98
  • Iraq99
  • Ireland100
  • Isle of Man101
  • Israel102
  • Italy103
  • Jamaica104
  • Japan105
  • Jersey106
  • Jordan107
  • Kazakhstan108
  • Kenya109
  • Kiribati110
  • Kuwait111
  • Kyrgyzstan112
  • Laos113
  • Latvia114
  • Lebanon115
  • Lesotho116
  • Liberia117
  • Libya118
  • Liechtenstein119
  • Lithuania120
  • Luxembourg121
  • Macau122
  • Macedonia123
  • Madagascar124
  • Malawi125
  • Malaysia126
  • Maledives127
  • Mali128
  • Malta129
  • Marshall Islands130
  • Martinique131
  • Mauretania132
  • Mauritius133
  • Mexico134
  • Micronesia135
  • Moldova136
  • Monaco137
  • Mongolia138
  • Montserrat139
  • Morocco140
  • Mozambique141
  • Namibia142
  • Nauru143
  • Nepal144
  • Netherlands145
  • Netherlands Antilles146
  • New Zealand147
  • Nicaragua148
  • Niger149
  • Nigeria150
  • Niue151
  • Norfolk Island152
  • North Korea153
  • Northern Mariana Islands154
  • Norway155
  • Oman156
  • Pakistan157
  • Palau158
  • Panama159
  • Papua New Guinea160
  • Paraquay161
  • Peru162
  • Philippines163
  • Pitcairn Islands164
  • Poland165
  • Portugal166
  • Puerto Rico167
  • Qatar168
  • Romania169
  • Russia170
  • Rwanda171
  • Saint Helena172
  • Saint Kitts and Nevis173
  • Saint Lucia174
  • Saint Pierre and Miquelon175
  • Saint Vincent and the Grenadines176
  • Samoa177
  • San Marino178
  • Sao Tome and Principe179
  • Saudi Arabia180
  • Scotland181
  • Senegal182
  • Serbia Montenegro183
  • Seychelles184
  • Sierra Leone185
  • Singapore186
  • Slovakia187
  • Slovenia188
  • Solomon Islands189
  • Somalia190
  • South Africa191
  • South Georgia192
  • South Korea193
  • Spain194
  • Sri Lanka195
  • Sudan196
  • Suriname197
  • Swaziland198
  • Sweden199
  • Switzerland200
  • Syria201
  • Taiwan202
  • Tajikistan203
  • Tanzania204
  • Thailand205
  • Tibet206
  • Togo207
  • Tonga208
  • Trinidad and Tobago209
  • Tunisia210
  • Turkey211
  • Turkmenistan212
  • Turks and Caicos Islands213
  • Tuvalu214
  • Uganda215
  • Ukraine216
  • United Arab Emirates217
  • Uruquay218
  • USA219
  • Uzbekistan220
  • Vanuatu221
  • Vatican City222
  • Venezuela223
  • Vietnam224
  • Virgin Islands225
  • Wales226
  • Wallis and Futuna227
  • Yemen228
  • Zambia229
  • Zimbabwe230
Update
 
Cancel
12345678910...
Use the TemplateField class to gain full control over the layout of the field.
A TemplateField allows developers to specify different templates for view / add / edit modes.

This example showcases the use of a TemplateField object for the "Countries" field.
Using the TemplateField class we can use a Multi Select ListBox to edit the data from the field.
ASP.NET
<obout:SuperForm ID="SuperForm1"
     runat="server"
     DataSourceID="SqlDataSource1"
     AutoGenerateRows="false">
    <Fields>
        <obout:TemplateField HeaderText="Country">
            <ItemTemplate>
                <%# GetCountries(Eval("CountryIds").ToString()) %>
            </ItemTemplate>
            <EditItemTemplate>
                    <obout:ListBox runat="server" ID="CountryIds" DataSourceID="SqlDataSource2"
                     DataValueField="CountryID" DataTextField="CountryName" SelectionMode="Multiple"
                    SelectedValue='<%# Eval("CountryIds").ToString() %>' />
            </EditItemTemplate>
        </obout:TemplateField>
    </Fields>
</obout:SuperForm>

"I wanted to say this is probably the best set of tools I have ever worked with, but the fact that you guys answer questions is phenomenal. I recommend your stuff to every developer I talk to. "

Karl Wilkens
Multiweb Communications, Inc.

Random testimonial   All testimonials

obout.com 
obout.com Home 
News 
Super Form Home   
Super Form Home 
Examples - 64
First Look - 2 
Quick Setup 
Checkout 
Appearance - 3 
Live Styles 
Live Styles for DateFields New 
Auto Format 
Fields - 10 
Auto Generate Fields 
BoundField 
CheckBoxField 
CommandField 
DateField 
DateField with Time New 
DropDownListField 
MultiLineField 
Password Field New 
TemplateField 
Add / Edit / Delete - 7 
Auto Generate Command Buttons 
Customize Command Buttons 
Request User Confirmation 
Add-Only Form 
Edit-Only Form New 
Default Values for Add New 
Save using Stored Procedures New 
Layout - 7 
Vertical / Horizontal Direction 
Field Sets 
Field Sets with Column Span 
Field Sets with Tabs New 
Multi-Step Wizard New 
Multi-Step Survey New 
Width 
Master / Detail - 4 
Master Grid 
Master ComboBox 
Master ListBox 
Add / Edit in Separate Page 
Templates - 11 
ComboBox Field 
On-Demand ComboBox Field New 
Cascading ComboBox Field 
MultiLevel ComboBox Field 
Multi Select ComboBox Field 
ListBox Field 
Multi Select ListBox Field 
HTML Editor Field  
FileUpload Field 
CheckBoxList Field 
RadioButtonList Field 
Validation - 9 
Required Fields 
Type Validation 
ReqEx & Custom Validation 
Validation Summary 
Validator Callout 
Validate Super Form inside Grid New 
Validate Custom DropDownListField New 
Validate using CompareValidator New 
Validate Linked Fields New 
Masks / Filters - 2 
Edit Masks 
Filters 
Linked Fields / Buttons - 4 
Enable / Disable Command Buttons 
Enable / Disable Linked Fields 
Show / Hide Linked Fields 
Conditional Linked Fields 
Client Side API - 1 
External Buttons New 
Server Side API - 1 
Focus New 
Localization - 1 
Localize Date Fields New 
Integration - 2 
Row Edit Template for Grid New 
Grid Editor inside Window New 
Knowledge Base - 1 
Knowledge Base 
Documentation - 6 
Server-Side 
ClientSideEvents 
Direction 
FieldSet 
FieldSetRow 
SuperForm 
ChangeLog