R
Robert Dufour
By dragging a create Userwizard onto a form I get the following code and it
works fine. However If I just add a property
AnswerLabelText="<%$ Resources:Login, AnswerLabelText %>" after the
Font-Size="0.8em" and before the closing > I then can no longer view the
control in design view I get an error Creating Control, CreateUserWizard1,
object reference not set to an instance of an object. The login.resx file is
part of the app_GlobalResources folder and when executing the page it runs
OK. Its just the IDE that does not show it correctly so I would then have to
write code to modify it instead of relying on the use of the expressions and
of course I can't use the properties window to set other properties of the
wizard. Why is this happening and how can I prevent this?
I have a couple of other pages that exhibit the same behaviour.
Any help in resolving this would be appreciated.
This is the kind of BS that makes me hate developping web pages.
Bob
This is the code I get by draging the wizard to the page
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
BackColor="#FFFBD6" BorderColor="#FFDFAD"
BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
Font-Size="0.8em">
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
</asp:CreateUserWizardStep>
<asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
</asp:CompleteWizardStep>
</WizardSteps>
<SideBarStyle BackColor="#990000" Font-Size="0.9em" VerticalAlign="Top" />
<TitleTextStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<SideBarButtonStyle ForeColor="White" />
<NavigationButtonStyle BackColor="White" BorderColor="#CC9966"
BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" ForeColor="#990000" />
<HeaderStyle BackColor="#FFCC66" BorderColor="#FFFBD6" BorderStyle="Solid"
BorderWidth="2px"
Font-Bold="True" Font-Size="0.9em" ForeColor="#333333"
HorizontalAlign="Center" />
<CreateUserButtonStyle BackColor="White" BorderColor="#CC9966"
BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" ForeColor="#990000" />
<ContinueButtonStyle BackColor="White" BorderColor="#CC9966"
BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" ForeColor="#990000" />
</asp:CreateUserWizard>
works fine. However If I just add a property
AnswerLabelText="<%$ Resources:Login, AnswerLabelText %>" after the
Font-Size="0.8em" and before the closing > I then can no longer view the
control in design view I get an error Creating Control, CreateUserWizard1,
object reference not set to an instance of an object. The login.resx file is
part of the app_GlobalResources folder and when executing the page it runs
OK. Its just the IDE that does not show it correctly so I would then have to
write code to modify it instead of relying on the use of the expressions and
of course I can't use the properties window to set other properties of the
wizard. Why is this happening and how can I prevent this?
I have a couple of other pages that exhibit the same behaviour.
Any help in resolving this would be appreciated.
This is the kind of BS that makes me hate developping web pages.
Bob
This is the code I get by draging the wizard to the page
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
BackColor="#FFFBD6" BorderColor="#FFDFAD"
BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
Font-Size="0.8em">
<WizardSteps>
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
</asp:CreateUserWizardStep>
<asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
</asp:CompleteWizardStep>
</WizardSteps>
<SideBarStyle BackColor="#990000" Font-Size="0.9em" VerticalAlign="Top" />
<TitleTextStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<SideBarButtonStyle ForeColor="White" />
<NavigationButtonStyle BackColor="White" BorderColor="#CC9966"
BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" ForeColor="#990000" />
<HeaderStyle BackColor="#FFCC66" BorderColor="#FFFBD6" BorderStyle="Solid"
BorderWidth="2px"
Font-Bold="True" Font-Size="0.9em" ForeColor="#333333"
HorizontalAlign="Center" />
<CreateUserButtonStyle BackColor="White" BorderColor="#CC9966"
BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" ForeColor="#990000" />
<ContinueButtonStyle BackColor="White" BorderColor="#CC9966"
BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" ForeColor="#990000" />
</asp:CreateUserWizard>