K
Kenny
Hi,
Is it possible to call a function from a control, for e.g
<asp:requiredfieldvalidator id="test" errormessage="ccc" />
Is it possible for me to create a FormatErrorMessage function if I want to
change the text of the message.
<asp:requiredfieldvalidator id="test" errormessage="<%
FormatErrorMessage('test','Invalid input') %>" />
public string FormatErrorMessage(string s, string t)
{
s.ErrorMessage = "Required Fields: " + s + "-" + t;
}
Thanks.
Kenny Kee
Is it possible to call a function from a control, for e.g
<asp:requiredfieldvalidator id="test" errormessage="ccc" />
Is it possible for me to create a FormatErrorMessage function if I want to
change the text of the message.
<asp:requiredfieldvalidator id="test" errormessage="<%
FormatErrorMessage('test','Invalid input') %>" />
public string FormatErrorMessage(string s, string t)
{
s.ErrorMessage = "Required Fields: " + s + "-" + t;
}
Thanks.
Kenny Kee