bug in CreateUserWizard

R

Robert Dufour

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top