Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 14th, 2007, 06:10 PM
Registered User
 
Join Date: Jun 2006
Location: Maassluis, , Netherlands.
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?????

  #2 (permalink)  
Old February 14th, 2007, 06:28 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
  #3 (permalink)  
Old February 14th, 2007, 06:32 PM
Registered User
 
Join Date: Jun 2006
Location: Maassluis, , Netherlands.
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??
  #4 (permalink)  
Old February 14th, 2007, 06:40 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:40 PM.


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