首页 新闻 会员 周边 捐助

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

0
悬赏园豆:20 [已解决问题] 解决于 2011-02-23 15:53

/*************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);
        }

 

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

zhuakelly的主页 zhuakelly | 初学一级 | 园豆:130
提问于:2011-02-23 13:52
< >
分享
最佳答案
0

出现这个提示,应该还是参数错了,楼主再测试测试.

收获园豆:20
Localhost | 菜鸟二级 |园豆:443 | 2011-02-23 14:03
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册