I have code in one of my views that looks like this below where if you are logged in, it shows you the welcome notice and if you are not logged in, it shows you a link to the logon page.
<%
if (!Request.IsAuthenticated)
{
%>
<%= Html.ActionLink("Log On", "LogOn", "Account")%>
<%
}
else
{
%>
<img src="../images/newspic.gif" width="423" height="194"><br /><br />
<%
}
%>
what i want is that if you are not logged in, i would like it to redirect to the login page automatically (as why have that extra step)
any suggestions on how i would go about automatically redirecting to another page from within this view above.