i think wht joe said is correct
On Tue, Mar 31, 2009 at 12:46 AM, Joe Enos <[email protected]> wrote:
>
> I don't think I understand what "textbox.PW" means...
>
> Correct me if I'm wrong, but I believe you mean the following,
> assuming txtPassword and txtPassword2 are the server IDs of the two
> password textboxes:
>
> var a = document.getElementById("<%= txtPassword.ClientID %>");
> var b = document.getElementById("<%= txtPassword2.ClientID %>");
>
> On Mar 30, 10:19 am, "Stephen Russell" <[email protected]> wrote:
> > <script language="javascript">
> >
> > function check() {
> > var a = document.getElementById('<%=textbox.PW%>');
> > var b = document.getElementById('<%=textbox.PW2%>');
> >
> > if (a.value == b.value) {
> > return true;
> > } else {
> > return false;
> > }
> >
> > }
> >
> > </script>
> >
> > .........................
> > Stephen Russell -
> > Senior Visual Studio Developer, DBA
> >
> > Memphis, TN
> > 901.246-0159
> >
> > > -----Original Message-----
> > > From: [email protected]
> > > [mailto:[email protected]] On Behalf Of Brock
> > > Sent: Monday, March 30, 2009 9:08 AM
> > > To: DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web
> > > Services,.NET Remoting
> > > Subject: [DotNetDevelopment] client-side password validation (matching)
> >
> > > What is my best way (client-side of course) on an .aspx page to
> > > compare the value in the "Password" textbox with that of the "Retype
> > > Password" textbox? Javascript? Any source code examples anyone knows
> > > would be helpful - javascript is still rather foreign to me. Thanks!
> >
> > > No virus found in this incoming message.
> > > Checked by AVG -www.avg.com
> > > Version: 8.0.238 / Virus Database: 270.11.31/2029 - Release Date:
> > > 03/29/09 16:56:00
>