Solved

Validation Not working

Posted on 2009-07-09
3
405 Views
Last Modified: 2013-11-08
Ajax validation not working , i have a Couple of validation summary and Bulleted list on my page . These Controls will show me the Validation messages and custom database error messages on the page

These works fine on my Development , once i deployed the code in server the validation fires and message but the custome message which needs to come on Bulleted list dosent show up . ( This happens only if i click a LinkButton on the re4spective page , it works fine if i click the Buttons)

 i have enclosed the code snippet for more information


<asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Always" >

	<ContentTemplate >

	        </ContentTemplate> 

        </asp:UpdatePanel>

	

	        <div class="PageHeading"><asp:Label ID="PageHeadingLabel" runat="server" /></div>

	        <br />

	        <table>

		        <tr>

			        <td align="left">

			            <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="CanBeSaved" runat="server"   />

			            <asp:ValidationSummary ID="ValidationSummary3" ValidationGroup="CanSubmit" runat="server"   />

			            <asp:ValidationSummary ID="ValidationSummary2" runat="server" />

				        <asp:BulletedList ID="bulletedErrorList" runat="server" ForeColor="Red"  />

 

				        <asp:Label ID="lblSuccessMessage" runat="server" CssClass="ValidationSuccess" />

				        <div class="CustomError">

					        <asp:Label ID="lblNoRecords" Text="There are no details to view." runat="server" Visible="false"></asp:Label>

				        </div>

			        </td>

		        </tr>

	        </table>

			<asp:PlaceHolder ID="DynamicControlPlaceHolder" runat="Server"></asp:PlaceHolder>

    

 

</asp:Content>

Open in new window

0
Comment
Question by:P_Ramprathap
  • 3
3 Comments
 
LVL 14

Assisted Solution

by:shahprabal
shahprabal earned 500 total points
ID: 24816313
asp:Label ID="lblNoRecords" Text="There are no details to view." runat="server" Visible="false">
0
 
LVL 14

Assisted Solution

by:shahprabal
shahprabal earned 500 total points
ID: 24816537
0
 
LVL 14

Accepted Solution

by:
shahprabal earned 500 total points
ID: 24816572
basically you have to specify the id property of the linkbuttons explicitly.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now