Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <asp:TemplateField HeaderText="Soort" SortExpression="SoortNaam">
- <InsertItemTemplate>
- <asp:DropDownList ID="InsertSoortId" runat="server"
- DataSourceID="InsertDierSoortDataSource"
- AppendDataBoundItems="true" DataTextField="Naam" DataValueField="SoortId"
- SelectedValue='<%# Bind("SoortId") %>'>
- </asp:DropDownList>
- <asp:ObjectDataSource ID="InsertDierSoortDataSource" runat="server"
- OldValuesParameterFormatString="original_{0}"
- SelectMethod="GetDierSoortenOCByCategorieId" TypeName="DierSoortOCBLL">
- <SelectParameters>
- <asp:ControlParameter ControlID="InsertCategorieId" Name="CategorieId"
- PropertyName="SelectedValue" Type="Int32" DefaultValue="1"/>
- </SelectParameters>
- </asp:ObjectDataSource>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="DummySoortId" runat="server" Text='<%# Bind("SoortId") %>'
- Visible="False"></asp:Label>
- <asp:Label ID="SoortNaam" runat="server" Text='<%# Eval("SoortNaam") %>'></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:TemplateField HeaderText="Categorie" SortExpression="CategorieNaam">
- <InsertItemTemplate>
- <asp:DropDownList ID="InsertCategorieId" runat="server"
- DataSourceID="InsertDierCategorieDataSource"
- AppendDataBoundItems="true" DataTextField="Naam" DataValueField="CategorieId"
- SelectedValue='<%# Bind("CategorieId") %>' AutoPostBack="true">
- </asp:DropDownList>
- <asp:ObjectDataSource ID="InsertDierCategorieDataSource" runat="server"
- OldValuesParameterFormatString="original_{0}"
- SelectMethod="GetDierCategorieƫnOC" TypeName="DierCategorieOCBLL">
- </asp:ObjectDataSource>
- </InsertItemTemplate>
- <ItemTemplate>
- <asp:Label ID="DummyCategorieId" runat="server" Text='<%# Bind("CategorieId") %>'
- Visible="False"></asp:Label>
- <asp:Label ID="CategorieNaam" runat="server" Text='<%# Eval("CategorieNaam") %>'>
- </asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
Add Comment
Please, Sign In to add comment