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

📄 domaincreate2_submit.aspx

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

<script language="C#" runat="server">
string msg=null,code=null,wrongMsg="";
bool isSuccess;
string responseXML=null,sendXML=null;
Hashtable resdataHash = new Hashtable();
ReceiveXML reXML;
private string domainSuffix(string domain){
	string lastSuffix=domain.Substring(domain.LastIndexOf(".")+1,domain.Length-domain.LastIndexOf(".")-1);
	return "dot"+lastSuffix;
}
public void Page_Load(object sender , EventArgs E)
{
	try{
		Hashtable domaininfo = new Hashtable();
		Hashtable registhash = new Hashtable();
		Hashtable adminhash = new Hashtable();
		domaininfo["domain"]=Request.Form["domain"];
		domaininfo["period"]=Request.Form["period"];
		domaininfo["chrNS1"]=Request.Form["chrNS1"];
		domaininfo["chrNS2"]=Request.Form["chrNS2"];

		registhash["name"]=Request.Form["OName"];
		registhash["mname"]=Request.Form["OName_GB"];
		registhash["org"]=Request.Form["OOrganization"];
		registhash["morg"]=Request.Form["OOrganization_GB"];
		registhash["cc"]=Request.Form["OCC"];
		registhash["sp"]=Request.Form["OSP"];
		registhash["pc"]=Request.Form["OPC"];
		registhash["city"]=Request.Form["OCity"];
		registhash["street"]=Request.Form["OStreet"];
		registhash["street1"]=Request.Form["OStreet1"];
		registhash["voice"]=Request.Form["OTel"];
		registhash["fax"]=Request.Form["OFax"];
		registhash["email"]=Request.Form["OEmail"];
		registhash["mobile"]=Request.Form["Omobile"];

		adminhash["name"]=Request.Form["AName"];
		adminhash["mname"]=Request.Form["AName_GB"];
		adminhash["org"]=Request.Form["AOrganization"];
		adminhash["morg"]=Request.Form["AOrganization_GB"];
		adminhash["cc"]=Request.Form["ACC"];
		adminhash["sp"]=Request.Form["ASP"];
		adminhash["pc"]=Request.Form["APC"];
		adminhash["city"]=Request.Form["ACity"];
		adminhash["street"]=Request.Form["AStreet"];
		adminhash["street1"]=Request.Form["AStreet1"];
		adminhash["voice"]=Request.Form["ATel"];
		adminhash["fax"]=Request.Form["AFax"];
		adminhash["email"]=Request.Form["AEmail"];
		adminhash["mobile"]=Request.Form["Amob"];

		Hashtable techhash = adminhash;
		Hashtable billinghash = adminhash;
		Contact regist = new Contact(registhash);
		Contact admin = new Contact(adminhash);
		Contact tech = new Contact(techhash);
		Contact billing = new Contact(billinghash);

		Domain domain = new Domain();
		domain.createDomain(domaininfo,regist,admin,tech,billing);

		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();
		reXML=receivexml;
		
	}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=big5">
<title>家狾</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.jpg" width="760" height="21"></th>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" background="../../images/top2.gif">
  <tr>
    <td width="278" height="25" scope="row">&nbsp;</td>
    <td width="482" scope="row">

⌨️ 快捷键说明

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