Hi Valentin,
Thanx for the quick reply. Can you please tell me if it is possible to pass the values from a C# class library to the silverlight page (in another project) as well.
Actually i am calling a stored procedure that has an
output parametrs in my data access layer (.cs file) as shown below-
public
DataSet GetWorkflowDetails(string userName,string selectedStage)
{
DataSet dtWorkflowDetails = new DataSet();
SqlParameter[] spParamaters = new SqlParameter[2];
spParamaters[0] =
new SqlParameter("@USERNAME",userName);
spParamaters[1] =
new SqlParameter("@SELECTED_WORKFLOW_STAGE", SqlDbType.VarChar, 50, selectedStage);
spParamaters[1].Direction =
ParameterDirection.Output;
using (DataAccess dataAccess = new DataAccess())
{
dtWorkflowDetails = dataAccess.DataSetFromStoredProcedure(
"SP_InboxWorkflowStatus", spParamaters);
selectedStage = spParamaters[1].Value.ToString();
//CommonMethods.WriteToLogFile(checkStage, string.Empty);
}
return dtWorkflowDetails;
}
The web service that I call in the .xaml.cs file, simply returns the Business logic method that calls the above mentioned method in DA layer.
Now the problem is that I need to pass the "selectedStage" variable (having the output parameter value) to the Silverlight application that resides in a different project.
Please help me if you have any idea how to achieve this.
Thanks in Advance,
Abhishek Chauhan
Now