I have this function to return a view
Function mostrar(cor As String, alinea As Char) As ActionResult
ViewBag.cor = cor
ViewBag.alinea = alinea
Return View()
End Function
this is the view
@Code
ViewBag.Title = "mostrar"
End Code
<h2>mostrar</h2>
<h4>@viewbag.cor</h4>
<h4>@ViewBag.alinea</h4>
the function is called from code but no view is returned. But i know the parameters enter the function.
if i put this in the URL:
http://localhost:16844/prescavi/mostrar?cor=red&alinea=s
The view works perfectly...