您的位置:程序门 -> .net技术 -> asp.net



请问sqldatasource配置数据源能否是一个带参数的存储过程?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


请问sqldatasource配置数据源能否是一个带参数的存储过程?[已结贴,结贴人:penbi]
发表于:2007-04-17 23:09:57 楼主
sqldatasource配置数据源是一个带参数存储过程?该怎么搞呢?
发表于:2007-04-17 23:57:251楼 得分:20
<asp:sqldatasource   id= "sqldatasource1 "   runat= "server "   connectionstring= " <%$   connectionstrings:testconnectionstring   %> "                         selectcommand= "p1 "   selectcommandtype= "storedprocedure ">                         <selectparameters>                                 <asp:parameter   defaultvalue= "hello "   name= "name "   type= "string "   />                         </selectparameters>                 </asp:sqldatasource>
发表于:2007-04-17 23:59:182楼 得分:10
selectcommandtype   selectparameters。。。
和command方法一样用
可以看   http://www.cnblogs.com/yiki/archive/2007/01/09/615458.aspx


快速检索

最新资讯
热门点击