Hello Dieter,
From your description, you're using the ContentTemplate to customize the
CreateUserWizard control and also want to utilize the existing localizaed
resources of the CreateuserWizard control. However, when you try using the
<%$ Resources:... %expression to reference the resource, it not work,
correct?
As for this issue, it is due to the natural limitation of the <%$ Resource
%expression, this expression just identical to the following methods in
page:
HttpContext.GetGlobalResourceObject Method
HttpContext.GetLocalResourceObject Method
Both of the two methods(also the <%$ Resource expression %>) can only
reference resource items defined within the current ASP.NET application's
LocalResource or GlobalResource, but can not reference resource items in
external assemblies. Actually, through the reflector diassembled code, you
can find that the built-in CreateUserWizard control is using the following
code to load resource string from assembly:
==================
ResourceManager rm = new ResourceManager("System.Web",
typeof(CreateUserWizard));
rm.GetString(keyname, Culture);
===================
Therefore, if you want to load any localization resource objects from
external assembly, you need to use ResourceManager to do it
programmatically.
Please feel free to let me know if you have anything unclear or any other
questions here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.