Click here to Skip to main content
15,923,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Data Access Layer Coding as below

public DataSet SessionDataset(string FN,string PWD,string EMAIL)
{
con.Open();
cmd = new SqlCommand("SP_SessionByDataset", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@fname",FN);
cmd.Parameters.AddWithValue("@pwd",PWD);
cmd.Parameters.AddWithValue("@Email",EMAIL);
da = new SqlDataAdapter(cmd);
ds = new DataSet();
da.Fill(ds);
con.Close();
return ds;

}



Business Logic Layer coding as below


public DataSet SessionDataset(string FN, string PWD, string EMAIL)
{
DataSet ds = d.SessionDataset();
return ds;
}


I am getting error like this

"No overload for method SessionDataset takes 0 arguments"


How to clear this error ....

Thanks in advance...
Posted

1 solution

its quite obvious from your first definition that

DataSet ds = d.SessionDataset();


Should be something like

DataSet ds = d.SessionDataset(FN, PWD, EMAIL);


that being said Im not sure what your 'business layer' is actually doing/meant to achieve

'g'
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900