当前位置: 首页>>代码示例>>C#>>正文


C# BasicRequest.Add方法代码示例

本文整理汇总了C#中BasicRequest.Add方法的典型用法代码示例。如果您正苦于以下问题:C# BasicRequest.Add方法的具体用法?C# BasicRequest.Add怎么用?C# BasicRequest.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BasicRequest的用法示例。


在下文中一共展示了BasicRequest.Add方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetInfo

 private BasicResponse GetInfo(string typeCd)
 {
     var request = new BasicRequest();
     request.Add("TypeCd", typeCd);
     var logic = new GetOperateLogic();
     var response = PageCom.Invoke(logic, request);
     return response;
 }
开发者ID:ctsoftvn,项目名称:cts-w-1509-01,代码行数:8,代码来源:booking-step-4.aspx.cs

示例2: btnSubmit_Command

 protected void btnSubmit_Command(object sender, CommandEventArgs e)
 {
     var request = new BasicRequest();
     request.Add("Name", txtName.Text);
     request.Add("Phone", txtPhone.Text);
     request.Add("Email", txtEmail.Text);
     request.Add("Description", txtDescription.Text);
     var logic = new SendMailOperateLogic();
     var response = PageCom.Invoke(logic, request);
     if (response.ResultFlag)
     {
         Page.ClientScript.RegisterStartupScript(this.GetType(), "clientscript", "<script> alert('" + Strings.CLN_ALERT_SUCCESS + "'); </script>");
         clearControls();
     }
     else
     {
         Page.ClientScript.RegisterStartupScript(this.GetType(), "clientscript", "<script> alert('" + Strings.CLN_ALERT_ERROR + "'); </script>");
     }
 }
开发者ID:ctsoftvn,项目名称:cts-w-1509-01,代码行数:19,代码来源:contact-us.aspx.cs

示例3: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            var request = new BasicRequest();
            request.Add("Slug", "destinations");
            var logic = new InitOperateLogic();
            var response = PageCom.Invoke(logic, request);

            var Pages = PageCom.GetValue<HashMap>(response, "Page");

            ltPageName.Text = PageCom.GetValue<string>(Pages, "PageName");
            ltPageContent.Text = PageCom.GetValue<string>(Pages, "Content");

            Page.Title = PageCom.GetValue<string>(response, "MetaTitle");
            Page.MetaKeywords = PageCom.GetValue<string>(response, "MetaKey");
            Page.MetaDescription = PageCom.GetValue<string>(response, "MetaDescription");
        }
开发者ID:ctsoftvn,项目名称:cts-w-1509-01,代码行数:16,代码来源:destinations.aspx.cs

示例4: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            var request = new BasicRequest();
            request.Add("Slug", Request["name"]);
            var logic = new InitOperateLogic();
            var response = PageCom.Invoke(logic, request);

            var Tours = PageCom.GetValue<HashMap>(response, "Tour");

            ltTourTitle.Text = PageCom.GetValue<string>(Tours, "TourName");
            ltTourDes.Text = PageCom.GetValue<string>(Tours, "Notes");

            Page.Title = PageCom.GetValue<string>(response, "MetaTitle");
            Page.MetaKeywords = PageCom.GetValue<string>(response, "MetaKey");
            Page.MetaDescription = PageCom.GetValue<string>(response, "MetaDescription");
        }
开发者ID:ctsoftvn,项目名称:cts-w-1509-01,代码行数:16,代码来源:tour-detail.aspx.cs

示例5: Page_Load

        protected void Page_Load(object sender, EventArgs e)
        {
            var request = new BasicRequest();
            request.Add("Slug", "contact-us");
            var logic = new InitOperateLogic();
            var response = PageCom.Invoke(logic, request);

            var Pages = PageCom.GetValue<HashMap>(response, "Page");

            ltPageName.Text = PageCom.GetValue<string>(Pages, "PageName");
            ltPageContent.Text = PageCom.GetValue<string>(Pages, "Content");

            Page.Title = PageCom.GetValue<string>(response, "MetaTitle");
            Page.MetaKeywords = PageCom.GetValue<string>(response, "MetaKey");
            Page.MetaDescription = PageCom.GetValue<string>(response, "MetaDescription");
            getInfoCompany();
            btnSubmit.Text = Strings.CLN_CONTACT_US_SEND;
        }
开发者ID:ctsoftvn,项目名称:cts-w-1509-01,代码行数:18,代码来源:contact-us.aspx.cs

示例6: CalcInfo

 private BasicResponse CalcInfo(BookingObject bookingObj)
 {
     var request = new BasicRequest();
     request.Add("TypeCd", bookingObj.TypeCd);
     request.Add("DateFrom", bookingObj.DateFrom);
     request.Add("DateTo", bookingObj.DateTo);
     request.Add("RoomQty", bookingObj.RoomQty);
     request.Add("HasPickUp", bookingObj.PickUp);
     request.Add("HasSeeOff", bookingObj.SeeOff);
     var logic = new CalcOperateLogic();
     var response = PageCom.Invoke(logic, request);
     return response;
 }
开发者ID:ctsoftvn,项目名称:cts-w-1509-01,代码行数:13,代码来源:booking-step-3.aspx.cs


注:本文中的BasicRequest.Add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。