Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <asp:DetailsView ID="grd_empDetails" runat="server" DataSourceID="empDataSource" DataKeyNames="EmployeeID" DefaultMode="Insert" AutoGenerateRows="false">
- <Fields>
- <asp:BoundField HeaderText="First Name" DataField="FirstName" />
- <asp:TemplateField HeaderText="Type of Employee">
- <ItemTemplate>
- <asp:DropDownList ID="empType" runat="server" DataValueField="empType" AppendDataBoundItems="true">
- <asp:ListItem Text="Full Time" Value="1" />
- <asp:ListItem Text="Part Time" Value="2" />
- <asp:ListItem Text="Subcontractor or 1099" Value="3" />
- <asp:ListItem Text="Intern" Value="4" />
- </asp:DropDownList>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:CommandField ShowInsertButton="true" ShowCancelButton="true" />
- </Fields>
- </asp:DetailsView>
- <asp:TemplateField HeaderText="Type of Employee">
- <ItemTemplate>
- <asp:DropDownList ID="empType" runat="server" DataValueField="empType" SelectedValue='<%#Bind("empType") %>'>
- <asp:ListItem Text="Full Time" Value="1" />
- <asp:ListItem Text="Part Time" Value="2" />
- <asp:ListItem Text="Subcontractor or 1099" Value="3" />
- <asp:ListItem Text="Intern" Value="4" />
- </asp:DropDownList>
- </ItemTemplate>
- </asp:TemplateField>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement