Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 14th, 2007, 06:10 PM
Registered User
 
Join Date: Jun 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error in ChangePasswordWizard

When I'm building the part of my site that handles Login and changing passwords I get the following error:
ChangePassword1_ChangedPassword' is not a member of 'ASP.wachtwoordwijzigen_aspx'..

The code for the page is:
Code:
<%@ Page Language="VB" 
MasterPageFile="~/MasterPage.master" 
Title="Administratie - Wachtwoord wijzigen" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ChangePassword ID="ChangePassword1" runat="server" 
ChangePasswordTitleText="Verander je wachtwoord <br /> <br />" 
PasswordLabelText="Vul je huidige wachtwoord in:" 
NewPasswordLabelText="Vul je nieuwe wachtwoord in:" 
ConfirmNewPasswordLabelText="Herhaal je nieuwe wachtwoord:" 
CancelButtonText="Herstel" 
ChangePasswordButtonText="Verander wachtwoord" 
ConfirmPasswordCompareErrorMessage="De beide wachtwoorden moeten gelijk zijn" 
OnChangedPassword="ChangePassword1_ChangedPassword" 
SuccessText="Je wachtwoord is veranderd!" 
SuccessTitleText="Wijzigen van wachtwoord is afgerond" 
UserNameLabelText="Gebruiksnaam:">
        <TitleTextStyle Font-Bold="True" Font-Size="Medium" />
    </asp:ChangePassword>
</asp:Content>
Any suggestions?????

 
Old February 14th, 2007, 06:28 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

And where is ChangePassword1_ChangedPassword supposed to be defined? It has an attribute on the ChangePassword control, but where is the assoociated method?

If you don't have that method, or don't want to fire it, simple remove the OnChangedPassword attribute.

Otherwise, open the page in Design VIew, on the Properties for the ChangePassword control click the Events button and than double click the event handler.

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old February 14th, 2007, 06:32 PM
Registered User
 
Join Date: Jun 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,

Thanks. That took care of it. Could it be I accidentally double clicked the control??
 
Old February 14th, 2007, 06:40 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Most likely.

When you double click a control, it sets up a handler for the default event. What the default is depends on the control (Click for a button and so on).

If you then remove the handler in the code, the original control is not modified with this error as the result.

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: syntax error, unexpected T_ELSE in /h vipin k varghese BOOK: XSLT Programmer's Reference, 2nd Edition 4 September 29th, 2011 01:19 AM
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
[Resolved] Error calling a sp - parameter error snufse .NET Framework 2.0 2 February 12th, 2008 04:46 PM
Phile Page error, visual studio error reps BOOK: ASP.NET Website Programming Problem-Design-Solution 0 September 27th, 2003 10:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.