By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 1,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

stored procedure in VB binding source?

P: n/a
I'm using a datagrid, and have it get its data from a stored procedure. I've set up a table adaptor and related binding source pointing to my stored procedure, but can't figure out how to pass a parameter to the SP through the binding source. (I know I could do it by setting up connection and command objects, building the"Execute" sql string, etc., but I'm already using that grid to get data from a query using the binding source, and would like to be consistent.) Thanks.

Joe

Apr 2 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a

<asp:SqlDataSource
id="SqlDataSource1"
runat="server"
DataSourceMode="DataReader"
ConnectionString="......."
SelectCommand="MyProc param1, param2">
</asp:SqlDataSource>

<asp:GridView
id="GridView1"
runat="server"
DataSourceID="SqlDataSource1">
</asp:GridView>
"Joe Befumo" <jo*@befumo.com> wrote in message news:44***********************@news.newsdemon.com. ..
I'm using a datagrid, and have it get its data from a stored procedure. I've set up a table adaptor and related binding source pointing to my stored procedure, but can't figure out how to pass a parameter to the SP through the binding source. (I know I could do it by setting up connection and command objects, building the"Execute" sql string, etc., but I'm already using that grid to get data from a query using the binding source, and would like to be consistent.) Thanks.

Joe

Apr 2 '06 #2

P: n/a
thanks a bunch -- I'll give that a try.

Joe
"Alexey Smirnov" <removeit.hello_at_smalig.com> wrote in message news:OF**************@TK2MSFTNGP12.phx.gbl...

<asp:SqlDataSource
id="SqlDataSource1"
runat="server"
DataSourceMode="DataReader"
ConnectionString="......."
SelectCommand="MyProc param1, param2">
</asp:SqlDataSource>

<asp:GridView
id="GridView1"
runat="server"
DataSourceID="SqlDataSource1">
</asp:GridView>
"Joe Befumo" <jo*@befumo.com> wrote in message news:44***********************@news.newsdemon.com. ..
I'm using a datagrid, and have it get its data from a stored procedure. I've set up a table adaptor and related binding source pointing to my stored procedure, but can't figure out how to pass a parameter to the SP through the binding source. (I know I could do it by setting up connection and command objects, building the"Execute" sql string, etc., but I'm already using that grid to get data from a query using the binding source, and would like to be consistent.) Thanks.

Joe

Apr 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.