Imports System
Imports System.ComponentModel.DataAnnotations
Namespace HelloWorldMvcApp
Public Class SampleViewModel
End Class
End Namespace
@Code
Layout = Nothing
End Code
<!DOCTYPE html>
<!-- template from http://getbootstrap.com/getting-started -->
<html lang="en">
<body>
<div class="container">
<a >@HttpUtility.UrlPathEncode("a b c d")</a> <br>
<a href="~/Survey/Take/@HttpUtility.UrlPathEncode("a b c d")">test</a>
</div>
</body>
</html>
Imports System.Web.Mvc
Imports System.Collections.Generic
Public Class HomeController
Inherits System.Web.Mvc.Controller
Function Index() As ActionResult
Return View()
End Function