The simplest way to achieve this is to make a
UserControl [
^] so that you will be able to pass the desired message in each page. You don't need to have a repeater control to display the message. The user control may be designed using labels that will display the message and a query that will accept different criteria in each page. Criteria will be passed from each page as property from the user control. I put a code fragment that helps you as a starting point.
public partial class MyMessageBoard : UserControl
{
public string Criteria
{
get
{
if (ViewState["Criteria"] != null)
return ViewState["Criteria"].ToString();
else
return " assign default criteria";
}
set {
if (value != null)
ViewState["Criteria"] = value;
}
}
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DisplayMessage();
}
}
private void DisplayMessage()
{
}
}