Hi,
Did you provide the entire code snippet? like what does this function
BusinessLogic.InsertDetails
do? clarify everything really helps out to pint point the problem.According to your provided code I can see you are setting parameter direction after executing the DB operation and this might cause the issue that you are facing.You can try this instead,
protected void Button1_Click(object sender, EventArgs e)
{
DataSet ds = new DataSet();
SqlParameter[] oparam = new SqlParameter[4];
oparam[0] = new SqlParameter("@eid", Txteid.Text);
oparam[1] = new SqlParameter("@ename", Txtename.Text);
FU.SaveAs("E:\\BackUpWebsites\\sri\\images\\" + FU.FileName);
Server.MapPath("images\\" + FU.FileName);
oparam[2] = new SqlParameter("@image", "E:\\BackUpWebsites\sri\images\" + FU.FileName );
oparam[3] = new SqlParameter("@print", SqlDbType.NVarChar, 50);
oparam[3].Direction = ParameterDirection.Output;
ds = BusinessLogic.InsertDetails(oparam );
LblResult.Visible = true;
LblResult.Text = Convert.ToString ( oparam [3].Value );
}
Hope this will help