views:

26

answers:

1

My colleague wants to connect a Gridview's datasource to a dynamic Stored procedures. The Stored procedure is not showing up in the list so I put the stored procedure in the select command. I need to pass it parts of sql statements and not just regular string parameters. How can i accomplish this?

A: 

You can code it like this article.

http://www.aspnettutorials.com/tutorials/database/db-storedprocs-aspnet2-csharp.aspx

Jason Too Cool Webs
otherwise skip down to #3 here. then enter your stored proc and params directly in the Markup skipping the wizard.http://www.asp.net/%28S%28pdfrohu0ajmwt445fanvj2r3%29%29/learn/data-access/tutorial-48-vb.aspx
Jason Too Cool Webs