bug in CreateUserWizard

Discussion in 'ASP .Net Web Controls' started by Robert Dufour, May 16, 2007.

  1. As soon as you use Expressions to add a localized resource string to a
    CreateUserWizard control you are no longer able to view the page in design
    mode.

    Steps to reproduce behaviour.
    1- Create a resx file under app_GlobalResources and a copy of the file
    localized, For instance login.resx and login.fr.resx. In each of the files
    create one value, say AnswerlabelText, In english value is "answer" in
    french value is "RĂ©ponse"
    2- Create a new page in the project, on the page place a CreateUserWizard.
    Note that you can go back and forth between the source view and the design
    view without any problems.
    3- In the design view, go to the properties windows of the CreateUserWizard
    and click on Expressions, select the answerlabeltext property and select
    resources, Login, and answerlabeltext. Note that in the code it will have
    added
    AnswerLabelText="<%$ Resources:Login, AnswerLabelText %>" to the declaration
    of the createuserWizard control. Now note that once you have gone to the
    source editor window and try to come back to the design window you can no
    longer get the control to display , you will get error creating control,
    object reference not set to an instance of an object.

    You are now unable to view the page correctly in design view and therefore
    you can no longer use the properties window of the control to set other
    properties of the control. Yet if you use the page, it will behave correctly
    (ie, pick up the localized value when it is appropriate to do so and create
    new users.)

    If you delete AnswerLabelText="<%$ Resources:Login, AnswerLabelText %>" from
    the control definition in the source editor window you can then come back to
    design view and the control will paint correctly.

    Has anyone else observed this behaviour and if so is there a workaround or
    should I proceed differently?

    Any help would be appreciated,

    Bob
     
    Robert Dufour, May 16, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lloyd Dupont

    [2.0] asp:CreateUserWizard & confirmation?

    Lloyd Dupont, Oct 20, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    346
    Lloyd Dupont
    Oct 20, 2004
  2. Lloyd Dupont

    [2.0] CreateUserWizard

    Lloyd Dupont, Nov 1, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    391
    Lloyd Dupont
    Nov 1, 2004
  3. Lloyd Dupont

    [newbie & 2.0] ASP:CreateUserWizard

    Lloyd Dupont, Nov 8, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    428
    Lloyd Dupont
    Nov 8, 2004
  4. =?Utf-8?B?UmF2ZW50aG9ybg==?=

    Avoiding the automatic creation of a user in the CreateUserWizard

    =?Utf-8?B?UmF2ZW50aG9ybg==?=, Apr 21, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,415
    stiven
    Dec 29, 2005
  5. LRuss

    CreateUserWizard bug?

    LRuss, Jan 14, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    327
    LRuss
    Jan 14, 2008
Loading...

Share This Page