本文整理汇总了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;
}
示例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>");
}
}
示例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");
}
示例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");
}
示例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;
}
示例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;
}