I have a problem with radconfirm control.
Scenario: master/Page
If I use resources does not work, but If I hardcode the title and text works perfectly:
(Resources exists, and fill variables ok.)
It is my code:
if(Master.Organization.CommunityHasUser(GetId()))
{
textMessage = _resources.GetString("DeleteCommunityWithUserText",
new CultureInfo(Master.Culture)).Replace("{0}",
Session["Name"].ToString
());
}else
{
textMessage = _resources.GetString("DeleteCommunityText", new CultureInfo(Master.Culture)).Replace("{0}", Session["Name"].ToString());
}
string titleMessage = _resources.GetString("DeleteCommunityTitle", new CultureInfo(Master.Culture)).Replace("{0}", Session["Name"].ToString());
RadWindowManager1.RadConfirm(textMessage,"confirmCallBackFn", 330,100, null,titleMessage);
does not show radconfirm
but if I do this:
string textMessage ="Test";
string titleMessage ="Message";
RadWindowManager1.RadConfirm(textMessage,"confirmCallBackFn", 330,100, null,titleMessage);
Show the radconfirm and works perfectly.
Please I need help!!!
Scenario: master/Page
If I use resources does not work, but If I hardcode the title and text works perfectly:
(Resources exists, and fill variables ok.)
It is my code:
if(Master.Organization.CommunityHasUser(GetId()))
{
textMessage = _resources.GetString("DeleteCommunityWithUserText",
new CultureInfo(Master.Culture)).Replace("{0}",
Session["Name"].ToString
());
}else
{
textMessage = _resources.GetString("DeleteCommunityText", new CultureInfo(Master.Culture)).Replace("{0}", Session["Name"].ToString());
}
string titleMessage = _resources.GetString("DeleteCommunityTitle", new CultureInfo(Master.Culture)).Replace("{0}", Session["Name"].ToString());
RadWindowManager1.RadConfirm(textMessage,"confirmCallBackFn", 330,100, null,titleMessage);
does not show radconfirm
but if I do this:
string textMessage ="Test";
string titleMessage ="Message";
RadWindowManager1.RadConfirm(textMessage,"confirmCallBackFn", 330,100, null,titleMessage);
Show the radconfirm and works perfectly.
Please I need help!!!