https://jeffprogrammer.wordpress.com/2016/05/18/asp-net-mvc-redirect-to-view/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace prjTest.Controllers
{
public class DefaultController : Controller
{
// GET: Default
public ActionResult Index()
{
string virtualPath = System.Web.HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) + HttpRuntime.AppDomainAppVirtualPath;
System.Web.HttpContext.Current.Response.Redirect(virtualPath + "Apply/Index", true);
//下面不會跑
ViewBag.msg = virtualPath;
return View();
}
}
}
2019年6月12日 星期三
訂閱:
張貼留言 (Atom)
WPF聊天室应用(ASP.NET Core SignalR)
WPF聊天室应用(ASP.NET Core SignalR) https://www.bilibili.com/video/BV1Q741187Si?p=2 https://www.bilibili.com/video/BV1UV411e75T?from=search...
-
https://dotblogs.com.tw/v6610688/2015/02/19/iis_office_access_word_excel_com_interop_api_configuration https://dotblogs.com.tw/gelis/archi...
-
int [] intArray = new int [] { 1 , 5 , 9 , 4 }; Array.Clear(intArray, 0 , intArray.Length); // 清空第0到第intArray.Length個索引的元素.(包括第0個,不包括第in...
-
介面,依賴反轉,單元測試 https://www.youtube.com/watch?v=GpYieGx4y6M 介面隔離,反射,特性,依賴注入 https://www.youtube.com/watch?v=3bZ4rNS_o10
沒有留言:
張貼留言