M
mehdi_mousavi
Hi,
Consider a user control, say, myctrl.ascx, that is supposed to display
a given string parameter. The parameter is defined as a property on the
control as follows:
public string HeaderText
{
get {return m_strHeaderText;}
set {m_strHeaderText = value;}
}
The question is that how am I supposed to bind this property into an
element of the page (within .aspx)? for exmaple, if I was using a
datalist, I knew I had to use the
<%#DataBinder.Eval(Container.DataItem, "HeaderText")%>
syntax to bind to the "HeaderText". However, I'm not using a datalist,
nor any predefined web controls. any idea?
Thank you for your time,
M.Mousavi
Consider a user control, say, myctrl.ascx, that is supposed to display
a given string parameter. The parameter is defined as a property on the
control as follows:
public string HeaderText
{
get {return m_strHeaderText;}
set {m_strHeaderText = value;}
}
The question is that how am I supposed to bind this property into an
element of the page (within .aspx)? for exmaple, if I was using a
datalist, I knew I had to use the
<%#DataBinder.Eval(Container.DataItem, "HeaderText")%>
syntax to bind to the "HeaderText". However, I'm not using a datalist,
nor any predefined web controls. any idea?
Thank you for your time,
M.Mousavi