未能找到带参数的非泛型方法

/*************web*****************/

<asp:ObjectDataSource ID="odsGzgl" runat="server" TypeName="YaKeSecurity.BLL.rygl"
        SelectMethod="GetJsyGz">
        <SelectParameters>
                <asp:SessionParameter Name="gsID" SessionField="gsID"/>
        </SelectParameters>
    </asp:ObjectDataSource>
    <div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" id="table11">
            <tr>
                <td>
                    <fieldset>
                        <legend>查询结果</legend>
                        <asp:GridView ID="gv" runat="server" AutoGenerateColumns="false"
                            DataSourceID="odsGzgl">
                            <Columns>                                                                                                                                                  
                                <asp:BoundField DataField="gz" HeaderText="工资" />                                                          
                            </Columns>
                            <EmptyDataTemplate>
                                <strong>查询无结果</strong>
                            </EmptyDataTemplate>
                        </asp:GridView>
                    </fieldset>
                </td>
            </tr>
        </table>
    </div>

 

/************************ BLL 逻辑层 *******************/

public static DataSet GetJsyGz(int gsID)
        {
            bool print = false;
            DbCommand dc = db.GetStoredProcCommand("p_aqscjygl_rygl_GetJsyGz", gsID, print);
            return db.ExecuteDataSet(dc);
        }

 

我看了一遍又一遍的参数 都没看出什么 麻烦大家帮我看看 到底哪儿错了 拜谢了

阿晨1998
浏览 440回答 1
1回答

MM们

出现这个提示,应该还是参数错了,楼主再测试测试.
打开App,查看更多内容
随时随地看视频慕课网APP