< br > < asp : DropDownList ID = " DropDownList1 " runat = " server "
DataSourceID = " SqlDataSource2 " DataTextField
= " Ruimte " DataValueField = " Ruimte "
SelectedValue = ' < % # Bind ( " Area " ) ID = " Label1 " runat = " server " Text = ' < % # Bind ( " Area " ) ID = " SqlDataSource1 " runat = " server "
ConnectionString
= " < % $ connectionStrings : NORTHWNDConnectionString % > "
DeleteCommand = " DELETE FROM [ Werknemers ] WHERE [ Land ] = @ land "
InsertCommand = " INSERT INTO [ Medewerkers ] ( [ Bevolking ] , [ Capitool ] , [ Gemaakt ] , [Gebied ] ) VALUES ( @ Bevolking , @ Capitool , @ Gemaakt , @ Area ) " < br >
SelectCommand = " SELECT [ Land ] , [ Bevolking ] , [ Capitool ] , [ Gemaakt ] , [Gebied ] FROM [ Werknemers ] "
UpdateCommand = " UPDATE [ Werknemers ] SET [ Bevolking ] = @ Bevolking , [ Capitool ] = @ Capitol , [ Gemaakt ] = @ Gemaakt , [Gebied ] = @ Area WHERE [ Land ] = @ Land " >
< , asp : Parameter Name = " Land " type = " Int32 " >
>
< asp /< /DeleteParameters : Parameter Naam = " Bevolking " type = " String " />
Name="Capitol" Type="String" />
< asp : Parameter Name = " gemaakt "Type = " DateTime " />
Name="Area" Type="String" />
< asp : Parameter Name = " Land " type = " Int32 " />
< /UpdateParameters >
< asp : Parameter Name = " Bevolking " type = " String " />
Name="Capitol" Type="String" /> Name="Created" Type="DateTime" /> ; Name="Area" Type="String" />
< /InsertParameters >
< /asp : SqlDataSource > < br >
Klik 4 " File ", " Opslaan " om een column te maken op een GridView in de geografische keuzelijst objecten .