Asp.net 将操作url动态分配给POST方法
我有一个简单的asp表单,其中只有很少的文本字段,这些值存储在隐藏字段中。在按钮上单击我调用post方法作为Asp.net 将操作url动态分配给POST方法,asp.net,visual-studio-2012,Asp.net,Visual Studio 2012,我有一个简单的asp表单,其中只有很少的文本字段,这些值存储在隐藏字段中。在按钮上单击我调用post方法作为 <form method="post" action="https://test.mydomain.com/payment/AcceptRequestServlet" 您可以使用javascript切换表单操作 if(case1) { document.myform.action ="https://test.mydomain.com/payment/AcceptRe
<form method="post" action="https://test.mydomain.com/payment/AcceptRequestServlet"
您可以使用javascript切换表单操作
if(case1)
{
document.myform.action ="https://test.mydomain.com/payment/AcceptRequestServlet1";
}
else
{
document.myform.action ="https://test.mydomain.com/payment/AcceptRequestServlet2";
}
假设表单是myform
,从目前的问题来看,这要么是纯客户端,要么是Java平台。为什么它被标记为ASP.NET和VS2012?
if(case1)
{
document.myform.action ="https://test.mydomain.com/payment/AcceptRequestServlet1";
}
else
{
document.myform.action ="https://test.mydomain.com/payment/AcceptRequestServlet2";
}