Hello,
I tried to pop up a message box using a ValidationSummary field but didn't manage to.
Microsoft doc:
-------------
This property can be used in addition to the ShowSummary property to control where the validation summary is displayed. If this property and EnableClientScript are both set to true, the validation summary is displayed in a message box. If EnableClientScript is set to false, this property has no effect.
Note If both the ShowMessageBox and ShowSummary properties are set to true, the validation summary is displayed in both a message box and on the Web page.
<asp:ValidationSummary
id="valSum"
DisplayMode="BulletList"
ShowMessageBox="true"
ShowSummary="false"
HeaderText="You must enter a value in the following fields:"
Font-Name="verdana"
Font-Size="12"
runat="server"/>
My code:
--------
<asp:ValidationSummary id="Summary1" runat="server" ShowMessageBox="True" EnableClientScript="True" ShowSummary="False" DisplayMode="BulletList" />
It's not working !
I also set the properties in code behind, in case... no more success.
Anyone already uses this functionality ?
I tried to pop up a message box using a ValidationSummary field but didn't manage to.
Microsoft doc:
-------------
This property can be used in addition to the ShowSummary property to control where the validation summary is displayed. If this property and EnableClientScript are both set to true, the validation summary is displayed in a message box. If EnableClientScript is set to false, this property has no effect.
Note If both the ShowMessageBox and ShowSummary properties are set to true, the validation summary is displayed in both a message box and on the Web page.
<asp:ValidationSummary
id="valSum"
DisplayMode="BulletList"
ShowMessageBox="true"
ShowSummary="false"
HeaderText="You must enter a value in the following fields:"
Font-Name="verdana"
Font-Size="12"
runat="server"/>
My code:
--------
<asp:ValidationSummary id="Summary1" runat="server" ShowMessageBox="True" EnableClientScript="True" ShowSummary="False" DisplayMode="BulletList" />
It's not working !
I also set the properties in code behind, in case... no more success.
Anyone already uses this functionality ?