Click here to Skip to main content
11,487,721 members (76,249 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET Ajax
Hello
I want checking enter password and re enter password using in ajax modal popup control can u guide or send any snippets
Posted 2-Jul-12 4:54am
kingsa1.5K
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You need to set panel with text boxes for enter passwords and then you can set popupcontrolid as that panel.

<asp:scriptmanager id="ScriptManager1" runat="server">
</asp:scriptmanager>
 
<asp:button id="Button1" runat="server" text="Button" />
 
<cc1:modalpopupextender id="ModalPopupExtender1"  runat="server" 
	cancelcontrolid="btnCancel" okcontrolid="btnOkay" 
	targetcontrolid="Button1" popupcontrolid="Panel1" 
	popupdraghandlecontrolid="PopupHeader" drag="true" >
</cc1:modalpopupextender>
 
<asp:panel id="Panel1" style="display: none" runat="server">
	<div id="PopupHeader">Header</div>
	<div>
		<asp:TextBox id="passwordTextBox" runat="server"
		  TextMode="Password" />
		<asp:RequiredFieldValidator id="passwordReq"
		  runat="server"
		  ControlToValidate="passwordTextBox"
		  ErrorMessage="Password is required!"
		  SetFocusOnError="True" Display="Dynamic" />
		<asp:TextBox id="confirmPasswordTextBox" runat="server"
		  TextMode="Password" />
		<asp:RequiredFieldValidator id="confirmPasswordReq"
		  runat="server" 
		  ControlToValidate="confirmPasswordTextBox"
		  ErrorMessage="Password confirmation is required!"
		  SetFocusOnError="True" 
		  Display="Dynamic" />
		<asp:CompareValidator id="comparePasswords" 
		  runat="server"
		  ControlToCompare="passwordTextBox"
		  ControlToValidate="confirmPasswordTextBox"
		  ErrorMessage="Your passwords do not match up!"
		  Display="Dynamic" />
	</div>
	<div>
		<input id="btnOkay" type="button" value="Done" />
		<input id="btnCancel" type="button" value="Cancel" />
	</div>
</asp:panel>
  Permalink  
v4

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 9,193
1 OriginalGriff 8,287
2 Sascha Lefèvre 3,334
3 Maciej Los 2,946
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 2 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100