大家好啊,谁能帮我将jsp代码转换成asp代码,非常感谢啊!!
代码如下:<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="com.speed.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
</head>
<%
dim prodid, agentid, orderid, mobilenum
String prodid = "558"; 
String agentid = "15000000000";
String orderid ="DIRECT"+System.currentTimeMillis();
String mobilenum = "13810364136"; 
String returntype = "2"; //返回类型
String source = "esales"; //产品来源,填写esales
String merchantKey = "536fb6c20142b046456180b2c40c2b4d2125d4e";
String  = "";
String backurl = request.getRequestURL().toString().replace("/pages/fill.jsp","/")+"pages/res.jsp";//返回地址 
String oriStr = "prodid="+prodid+"&agentid="+agentid+"&backurl="+backurl+"&returntype="+returntype+"&orderid="+orderid+"&mobilenum="+mobilenum+"&source="+source+"&="++"&merchantKey="+merchantKey;
KeyedDigestMD5 md5 = new KeyedDigestMD5();
String verifystring = md5.getKeyedDigest(oriStr,""); //验证串%>
  <body>
   <form name="form1" action="填写测试地址" method="post"><table width="821" height="131" border="0" cellpadding="0" cellspacing="0">
         <tr>
           <td width="50%">产品id:<input type='text' name='prodid' value='<%=prodid%>'/></td><!--商户在开发中,要通过文档中的接口查询出产品列表,让用户选择产品 -->
           <td width="50%">代理商订单号:<input type='text' name='orderid' value='<%=orderid %>' readonly="readonly"/></td>
         </tr>
         <tr>
           <td width="50%">代理商id:<input type='text' name='agentid' value='<%=agentid%>'/></td>
           <td width="50%">充值手机号:<input type='text' name='mobilenum' value='<%=mobilenum%>'/></td>
         </tr>
         <tr>
           <td width="50%">返回类型:<input type='text' name='returntype' value='<%=returntype%>' />
           <td width="50%">验证摘要串:<a id ='id1'><input type='text' name='verifystring' value='<%=verifystring%>' /></a></td>
         </tr>
         <tr>
           <td>代理商来源:
             <input type='text' name='source' value='esales'/></td>
           <td width="50%">附加字段:<input type='text' name=''/></td>
         </tr>
         <tr>
           <td width="50%">直付请求返回url:<input type='text' name='backurl' value='<%=backurl%>' readonly="readonly"/></td>
           <td width="50%">
               <input type="submit" name="tofill" id="tofill" value="直付" "/>
<input type="hidden" name="returntype" />
                     </td>
         </tr>
       </table>
       </form><br>
  </body>
</html>

解决方案 »

  1.   

    <%@ page contentType="text/html; charset=gb2312" %> 
    <%@ page import="com.speed.util.*"%> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 
    </head> 
    <% 
    dim prodid, agentid, orderid, mobilenum 
    String prodid = "558"; 
    String agentid = "15000000000"; 
    String orderid ="DIRECT"+System.currentTimeMillis(); 
    String mobilenum = "13810364136"; 
    String returntype = "2"; //返回类型 
    String source = "esales"; //产品来源,填写esales 
    String merchantKey = "536fb6c20142b046456180b2c40c2b4d2125d4e"; 
    String  = ""; 
    String backurl = request.getRequestURL().toString().replace("/pages/fill.jsp","/")+"pages/res.jsp";//返回地址 
    String oriStr = "prodid="+prodid+"&agentid="+agentid+"&backurl="+backurl+"&returntype="+returntype+"&orderid="+orderid+"&mobilenum="+mobilenum+"&source="+source+"&="++"&merchantKey="+merchantKey; 
    KeyedDigestMD5 md5 = new KeyedDigestMD5(); 
    String verifystring = md5.getKeyedDigest(oriStr,""); //验证串 %> 
      <body> 
      <form name="form1" action="填写测试地址" method="post"> <table width="821" height="131" border="0" cellpadding="0" cellspacing="0"> 
            <tr> 
              <td width="50%">产品id: <input type='text' name='prodid' value=' <%=prodid%>'/> </td> <!--商户在开发中,要通过文档中的接口查询出产品列表,让用户选择产品 --> 
              <td width="50%">代理商订单号: <input type='text' name='orderid' value=' <%=orderid %>' readonly="readonly"/> </td> 
            </tr> 
            <tr> 
              <td width="50%">代理商id: <input type='text' name='agentid' value=' <%=agentid%>'/> </td> 
              <td width="50%">充值手机号: <input type='text' name='mobilenum' value=' <%=mobilenum%>'/> </td> 
            </tr> 
            <tr> 
              <td width="50%">返回类型: <input type='text' name='returntype' value=' <%=returntype%>' /> 
              <td width="50%">验证摘要串: <a id ='id1'> <input type='text' name='verifystring' value=' <%=verifystring%>' /> </a> </td> 
            </tr> 
            <tr> 
              <td>代理商来源: 
                <input type='text' name='source' value='esales'/> </td> 
              <td width="50%">附加字段: <input type='text' name=''/> </td> 
            </tr> 
            <tr> 
              <td width="50%">直付请求返回url: <input type='text' name='backurl' value=' <%=backurl%>' readonly="readonly"/> </td> 
              <td width="50%"> 
                  <input type="submit" name="tofill" id="tofill" value="直付" "/> 
    <input type="hidden" name="returntype" /> 
                        </td> 
            </tr> 
          </table> 
          </form> <br> 
      </body> 
    </html>