where should definition for Event be on aspx page?

  • Thread starter Thread starter hazz
  • Start date Start date
H

hazz

Error 1 'ASP._createaccount_aspx' does not contain a definition for
'CreateUserWizard1_CreatedUser'
C:\asp.net\Source\Security\CreateAccount.aspx 12

below is the line in the CreateAccount.aspx that causes the error. Should
this handler reside in the code behind as referenced by
CodeFile="CreateAccount.aspx.cs" at the top of the aspx page?
Thank you. -Greg

<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
ContinueDestinationPageUrl="CreateAccount.aspx"
OnCreatedUser="CreateUserWizard1_CreatedUser">
 
Not sure what to do with it yet but at least to stub it out....

<script runat="server">
void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
{
CreateUserWizardStep myStep = new CreateUserWizardStep();
}

</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top