如何用SqlDataSource控件调用存储过程来更新表

解决方案 »

  1.   

     <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                SelectCommand="prCheck" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:Parameter Name="strName" Type="String" />
                    <asp:Parameter Direction="InputOutput" Name="iReturn" Type="Int32" />
                </SelectParameters>
            </asp:SqlDataSource>
      

  2.   

    参考:http://blog.csdn.net/freeze_soul/archive/2007/09/11/1779987.aspx在页面中搜索“创建并使用参数化的存储过程”。