a simple solution,
title.in code behide,you declare public string commandid. and static string command(call database... return values)....
inside commentdetail.aspx, you declare a variable. int id= int.parse(request.querystring["id"].tostring());....