mvc中怎么带参数跳转页面?
展开全部
有很多方法:
1.控制器中跳转:
return RedirectToAction("Testing_view", new { papeid = papelis.Test_paper_id, name = names, idcards = idcard, question_sums = papelis.mutil_questions_sum, limit_time = papelis.Test_paper_spend_time });
2.页面跳转:
<%:Html.ActionLink("详细", "Test_query_view",new {papeid=item.Test_paper_id,name=item.resume_info.Person_name,idcard=item.resume_info.Person_idcard,used_time=item.used_time})%>
还有很多...
1.控制器中跳转:
return RedirectToAction("Testing_view", new { papeid = papelis.Test_paper_id, name = names, idcards = idcard, question_sums = papelis.mutil_questions_sum, limit_time = papelis.Test_paper_spend_time });
2.页面跳转:
<%:Html.ActionLink("详细", "Test_query_view",new {papeid=item.Test_paper_id,name=item.resume_info.Person_name,idcard=item.resume_info.Person_idcard,used_time=item.used_time})%>
还有很多...
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询