[C#] Asp.Net MVC中通过RedirectToAction重定向 →→→→→进入此内容的聊天室

来自 , 2020-01-14, 写在 C#, 查看 97 次.
URL http://www.code666.cn/view/5dedb42b
  1. using System.Web.Mvc;
  2. namespace MvcApplication1.Controllers
  3. {
  4. public class ProductsController : Controller
  5. {
  6.         public ActionResult Index()
  7.         {
  8.                 return View();
  9.         }
  10.  
  11.         public ActionResult Details(int id)
  12.         {
  13.                 if (!id.HasValue)
  14.                 return RedirectToAction(“Index”);
  15.                 //return View();
  16.         }
  17. }
  18. }
  19. //csharp/7752

回复 "Asp.Net MVC中通过RedirectToAction重定向"

这儿你可以回复上面这条便签

captcha