我有代码:
public ActionResult Inner(simpleQA.Models.Post model)
{
if(simpleQA.User.Current != null)
{
simpleQA.Post objPostAns = new Post();
objPostAns.TypeId = 4;
objPostAns.Content = model.ContentAnswesr;
objPostAns.RelatePostId = model.RelatePostId;
objPostAns.CreateAt = DateTime.Now;
objPostAns.CreateBy = simpleQA.User.Current.Id;
objPostAns.Save();
return View("");
}
else
{
Response.Write("Please Login");
Response.Redirect("/");
}
return View("/");
}
我在重定向之前尝试Respon.write
改变,但它不起作用。告诉我一个改变。