Ask a Question related to ASP.NET General, Design and Development.
-
Kenny #1
ErrorMessage
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
Kenny Guest
-
Coldfusion 8 Unable to invoke CFC always added to errormessage
Since switching to ColdFusion 8, I noticed some weird issues with the returned error messages from the CFC. Let's say I call my login function from... -
Change ErrorMessage Text Dynamically
Is there a way to set/change the ErrorMessage and/or Text property of validationcontrols without making a trip to the server? What I have so far... -
CFMX 7 will not start reliably on JRun 4 - no errormessage
I've been having a problem for a while with JRun 4 and MX. I thought upgraded to MX 7 would solve it but no luck. Basically MX is configured to... -
The position of the validator errormessage
Hello, I have a table record with two validators. The can not be both false. When the first one will be false the errormessage will be placed... -
Errormessage in CustomValidator
Hi, I´m using a server function in a CustomValidator control to verify a field date content before an insert process. What should I do to avoid... -
David Waz... #2
Re: ErrorMessage
That's all a standard part of the validator controls. Nothing too fancy to
do this.
<asp:RequiredFieldValidator ID=Test ...blah blah... />
code behind:
protected Test as RequiredFieldValidator...
Private Sub Test_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Test.Load
Test.ErrorMessage = "Anything you want to say here"
End Sub
"Kenny" <keejh@hotmail.com> wrote in message
news:eSIVATxQDHA.3700@tk2msftngp13.phx.gbl...> 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
>
>
David Waz... Guest



Reply With Quote

