<asp:Repeater ID="rptList" runat="server">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td width="15%">
<b>Subject</b>
</td>
<td width="60%">
<%#Eval("Title")%>
</td>
</tr>
I do databind to a repeater, and bind the title value.
string MysqlStatement = "SELECT Title, RespondBy FROM tbl_message WHERE MsgID = @Value1";
using (DataServer server = new DataServer())
{
.. }
rptList.DataSource = ds;
rptList.DataBind();
How can I get the value of title in server side, when a button in clicked in the same page.
I would put the title in a server control, like a label, and then you can do something like this:
And then in the code behind: