本文介绍了从DispForm重定向到EditForm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图弄清楚如何从DispForm重定向到EditForm.我希望能够单击一个任务,然后直接在编辑模式"下输入.
I am trying to figure out how to redirect from DispForm to EditForm. I want to be able to click on a task and enter directly in Edit Mode.
我有这个代码段,它应该可以工作,但是不能:
I have this snippet and it should work but it doesn't:
<script type="text/javascript">
var ActualURL = window.location.href;
var SecondURL = ActualURL.replace("DispForm.aspx", "EditForm.aspx");
window.location.replace(SecondURL);
</script>
我做错了什么?
先谢谢您.
Mircea
推荐答案
window.location.href = SecondURL;
window.location.href = SecondURL;
这篇关于从DispForm重定向到EditForm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!