marconannini
Technical User
--------------------------------------------------------------------------------
I am developing a webpage using Visual Web Developer Express. I have created a GridView linked to a stored procedure in an SQL Database that takes one parameter. I have tested it using a default valued for the parameter and it works fine.
However, i need to pass the current logged in username as an input parameter. I have looked around and all example are for passing parameters to the select command but nothing that i found works for stored procedures.
I know how to get the username, but i dont know how to pass it to the stored procedure i'm calling with sqldatasource.
Cheers, M.
I am developing a webpage using Visual Web Developer Express. I have created a GridView linked to a stored procedure in an SQL Database that takes one parameter. I have tested it using a default valued for the parameter and it works fine.
However, i need to pass the current logged in username as an input parameter. I have looked around and all example are for passing parameters to the select command but nothing that i found works for stored procedures.
I know how to get the username, but i dont know how to pass it to the stored procedure i'm calling with sqldatasource.
Cheers, M.