I have this code in my MVC3 view. but when I browse this it display only W. Why it doesn’t display anything after the space? Is there a better way to display this text using < input> tag?
@var text = "W Z";
<input type=text value=@text >< /input>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To build on @MGA’s answer,
consider that the code you have is translated to
<input type=text value=W Z></input>before being rendered by your browser. The space after the ‘W’ would then be a terminating delimiter unless you wrap the value in double quotes (value=”@text”)