Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 如何从客户端设置linkbutton控件上的postbackurl?_Asp.net - Fatal编程技术网

Asp.net 如何从客户端设置linkbutton控件上的postbackurl?

Asp.net 如何从客户端设置linkbutton控件上的postbackurl?,asp.net,Asp.net,我在aspx页面上有一个服务器控件链接按钮 出于一些复杂的原因,我需要为这个按钮设置客户端的postbackurl 有没有办法从客户端设置回发url 我参考了一些javascript:WebForm_DoPostBackWithOptions方法-但不确定如何最好地使用它。您可以使用window.document.forms[0].target='otherpage.aspx'更改表单的目标。 您可能还需要取消发布到的页面上的事件验证

我在aspx页面上有一个服务器控件链接按钮

出于一些复杂的原因,我需要为这个按钮设置客户端的postbackurl

有没有办法从客户端设置回发url


我参考了一些javascript:WebForm_DoPostBackWithOptions方法-但不确定如何最好地使用它。

您可以使用window.document.forms[0].target='otherpage.aspx'更改表单的目标。 您可能还需要取消发布到的页面上的事件验证