Click here to Skip to main content
15,906,285 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
XML
<asp:ValidationSummary ID="ValidationSummary1" ShowMessageBox="true" runat="server" Font-Names="Arail">
                                   </asp:ValidationSummary>



IN THIS control validation summary are not working in chrome,firefox.
message box does not display.
Posted
Updated 11-Dec-18 19:48pm
Comments
Denis Shemenko 8-Jul-13 3:14am    
How do you came to this conclusion?
Mukesh Ghosh 8-Jul-13 3:25am    
Can you give the whole code block? May be you are missing something
Nirav Prabtani 8-Jul-13 3:26am    
check your code and don't blame on validation controls it works fine....:)
jaideepsinh 8-Jul-13 5:31am    
Accept as answer if solve you problem.

Try to use the validation summary with proper tags like below.
<asp:validationsummary id="ValidationSummary" displaymode="BulletList" enableclientscript="true" headertext="Errors occured in the following  fields:" runat="server"/>


and put all the validators below this summary.. than hope it gona work.
 
Share this answer
 
v2
XML
Use validation group:

<pre>&lt;asp:ValidationSummary ID="ValidationSummary1" ShowMessageBox="true" runat="server" ValidationGroup="Group" Font-Names="Arail"&gt;</pre>

Use this ValidationGroup="Group" on your all validation and also on button.
 
Share this answer
 
I guess the message box dont work in asp and it do in c# windows forms
You have no option of MessageBox("Message") in asp
Use a header tag in it and list the errors using Bulleted form
 
Share this answer
 
<tr>
                    <td class="label-cell big-fixed-height-cell">
                        <label for="Transf" class="control-label small">Transformatorinė:</label>
                    </td>
                    <td>
                        @Html.HiddenFor(model => Model.TransfID, Model.TransfID)
                        <div class="input-group">
                            <input asp-for="Transf" type="text" class="form-control input-sm form-fixer" />
                            <div class="input-group-btn has-error ">
                                <button class="fizinis btn btn-default input-sm btn-search" type="button" data-toggle="modal" data-target="#pastociuSarasasModal">
                                    class="glyphicon glyphicon-search">
                                </button>
                            </div>
                        </div>
                    </td>
                </tr>
 
Share this answer
 
Comments
Richard Deeming 12-Dec-18 8:40am    
Not even vaguely related to the question!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900