Posted on: 5/11/2011 4:23:51 AM | Views : 206

hi friends
i want sent to value in querystring in thread.aspx
my code is:
 
protected void ShowThread_Click(object sender, EventArgs e) { LinkButton lBtnThread = (LinkButton)sender; string qID = lBtnThread.CommandArgument; string ti = "3"; Response.Redirect("Comments.aspx?"+"TypeID="+ti+"&QuestionID=" + qID); } i want get values of TypeID and QuestionID in querystring for display info
my code in comments.aspx is:
?
protected void btnComment_Click(object sender, EventArgs e) { SqlConnection sqlCon = new SqlConnection(conString); sqlCon.Open(); SqlCommand cmd = new SqlCommand ("Insert into Comments(Description,CreatedBy,ID,Type_ID) values (@description,@createdby,@id,@typeid", sqlCon); cmd.Parameters.Add( ...

Go to the complete details ...