Hey there, I'm trying to create a string in JavaScript but it seems like I might be missing something. It's been quite a while that I have been attempting this.
'@StringUtils.FormatStringParameter(ValidationMessages.ContractDeleteBudgetValidation,'+ data + ')'
The variable "data" is what I need to pass. The utility class FormatStringParameter is available in C# and I am hoping to utilize it in JavaScript.
public static string FormatStringParameter(string strng, params object[] listParameters)
{
return String.Format(strng, listParameters);
}
public const string ContractDeleteBudgetValidation = "Contract has been budgeted. Are you sure you want to {0} ?";