Sharepoint 2010 Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint 2010       RSS Feeds

Need help with Localization of Visual Web Part

  Asked By: Sridhar    Date: Dec 25    Category: Sharepoint 2010    Views: 1762

I need help with Localization in Visual Web Part (2010). I need to
localize Web Part Title, Description and Error Message and also the
controls' properties in ASCX and code behind. Also, I don't want to deploy
the Resource files in App_GlobalResources folder, but within a custom folder
inside 14 hive's Resources folder. Will the above localization work in this
scenario. I read MSDN article regarding this, but nothing worked properly.If
the Web Part Title worked, when I deployed the files to a custom folder
inside 14 hive's Resources folder, the ASCX kept throwing error "The
resource object with the key not found". ON the other hand, if I deploy it
to App_GlobalResources folder, every other thing works, but the Web Part
Title and Description doesn't work. I am confused. Also, I cannot afford to
drop / deploy the resource files directly, in any case. I need to put them
in a custom folder and then deploy them to 14/Resources or
App_GlobalResources. For your reference, I referred the following MSDN
links. Please help me.





3 Answers Found

Answer #1    Answered By: Manan Juthani     Answered On: Dec 25

Can anyone help me with this??????????

Answer #2    Answered By: Maira Downs     Answered On: Dec 25

Any help with this???????????????????

Answer #3    Answered By: Felecia Goff     Answered On: Dec 25

It seems pretty clear no one knows how to help you with this specific issue.
I would suggest the following:

1. Deploy the resource file to App_GlobalResources as Microsoft

2. Don't use a Visual Web part. (This is a perfect example of why I
don't like wrapping web parts around an ASCX file. It just adds an
additional layer of complexity that breaks things)

3. Take a look at the following walkthrough on how to Localize a non
ASCX based web part


Didn't find what you were looking for? Find more on Need help with Localization of Visual Web Part Or get search suggestion and latest updates.