MTSkull
Centurion
I am trying to tie a sqlDatasource to a Stored Procedure.
The stored procedure looks like...
Then the asp page is accessed via ...
In the code behind I can access and use Super ID no problem, but when I try to set up the SQL data source to access super ID it returns nothing.
My gridview is bound to the following control.
Thanks in advance...
Brian
The stored procedure looks like...
Code:
dbo.Select_SomeData_BySuperAssemID
(@SuperAssemID as int)
Select *
From SomeTable
Where SuperAssemID= @SuperAssemID
Then the asp page is accessed via ...
Code:
Response.Redirect("DataPage.aspx?SuperID=" + ID);
In the code behind I can access and use Super ID no problem, but when I try to set up the SQL data source to access super ID it returns nothing.
My gridview is bound to the following control.
Code:
<asp:SqlDataSource ID="sqlSubAssemblies" runat="server"
ConnectionString="<%$ ConnectionStrings:MyConnStr %>"
SelectCommand="Select_SomeData_BySuperID"
SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:SessionParameter Name="SuperAssemID"
SessionField="SuperID" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
Thanks in advance...
Brian