首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

怎么给页面传参数并接收返回值

2012-12-21 
如何给页面传参数并接收返回值HTML codetable width692 border1trtd colspan3font color

如何给页面传参数并接收返回值

HTML code
<table width="692" border="1">  <tr>    <td colspan="3"><font color="#000000"><font             face="宋体"><font size="2"><span>接口<span lang="EN-US" xml:lang="EN-US">URL地址:</span> </span><span             style="FONT-SIZE: 12pt; FONT-FAMILY: 楷体_GB2312" lang="EN-US" xml:lang="EN-US"><a             href="http://bms.hichina.com/sms_gateway/sms_api"><U><font             color="#0000ff">http://bms.hichina.com/sms_gateway/sms_api</font></U></a>              <o:p></o:p>    </span></font></font></font></td>  </tr>  <tr>    <td><font                   color="#000000" size="2">参数名称</font></td>    <td><font                   color="#000000" size="2">含义</font></td>    <td><font                   color="#000000" size="2">备注</font></td>  </tr>  <tr>    <td><font face="宋体" color="#000000"                   size="2">user_id</font></td>    <td><font                   color="#000000"><font size="2"><span                   style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">您的</span><span                   lang="EN-US" xml:lang="EN-US"><font face="宋体">id</font></span></font></font></td>    <td><font                   color="#000000" size="2">即:企业代码</font></td>  </tr>  <tr>    <td><font face="宋体" color="#000000"                   size="2">password</font></td>    <td><font                   color="#000000" size="2"><span                   style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">您的</span>密码</font></td>    <td><font                   color="#000000"><font size="2"><span                   style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">同</span><font                   face="宋体"><span lang="EN-US" xml:lang="EN-US">web</span><span                   style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">登录密码</span></font></font></font></td>  </tr>  <tr>    <td><font face="宋体" color="#000000"                   size="2">mobile_phone</font></td>    <td><font                   color="#000000" size="2">发送目标手机号</font></td>    <td><font                   color="#000000"><font size="2"><span                   style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">存在多个目标手机时用半角“</span><font                   face="宋体"><span lang="EN-US" xml:lang="EN-US">,</span><span                   style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">”分割,数量不能超出</span><span                   lang="EN-US" xml:lang="EN-US">100</span><span                   style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个</span></font></font></font></td>  </tr>  <tr>    <td><font face="宋体" color="#000000"                   size="2">msg</font></td>    <td><font                   color="#000000" size="2">短信内容</font></td>    <td><font                   color="#000000"><font size="2"><span                   style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">每条短信长度为</span><font                   face="宋体"><span lang="EN-US" xml:lang="EN-US">70</span><span                   style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个中文字符</span></font></font></font></td>  </tr>  <tr>    <td><font face="宋体" color="#000000"                   size="2">send_date</font></td>    <td><font                   color="#000000" size="2">发送时间</font></td>    <td><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span                   style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><font                   color="#000000" size="2">默认为空,即:立即发送</font></span></p>      <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span                   style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><font                   color="#000000" size="2">不为空:则按照指定时间定时发送</font></span></p>    <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font                   color="#000000"><font size="2"><span                   style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">格式为:年月日时分秒(</span><font                   face="宋体"><span lang="EN-US" xml:lang="EN-US">040524165823</span><span                   style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">)</span></font></font></font></p></td>  </tr>  <tr>    <td><font face="宋体" color="#000000"                   size="2">subCode</font></td>    <td><font                   color="#000000" size="2">企业代码</font></td>    <td>&nbsp;</td>  </tr></table><table width="674" border="1">  <tr>    <td bgcolor="#FFFFFF">&nbsp;</td>    <td bgcolor="#FFFFFF">&nbsp;</td>  </tr>  <tr>    <td bgcolor="#FFFFFF"><font                   color="#000000" size="2">返回编码</font></td>    <td bgcolor="#FFFFFF"><font                   color="#000000" size="2">含义</font></td>  </tr>  <tr>    <td bgcolor="#FFFFFF">0</td>    <td bgcolor="#FFFFFF"><font                   color="#000000" size="2">发送成功</font></td>  </tr>  <tr>    <td bgcolor="#FFFFFF">1</td>    <td bgcolor="#FFFFFF"><font                   color="#000000" size="2">用户名或密码校验错误或未授权</font></td>  </tr>  <tr>    <td bgcolor="#FFFFFF">2</td>    <td bgcolor="#FFFFFF"><font                   color="#000000" size="2">无可发许可</font></td>  </tr>  <tr>    <td bgcolor="#FFFFFF">3</td>    <td bgcolor="#FFFFFF"><font                   color="#000000" size="2">提交失败</font></td>  </tr>  <tr>    <td bgcolor="#FFFFFF">5</td>    <td bgcolor="#FFFFFF"><font                   color="#000000" size="2">发送数量大于允许发送条数</font></td>  </tr>  <tr>    <td bgcolor="#FFFFFF">6</td>    <td bgcolor="#FFFFFF"><font                   color="#000000"             size="2">短信内容超长</font></td>  </tr></table> 



如上一个接口可以发送短信,怎么给页面传参数并接收返回的值,判断是否发送成功。我只会用post方式在地址栏上传参数,请教各位大哥。

热点排行