problem with asp:ValidationSummary-control
-
Hello! I´ve got a number of validators on a page. I display the errormessages they generate in a ValidationSummary-control. I dont want the actual errormessage to show twice, so I´ve got property
Display
set toNone
on all the validators. Problem is this: Im in a textbox with a requiredfieldvalidator pointed at it. I press enter, and nothing happens. No error message in the summarycontrol, no nothing. If I remove theDisplay=None
from the validator I get the errormessage, but only in the validator not in the summary. I´ve gotEnableClientScript
set totrue
on my summarycontrol, shouldnt I get the errormessage there right away? Not I´ve got to press a button or something in order for the errormessage to show there. -
Hello! I´ve got a number of validators on a page. I display the errormessages they generate in a ValidationSummary-control. I dont want the actual errormessage to show twice, so I´ve got property
Display
set toNone
on all the validators. Problem is this: Im in a textbox with a requiredfieldvalidator pointed at it. I press enter, and nothing happens. No error message in the summarycontrol, no nothing. If I remove theDisplay=None
from the validator I get the errormessage, but only in the validator not in the summary. I´ve gotEnableClientScript
set totrue
on my summarycontrol, shouldnt I get the errormessage there right away? Not I´ve got to press a button or something in order for the errormessage to show there.There's two properties ( text and error from memory ), and you can set one to blank and the other to the text for the summary. If you set only one, they both are teh same.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
There's two properties ( text and error from memory ), and you can set one to blank and the other to the text for the summary. If you set only one, they both are teh same.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
Thanks for your reply. But I don´t understand exactly what you mean. Does the Summary-control have two properties I need to set? This is what it looks like now:
runat="server" DisplayMode="List" ShowSummary="true" EnableClientScript="true" ShowMessageBox="false" HeaderText="yadayada>
-
Thanks for your reply. But I don´t understand exactly what you mean. Does the Summary-control have two properties I need to set? This is what it looks like now:
runat="server" DisplayMode="List" ShowSummary="true" EnableClientScript="true" ShowMessageBox="false" HeaderText="yadayada>
No, the validators do.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
No, the validators do.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
You mean
Text
andErrorMessage
? I´ve tried giving both value but the problem remains :( EDIT: I might add that the problem only occurs if I leave textbox blank. If I type in a few letters and press enter all the validators show correct messages in the summarycontrol.