Link to home
Start Free TrialLog in
Avatar of mainrotor
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:

                        {
                            field: "HIPBatchID",
                            title: "EDI Portal Batch ID",
                            template: "&nbsp;<input type='button' value='#=kendo.toString(HIPBatchID)#' class='RoundCorner' onclick='getErrorLogByBatchID(\"#=HIPBatchID#\",\"#=Filename#\")' style='width: 90px;border:0; background-color:white; color:darkblue;' />",
                        },

Open in new window



Thank you in advance,
mrotor
ASKER CERTIFIED SOLUTION
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial