asked on
<asp:SqlDataSource ID="ASQCPAReportRequest" runat="server"
ConnectionString="<%$ ConnectionStrings:WebAppsConnectionString %>"
SelectCommand="SELECT * FROM [tbl_ReportRequest]"
InsertCommand="Insert into [tbl_ReportRequest]
([Frequency]
Values (@Frequency)">
<InsertParameters>
<asp:Parameter Name="Frequency" Type="string" />
</InsertParameters>
</asp:SqlDataSource>
<asp:FormView ID="FormView1" runat="server" AllowPaging="True" DataSourceID="ASQCPAReportRequest"
DefaultMode="Insert" Width="305px" OnPageIndexChanging="FormView1_PageIndexChanging1">
<InsertItemTemplate>
<table border="1">
<tr>
<td align="right">
Frequency:
</td>
<td>
<asp:DropDownList ID="ddlFrequency" DataSourceID="ASQCPAReportRequest" DataValueField='<%# Bind("Frequency") %>' runat="server">
<asp:ListItem Text="Ad Hoc" Value="Ad Hoc">Ad Hoc</asp:ListItem>
<asp:ListItem Text="Daily" Value="Daily">Daily</asp:ListItem>
<asp:ListItem Text="Weekly" Value="Weekly">Weekly</asp:ListItem>
<asp:ListItem Text="Monthly" Value="Monthly">Monthly</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</table>
</InsertItemTemplate>
</asp:FormView>