我正在从tbl_message表中做一个查询以获取Title和RespondBY,我要在对数据中继器进行数据绑定之前解密Title.在做数据库之前,如何访问标题值.
string MysqLStatement = "SELECT Title,RespondBy FROM tbl_message WHERE tbl_message.MsgID = @MsgID"; using (DataServer server = new DataServer()) { MysqLParameter[] param = new MysqLParameter[1]; param[0] = new MysqLParameter("@MsgID",MysqLDbType.Int32); param[0].Value = MessageID; command.Parameters.AddWithValue("@MsgID",MessageID); ds = server.ExecuteQuery(CommandType.Text,MysqLStatement,param); } rptList.DataSource = ds; rptList.DataBind(); <table style="width: 498px; color: #F5F5F5;"> <asp:Repeater ID="rptList" runat="server"> <HeaderTemplate> </HeaderTemplate> <ItemTemplate> <tr> <td width="15%"> <b>Subject</b> </td> <td width="60%"> <asp:Label ID="lbl_Subj" runat="server" Text='<%#Eval("Title")%>' /> </td> </tr>