mainrotor
asked on
How can I replace a single backslash with a double backslash in my Kend.UI grid? Mvc.Net app with C#.Net code-behind
I have an MVC.Net application with C#.Net codebehind.
In one of my views I use a Telerik.UI grid. I need help using the Replace function in the grid's template.
I want to Replace the backslash in the FileName value, with a Double backslash (something like this: #=Filename.Replace('\','\\ ')
How can I do this? in my code below:
Thank you in advance,
mrotor
In one of my views I use a Telerik.UI grid. I need help using the Replace function in the grid's template.
I want to Replace the backslash in the FileName value, with a Double backslash (something like this: #=Filename.Replace('\','\\
How can I do this? in my code below:
{
field: "HIPBatchID",
title: "EDI Portal Batch ID",
template: " <input type='button' value='#=kendo.toString(HIPBatchID)#' class='RoundCorner' onclick='getErrorLogByBatchID(\"#=HIPBatchID#\",\"#=Filename#\")' style='width: 90px;border:0; background-color:white; color:darkblue;' />",
},
Thank you in advance,
mrotor
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.