J
jobs
I presumed you could do this.. and so I coded it up .. but I get this
error:
DataBinding: 'System.Data.DataRowView' does not contain a property
with the name 'iProductCode'
<asp:FormView ID="RouteFormView" runat="server"
DataSourceID="DestandRouteInsertSource"
DefaultMode="Insert" SkinID="FormView" BorderColor="Transparent"
BackColor="Transparent"
GridLines="Both">
<InsertItemTemplate>
<table>
<tr>
<td>
<asp:Label ID="iProductCodeLabel" runat="server"
Text="iProductCode:"></asp:Label></td>
<td>
<asp
ropDownList ID="iProductCodeList" runat="server"
DataValueField="iProductCode"
DataTextField="iProductCode" SelectedValue='<%# Bind("iProductCode")
%>' DataSourceID="iProductCodesource">
</asp
ropDownList><br />
</td>
</tr>
.... continues
the source:
<asp:SqlDataSource ID="DestandRouteInsertSource" runat="server"
ConnectionString="<%$ ConnectionStrings:RTEConnectionString %>"
InsertCommand="GEN_ADM_CreateDestandRoutes_sp"
InsertCommandType="StoredProcedure">
<InsertParameters>
<asp
arameter Name="iDestCode" Type="string" />
<asp
arameter Name="iProductCode" Type="string" />
<asp
arameter Name="iLocationType" Type="string" />
<asp
arameter Name="iDestMainArea" Type="string" />
.... continues
Please say it isn't so.
Thanks.
error:
DataBinding: 'System.Data.DataRowView' does not contain a property
with the name 'iProductCode'
<asp:FormView ID="RouteFormView" runat="server"
DataSourceID="DestandRouteInsertSource"
DefaultMode="Insert" SkinID="FormView" BorderColor="Transparent"
BackColor="Transparent"
GridLines="Both">
<InsertItemTemplate>
<table>
<tr>
<td>
<asp:Label ID="iProductCodeLabel" runat="server"
Text="iProductCode:"></asp:Label></td>
<td>
<asp
DataValueField="iProductCode"
DataTextField="iProductCode" SelectedValue='<%# Bind("iProductCode")
%>' DataSourceID="iProductCodesource">
</asp
</td>
</tr>
.... continues
the source:
<asp:SqlDataSource ID="DestandRouteInsertSource" runat="server"
ConnectionString="<%$ ConnectionStrings:RTEConnectionString %>"
InsertCommand="GEN_ADM_CreateDestandRoutes_sp"
InsertCommandType="StoredProcedure">
<InsertParameters>
<asp
<asp
<asp
<asp
.... continues
Please say it isn't so.
Thanks.