Adapters break CreateUserWizard?

Last post 04-21-2007 1:27 PM by ticanaer. 4 replies.

Sort Posts:

  • Adapters break CreateUserWizard?

    03-13-2007, 7:57 AM
    • Member
      2 point Member
    • amulder
    • Member since 01-15-2007, 1:43 PM
    • Posts 6

    Just had a strange problem.  Was using the CreateUserWizard and it doing a double postback when when the "finish" button was clicked.  After a while of digging we removed the CSS Friendly adapter for that control and everything started to work fine.  Don't know if anyone else is having this problem but just wanted to pass along the information.

     Aaron

  • Re: Adapters break CreateUserWizard?

    03-13-2007, 8:53 AM
    • Member
      435 point Member
    • bdemarzo
    • Member since 07-02-2002, 8:05 AM
    • New York
    • Posts 168

    Can you provide the code you're using that caused the problem? (include the <asp:CreateUserWizard> tag from your ASPX page and any related code-behind event handlers and methods) 

  • Re: Adapters break CreateUserWizard?

    03-13-2007, 9:10 PM
    • Member
      2 point Member
    • amulder
    • Member since 01-15-2007, 1:43 PM
    • Posts 6

    Basically, what I've posted here is where I first had the problem.  I had started playing with the CSK2.0 and I had added the CSS Friendly Adapters to it.  After testing the user creation and having an issue with it (after a HUGE headache) I tried to make a new project (CSS Friendly Starter Kit) and just dragged the create user wizard on it and had the same problem.  Commented out the CreateUserWizard lines in the CSSFriendlyAdapters.browser file and everything was hunky dory.  Did the same with the project I was working on and it also fixed the issue.

     However, here is the code from the Register page.  Maybe someone out there can give some insight as to why this is happening.
     

     

    <%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Login" Title="Commerce Starter Kit Login" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
       
        <div id="leftcontent"></div>
       
       
        <div id="centercontent">
       
            <table align="center" class="logtable">
                <tr>
                    <td class="loginheader">Register
                    </td>
                </tr>
                <tr>
                    <td class="logincell">
                        <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" CreateUserButtonText="Continue" ContinueDestinationPageUrl="~/default.aspx" CancelDestinationPageUrl="~/default.aspx">
                            <WizardSteps>
                                <asp:CreateUserWizardStep runat="server">
                                </asp:CreateUserWizardStep>
                                <asp:CompleteWizardStep runat="server">
                                </asp:CompleteWizardStep>
                            </WizardSteps>
                        </asp:CreateUserWizard>
                   
                    </td>
                 
                </tr>
           
            </table>
       
        </div>
    </asp:Content>

     

     

    1    using System;
    2    using System.Data;
    3    using System.Configuration;
    4    using System.Collections;
    5    using System.Web;
    6    using System.Web.Security;
    7    using System.Web.UI;
    8    using System.Web.UI.WebControls;
    9    using System.Web.UI.WebControls.WebParts;
    10   using System.Web.UI.HtmlControls;
    11   using Commerce.Stats;
    12   
    13   public partial class Login : System.Web.UI.Page
    14   {
    15       protected void Page_Load(object sender, EventArgs e)
    16       {
    17           string redir = Utility.GetParameter("ReturnUrl");
    18           if (!String.IsNullOrEmpty(redir))
    19           {
    20               CreateUserWizard1.ContinueDestinationPageUrl = redir; 
    21           }
    22   
    23       }
    24   
    25       protected void NewRegistration(object sender, EventArgs e) {
    26           string redir = Utility.GetParameter("ReturnUrl");
    27           if (redir != string.Empty) {
    28   					Response.Redirect(redir, false);
    29           } else {
    30   					Response.Redirect("default.aspx", false);
    31           }
    32       }
    33   }
    34   
    
      
  • Re: Adapters break CreateUserWizard?

    03-14-2007, 9:28 AM
    • Member
      435 point Member
    • bdemarzo
    • Member since 07-02-2002, 8:05 AM
    • New York
    • Posts 168

    It may be related or not, but one thing jumps out at me when I take a quick look over the code.

    Your page declaration says this: CodeFile="Register.aspx.cs" Inherits="Login"

    Your page itself uses <asp:CreateUserWizard />

    Is it possible your are inheriting the wrong code-behind class (i.e. it should be Inherits="Register")? 

  • Re: Adapters break CreateUserWizard?

    04-21-2007, 1:27 PM
    • Member
      32 point Member
    • ticanaer
    • Member since 11-20-2006, 3:14 PM
    • Wellington, New Zealand
    • Posts 11

    Hi guys,

    I've just posted an solution for this at http://forums.asp.net/1676119/ShowThread.aspx#1676119 which should serve as an interim fix until the CSS Adapters team releases a new version.

    Enjoy Smile,

    Tana
    Golden Rule: Whoever has the gold makes the rules.
Page 1 of 1 (5 items)