Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validation Summary and Popup Box

Status
Not open for further replies.

MaddogC

Programmer
Dec 4, 2003
134
GB
I'm trying to get a validation summary to show as a pop up box. I have

EnableClientScript=True
ShowMessageBox=True
ShowSummary=true

on my validation summary, and have set EnableClientScript=True for the requiredfield and compare validation controls on my page. The Summary is fired but and the summary shows, but I am not getting the Popup.
 
I'm not sure what you are doing wrong but this simple test seems to work fine for me:
Code:
<form id="Form1" method="post" runat="server">
			<asp:ValidationSummary id="ValidationSummary1" runat="server" HeaderText="This is the summary:" ShowMessageBox="True"></asp:ValidationSummary>
			<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
			<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"
				ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
			<asp:Button id="Button1" runat="server" Text="Button"></asp:Button>
		</form>

--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
No, fraid I don't get the pop up, just the summary displayed on screen.
 
Is JavaScript enabled in your browser?

--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
Yes Javascript is on as I use it on the same page to open a calendar pop up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top