I am using MVC5 razor syntax. When I pass a string with a value containing space, the text after space cut off in the value section of input text field.
My view code is given below:
@{
ViewBag.Title = "Edit";
Layout = "~/Views/Shared/_Layout.cshtml";
string s1 ="sabab zulfiker";
}
When I load the page , I get only "sabab" in text box. But not get "sabab zulfiker".
What should I do now ?

Ramesh PalanivelPosted Mar 15, 2018, 12:27 PM