I have an action I call from an anchor thusly, Site/Controller/Action/ID
where ID
is an int
.
(我有一个我从锚点调用的动作,即Site/Controller/Action/ID
,其中ID
是int
。)
Later on I need to redirect to this same Action from a Controller.
(稍后我需要从Controller重定向到同一个Action。)
Is there a clever way to do this?
(有一个聪明的方法来做到这一点?)
Currently I'm stashing ID
in tempdata, but when you hit f5 to refresh the page again after going back, the tempdata is gone and the page crashes. (目前我在tempdata中存储了ID
,但是当你回到f5后再次刷新页面时,tempdata就消失了,页面崩溃了。)
ask by Eric Brown - Cal translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…