protected void Page_Load(object sender, EventArgs e) { int tryParseInt = 0; if (CommonUtility.SafeCheckByParams<string>(Request["feedBackId"], ref tryParseInt)) { int feedbackId = tryParseInt;//取得URL参数 DalOperationFeedBack dofb = new DalOperationFeedBack(); feedback = dofb.FindFeedBackById(feedbackId); //绑定到对象实例 if (feedback != null) { dofb.UpdateFeedBackIsReadById(feedbackId); //更新阅读的状态为已读 if (!IsPostBack) { txtbackinfo.Text = feedback.backInfo; } } } }