本文整理匯總了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;
}