向sqldatasource传递参数
<input id= "tbBookNum " runat= "server " type= "text " />
<asp:SqlDataSource ID= "SqlDataSource " runat= "server " ConnectionString= " <%$ ConnectionStrings:InfoMasterConstr %> "
SelectCommand= "SELECT * FROM [vw_info_printSign] WHERE ([bookNum] = @bookNum) ">
<SelectParameters>
<asp:Parameter Name= "bookNum " Type= "String " />
</SelectParameters>
</asp:SqlDataSource>
这里怎么吧tbbooknum的值传递给SelectParameter啊
[解决办法]
将 <input id= "tbBookNum " runat= "server " type= "text " />
改为
<asp:TextBox ID= "tbBookNum " runat= "server "> </asp:TextBox>
再
<SelectParameters>
<asp:ControlParameter ControlID= "tbbooknum " Name= "bookNum " PropertyName= "Text " />
</SelectParameters>