private void ShowInfo(int questionId) { QuestionBll qbll = new QuestionBll(); QuestionModel qmodel = qbll.GetModel(questionId); if (qmodel == null) { throw new Exception("没有找到相应的问题"); } else { this.lblQuestionId.Text = qmodel.QuestionId.ToString(); this.lblUserId.Text = qmodel.UserId; this.lblQContent.Text = qmodel.Content; this.lblQTitle.Text = qmodel.Title; this.lblAnswerId.Text = String.Empty; this.txtAContent.Text = String.Empty; this.txtATitle.Text = String.Empty; BindAnswers(); } }