I am in trouble with a problem in which , i put my procedure name in database and now i want to call it from windows form . but i do not know how to start with it .
Please follow this simple example for your reference : I call a procedure named "OpenFormInventory" and what i want to do is call this procedure in code below :
public void CallProcedure ( string NameProc)
{
// codes to call procedure named NameProc here
}
and then call from anywhere : CallProcedure("OpenFormInventory");
---------------------------------------------------------------------------------------------------
Thank you in advance .
Call a function or procedure using text as its name
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jaish MathewsRank #225 · 11K reputationPosted Apr 27, 2010, 11:57 PM EDT
Read this for a full example
http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson07.aspx
Minh5 reputationPosted Apr 30, 2010, 3:21 AM EDT