Guest User

Untitled

a guest
Jul 25th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 2.44 KB | None | 0 0
  1. <asp:TemplateField HeaderText="Soort" SortExpression="SoortNaam">
  2.                 <InsertItemTemplate>
  3.                     <asp:DropDownList ID="InsertSoortId" runat="server"
  4.             DataSourceID="InsertDierSoortDataSource"
  5.                         AppendDataBoundItems="true" DataTextField="Naam" DataValueField="SoortId"
  6.                         SelectedValue='<%# Bind("SoortId") %>'>
  7.                     </asp:DropDownList>
  8.                     <asp:ObjectDataSource ID="InsertDierSoortDataSource" runat="server"
  9.             OldValuesParameterFormatString="original_{0}"
  10.                         SelectMethod="GetDierSoortenOCByCategorieId" TypeName="DierSoortOCBLL">
  11.                         <SelectParameters>
  12.                             <asp:ControlParameter ControlID="InsertCategorieId" Name="CategorieId"
  13.                 PropertyName="SelectedValue" Type="Int32" DefaultValue="1"/>
  14.                         </SelectParameters>
  15.                     </asp:ObjectDataSource>
  16.                 </InsertItemTemplate>
  17.                 <ItemTemplate>
  18.                     <asp:Label ID="DummySoortId" runat="server" Text='<%# Bind("SoortId") %>'
  19.             Visible="False"></asp:Label>
  20.                     <asp:Label ID="SoortNaam" runat="server" Text='<%# Eval("SoortNaam") %>'></asp:Label>
  21.                 </ItemTemplate>
  22.             </asp:TemplateField>
  23.             <asp:TemplateField HeaderText="Categorie" SortExpression="CategorieNaam">
  24.                 <InsertItemTemplate>
  25.                     <asp:DropDownList ID="InsertCategorieId" runat="server"
  26.             DataSourceID="InsertDierCategorieDataSource"
  27.                         AppendDataBoundItems="true" DataTextField="Naam" DataValueField="CategorieId"
  28.                         SelectedValue='<%# Bind("CategorieId") %>' AutoPostBack="true">
  29.                     </asp:DropDownList>
  30.                     <asp:ObjectDataSource ID="InsertDierCategorieDataSource" runat="server"
  31.             OldValuesParameterFormatString="original_{0}"
  32.                         SelectMethod="GetDierCategorieĆ«nOC" TypeName="DierCategorieOCBLL">
  33.                     </asp:ObjectDataSource>
  34.                 </InsertItemTemplate>
  35.                 <ItemTemplate>
  36.                     <asp:Label ID="DummyCategorieId" runat="server" Text='<%# Bind("CategorieId") %>'
  37.             Visible="False"></asp:Label>
  38.                     <asp:Label ID="CategorieNaam" runat="server" Text='<%# Eval("CategorieNaam") %>'>
  39.             </asp:Label>
  40.                 </ItemTemplate>
  41.             </asp:TemplateField>
Add Comment
Please, Sign In to add comment