當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。