Can I assign the value like this?
- by kumar
Exactly I ned to do something like this is this possible?
<%
var Controller = null;
if (Model.ID== "ABC")
{
Controller = "Name";
}
else
{
Controller = "Detail";
}
%>
<% using (Html.BeginForm("edit", Controller, FormMethod.Post, new { @id="exc-" + Model.SID}))
{%>
<%= Html.Summary(true)%>
is this possible?
if i do I am getting exception...
ERROR: Cannot assign to an implicitly-typed local variable