⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 domainrenew_submit.aspx

📁 实现了在线订单的提交
💻 ASPX
字号:
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="gb2312" %>
<%@ Import Namespace="com.todayisp.NowClient" %>

<script language="C#" runat="server">
string msg=null,code=null,wrongMsg=null;
bool isSuccess;
string responseXML=null,sendXML=null;
Hashtable resdataHash=new Hashtable();
public void Page_Load(object sender , EventArgs E)
{
	try{
		Domain domain = new Domain();
		
		Hashtable domaininfo = new Hashtable();
		domaininfo["domain"]=Request.Form["name"];
		domaininfo["period"]=Request.Form["period"];
		domaininfo["exdate"]=Request.Form["exdate"];
		sendXML=domain.renewDomain(domaininfo);
		sendXML=domain.getsendXML();

		ReceiveXML receivexml = new ReceiveXML(domain.getresponseXML());

		msg = receivexml.getMsg();
		code = receivexml.getCode();
		isSuccess = receivexml.isSuccess();
		responseXML=receivexml.getXML(domain.getresponseXML());
		resdataHash=receivexml.getResData();
		
	}catch(Exception ex){
		wrongMsg=ex.Message;
		//Response.Write(ex.Message);
		//Response.Write(ex.StackTrace);
	}
}

</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Renew Domain</title>
<link href="../../images/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-bottom: 0px;
	background-color: #CCCCCC;
}
-->
</style></head>
<body>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th scope="row"><img src="../../images/top1_en.jpg" width="760" height="21"></th>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" background="../../images/top2_en.gif">
  <tr>
    <td width="278" height="25" scope="row">&nbsp;</td>
    <td width="482" scope="row">TODAYNIC.COM,INC. API DEMO Ver1.1</td> 
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="76" background="../../images/top3.jpg" scope="row"><EMBED src="../../images/banner_2.swf" quality=high WIDTH="375" HEIGHT="76" wmode="transparent" menu="false"></embed><EMBED src="../../images/banner_2.swf" quality=high WIDTH="375" HEIGHT="76" wmode="transparent" menu="false"></embed></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" background="../../images/top4.gif">
  <tr>
    <td width="267" height="30" scope="row">&nbsp;</td>
    <td width="493" scope="row"> <strong>Domain</strong> - Renew Domain </td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" background="../../images/middle.gif">
  <tr>
    <td width="202" height="100%" valign="top" scope="row"><table width="95%" height="100%"  border="0" align="center" cellpadding="0" cellspacing="0" background="../../images/drg.gif">
      <tr>
        <td height="35" background="../../images/bback01.jpg" scope="row">  <a href="../../index_en.htm" class="top">API Demo Home</a></td>
      </tr>
      <tr>
        <td height="25" align="left"  background="../../images/bback02.gif" scope="row"><img src="../../images/bback03.gif" width="30" height="15" align="absmiddle"><STRONG><a href="../../doc/en/config.htm"><font color="black">Developer's Guide </font></a></STRONG></td>
      </tr>
      <tr>
        <td height="25" align="left" background="../../images/bback02.gif" scope="row">   <STRONG>Domain</STRONG></td>
      </tr>
      <tr>
        <td height="30" scope="row"><img src="../../images/bback03.gif" width="30" height="15" align="absmiddle"><a href="domainCreate.htm">Create Domain </a></td>
      </tr>
      <tr>
        <td height="30" scope="row"><img src="../../images/bback03.gif" width="30" height="15" align="absmiddle"><a href="domainRenew.htm">Renew Domain</a> </td>
      </tr>
      <tr>
        <td height="30" scope="row"><img src="../../images/bback03.gif" width="30" height="15" align="absmiddle"><a href="domainInfo.htm">Info Domain </a></td>
      </tr>
      <tr>
        <td height="30" scope="row"><img src="../../images/bback03.gif" width="30" height="15" align="absmiddle"><a href="domainCheck.htm">Check Domain </a></td>
      </tr>
      <tr>
        <td height="30" scope="row"><img src="../../images/bback03.gif" width="30" height="15" align="absmiddle"><a href="domainModify.htm">Modify DNS </a></td>
      </tr>
      <tr>
        <td height="30" scope="row"><img src="../../images/bback03.gif" width="30" height="15" align="absmiddle"><a href="contactCreate.htm">Create Contact </a></td>
      </tr>
      <tr>
        <td height="30" scope="row"><img src="../../images/bback03.gif" width="30" height="15" align="absmiddle"><a href="contactUpdate.htm">Modify Contact </a></td>
      </tr>
      <tr>
        <td height="30" scope="row"><img src="../../images/bback03.gif" width="30" height="15" align="absmiddle"><a href="contactInfo.htm">Check Contact </a></td>
      </tr>
      <tr>
        <td height="100%" scope="row">&nbsp;</td>
      </tr>
    </table></td>
    <td width="558" valign="top" scope="row"><br>
      <table width="98%"  border="1" align="center" cellpadding="1" cellspacing="0" bordercolorlight="#FFFFFF" bordercolor="#F5EEE8">
      <tr>
        <td scope="row"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
                <th height="20" bgcolor="#f7f7f7" scope="row"> = Renew Domain =</th>
          </tr>
        </table>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
                <th width="13%" scope="row"><img src="../../images/register.jpg" width="66" height="66" hspace="10" vspace="10"></th>
                <td width="87%">1、Status:<%=code%><br>
                  2、Message:<%=msg%> <br>
                  3、Operation state(success/failure):<%=isSuccess%><br>
			<%try{
				  if(resdataHash.Count!=0){
						Response.Write("<br>The result:<br>");
						/*
						ArrayList array=new ArrayList(resdataHash.Keys);
						IEnumerator en=array.GetEnumerator();
						while(en.MoveNext()){
							Response.Write((string)en.Current+":");
							Response.Write(resdataHash[en.Current]+"<br>");
						}*/
						Response.Write("Domain:"+resdataHash["domain:name"]+" Domain ID:"+resdataHash["domain:roid"]+"<br>");
						Response.Write("Create time:"+resdataHash["domain:dtCreate"]+"<br>");
						Response.Write("Renew time:"+resdataHash["domain:dtUpdate"]+"<br>");
						Response.Write("Expired time:"+resdataHash["domain:dtExpired"]+"<br>");
						Response.Write("The DNS:"+resdataHash["domain:ns1"]+"<br>");
						Response.Write("The DNS:"+resdataHash["domain:ns2"]+"<br>");
				  }
			}
			catch(Exception ex){
				Response.Write("Error message:"+ex.Message);
			}
				  %></td>
            </tr>
          </table>
			
			<table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
                <td height="20" align="left" bgcolor="#f7f7f7" scope="row">A、Returned xml:</td>
          </tr>
        </table>
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <th scope="row"><textarea name="textarea" cols="85%" rows="15" class="formstyle">
				<% try { %>
					<%=responseXML.Replace("<","\r\n<")%>
				<% } catch (Exception ex) { Response.Write("Is Empty Content !!"); }%>
				</textarea></th>
              </tr>
            </table>
			
			<table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
                <td height="20" align="left" bgcolor="#f7f7f7" scope="row">B、sent xml: </td>
          </tr>
        </table>
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <th scope="row"><textarea name="textarea" cols="85%" rows="15" class="formstyle"><%=sendXML%></textarea></th>
              </tr>
            </table>
          </td>
		  
      </tr>
    </table>
	</td>
		  
      </tr>
    </table>
      
<table width="760" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F5EEE8">
  <tr>
    <td valign="top" scope="row"><img src="../../images/down.gif" width="760" height="50"></td>
  </tr>
  <tr>
    <td align="center" scope="row"><br>
      Copyright &copy; 2000,2005 TODAYNIC.COM, INC. All rights reserved<br> 
    &nbsp;</td>
  </tr>
</table>
</body>
</html>














⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -