Hi,
Correct your code as example:
string studentId = "1234";
Response.Redirect("ViewDetails.aspx?en=" + studentId);
in your ViewDetails.aspx code behind:
if (!IsPostBack)
{
string id = Request.QueryString["en"].ToString();
SqlCommand cmd = new SqlCommand("usp_JoinRegistration", conn)
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@UserID", SqlDbType.NVarChar).Value = id ;
}
Check your Store proc.
usp_JoinRegistration should have a
UserID parameter to pass in order to filter the condition...
Please vote if could help so that others may consider as an answer...
Regards,