2 回答

TA貢獻(xiàn)1829條經(jīng)驗(yàn) 獲得超6個(gè)贊
注意 你R["IG_Name"] 取值 之后 是否 已亂碼
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | public class HomeController : Controller { // // GET: /Home/
public ActionResult Index() { return View(); }
public ActionResult IndexTwo() { ViewData["IG_Name"] = Request["IG_Name"]; return View(); }
}
Index.aspx <body> <div> <a href="IndexTwo?IG_Name=<%=Server.UrlEncode("中文") %>">Click Me</a> </div> </body>
IndexTwo.aspx <body> <div> <%=ViewData["IG_Name"] %> </div> </body> |
- 2 回答
- 0 關(guān)注
- 937 瀏覽
添加回答
舉報(bào)