S
staeri
I want to insert values from the querystring but nothing happens with
this code (the sp works great from the Query Analyzer):
<form id="form1" runat="server">
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString
%>"InsertCommand="spSearch_row_insert"
InsertCommandType="StoredProcedure">
<InsertParameters>
<asp:QueryStringParameter Name="CustomerID" QueryStringField="1"
DefaultValue="1" Type="String" />
<asp:QueryStringParameter Name="SearchID" QueryStringField="2"
DefaultValue="1" Type="String"/>
<asp:QueryStringParameter Name="SearchDate" QueryStringField="3"
DefaultValue="1" Type="String" />
<asp:QueryStringParameter Name="IP" QueryStringField="4"
DefaultValue="1" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
</form>
I'm very grateful for help!
Regards,
S
this code (the sp works great from the Query Analyzer):
<form id="form1" runat="server">
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString
%>"InsertCommand="spSearch_row_insert"
InsertCommandType="StoredProcedure">
<InsertParameters>
<asp:QueryStringParameter Name="CustomerID" QueryStringField="1"
DefaultValue="1" Type="String" />
<asp:QueryStringParameter Name="SearchID" QueryStringField="2"
DefaultValue="1" Type="String"/>
<asp:QueryStringParameter Name="SearchDate" QueryStringField="3"
DefaultValue="1" Type="String" />
<asp:QueryStringParameter Name="IP" QueryStringField="4"
DefaultValue="1" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
</form>
I'm very grateful for help!
Regards,
S