-
-
-
-
using?System;
-
using?System.Configuration;
-
using?System.Data;
-
using?System.Web;
-
using?System.Web.Security;
-
using?System.Web.UI;
-
using?System.Web.UI.HtmlControls;
-
using?System.Web.UI.WebControls;
-
using?System.Web.UI.WebControls.WebParts;
-
using?cn.com.webxml.www;
-
public?partial?class?_Default?:?System.Web.UI.Page?
- {
- ???
-
????protected?void?Page_Load(object?sender,?EventArgs?e)
- ????{
- ????????DataSet?dsss?=?shuju();
-
????????this.GridView1.DataSource?=?dsss.Tables[0].DefaultView;
-
????????this.GridView1.DataBind();
- ????}
-
????public?DataSet?shuju()
- ????{
-
????????ForexRmbRateWebService?wh?=?new?ForexRmbRateWebService();
- ????????DataSet?ds?=?wh.getForexRmbRate();
-
????????return?ds;
- ????}
-
????protected?void?Button1_Click(object?sender,?EventArgs?e)
- ????{
-
????????this.Label1.Text?=?"";
-
????????TranslatorWebService?fy?=?new?TranslatorWebService();
-
????????string?text?=?this.TextBox1.Text.ToString();
-
????????string[]?st?=?fy.getEnCnTwoWayTranslator(text);
- ??????
-
????????this.Label2.Text?=?text;
-
????????string?sss?=?st[1].ToString();
-
????????string[]?fg?=?sss.ToString().Split('|');
-
????????for?(int?c?=?0;?c?<?fg.Length;c++?)
- ????????{
-
????????????this.Label1.Text?+=?fg[c].ToString()?+?"<br>";
- ????????}
- ????}
-
????protected?void?GridView1_PageIndexChanging(object?sender,?GridViewPageEventArgs?e)
- ????{
- ????????GridView1.PageIndex?=?e.NewPageIndex;
- ????????DataSet?dsss?=?shuju();
- ????????GridView1.DataSource?=?dsss;
- ????????GridView1.DataBind();
- ????}
- }
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|