本文整理汇总了C#中AjaxRequestEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# AjaxRequestEventArgs类的具体用法?C# AjaxRequestEventArgs怎么用?C# AjaxRequestEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AjaxRequestEventArgs类属于命名空间,在下文中一共展示了AjaxRequestEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RadAjaxPanel1_AjaxRequest
void RadAjaxPanel1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
StringBuilder whereClause = new StringBuilder();
if (!string.IsNullOrEmpty(e.Argument.ToString()))
{
string[] elements = e.Argument.ToString().Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
foreach (var element in elements)
{
var group = element.Split(new char[] { '~' }, StringSplitOptions.RemoveEmptyEntries);
int firstPart = Convert.ToInt32(group[0]);
int secondPart = Convert.ToInt32(group[1]);
whereClause.Append(string.Format("{0} = '{1}' AND ", Arguments[firstPart], Arguments[secondPart]));
}
// Remove the last " AND " clause
whereClause.Remove(whereClause.Length - 5, 5);
GridDataSource = GetDataTable(string.Format("SELECT * FROM Transportation WHERE {0}", whereClause.ToString()));
}
//Executed when row and column grandtotal cell is clicked
else
{
GridDataSource = GetDataTable("SELECT * FROM Transportation");
}
RadWindow1.VisibleOnPageLoad = true;
RadGrid1.Rebind();
}
示例2: JobAjaxManager_AjaxRequest
protected void JobAjaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument.IndexOf("OpenSelectedJob") > -1)
{
if (gridJobs.SelectedItems.Count == 1)
{
Response.Redirect(string.Format("~/JobProfile.aspx?JobId={0}&mode=edit", GetSelectedJobID()), true);
}
}
else if (e.Argument.IndexOf("DeleteSelectedJob") > -1)
{
if (gridJobs.SelectedItems.Count == 1)
{
JobAjaxManager.AjaxSettings.AddAjaxSetting(JobAjaxManager, gridJobs);
JobRepository jobRepo = new JobRepository();
jobRepo.Delete(new Job(GetSelectedJobID()));
gridJobs.Rebind();
}
}
else if (e.Argument.IndexOf("PreviewJob") > -1)
{
if (gridJobs.SelectedItems.Count == 1)
{
string script = string.Format("openPopUp('{0}')", WebConfig.NeosJobDetailURL + GetSelectedJobID());
JobAjaxManager.ResponseScripts.Add(script);
JobAjaxManager.ResponseScripts.Add("processJobToolBar(\"JobGridSelected\");");
}
}
}
示例3: AjaxManager_OnRequest
public void AjaxManager_OnRequest(object sender, AjaxRequestEventArgs e)
{
SitePackageManager manager = SitePackageManager.NewInstance;
Package package = manager.GetPackage(e.Argument);
manager.CreatePackage(package, this);
manager.DeployDemoPackage(package.Guid, this);
//Send an email to the admin
String body = String.Format(
@"A new package was created which requires approval.
Author: {0}
Package Unique Id: {1}
Owner Subscription Id: {2}
Title: {3}
Date: {4}", LoggedInUser.Username, package.Guid, package.OwnerSubscriptionId, package.Title, package.Created);
EmailClient client = EmailClient.GetDefaultClient();
client.ToAddress = GooeyConfigManager.EmailAddresses.SiteAdmin;
client.FromAddress = LoggedInUser.Email;
client.Send("New Site Package Requiring Approval", body);
RadProgressContext progress = RadProgressContext.Current;
progress.CurrentOperationText = "Successfully Deployed Package";
progress.OperationComplete = true;
}
示例4: OnAjaxRequest
public override void OnAjaxRequest(object sender, AjaxRequestEventArgs e)
{
var customerGuid = MemberProtect.Utility.ValidateGuid(e.Argument);
if (customerGuid == Guid.Empty) return;
LoadCustomerInformation(customerGuid);
LoadPaymentSources(customerGuid);
}
示例5: ajaxManager_AjaxRequest
protected void ajaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument == "mobile")
{
RadMenu menu = (RadMenu)WebUserControl1.FindControl("menu");
menu.RenderMode = RenderMode.Mobile;
}
}
示例6: OnMyAjaxManagerAjaxRequest
protected void OnMyAjaxManagerAjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument.IndexOf("RebindUnitGrid") != -1)
{
MyAjaxManager.AjaxSettings.AddAjaxSetting(MyAjaxManager, gridUnits);
gridUnits.Rebind();
}
}
示例7: OnMyAjaxManagerAjaxRequest
protected void OnMyAjaxManagerAjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument.IndexOf("RebindSearchResults") != -1)
{
SearcRoomPostAjaxManager.AjaxSettings.AddAjaxSetting(SearcRoomPostAjaxManager, gridRoomResult);
GetGridRoomResultDataSource(null);
gridRoomResult.DataBind();
}
}
示例8: manager_AjaxRequest
protected void manager_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
//handle the manager AjaxRequest event here
if (e.Argument != null)
{
_lblCords.Text = e.Argument;
}
else _lblCords.Text = "Not Found";
}
示例9: RadAjaxManager1_AjaxRequest
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument == "Rebind")
{
RadGrid1.Rebind();
}
else if (e.Argument == "RebindAndNavigate")
{
RadGrid1.Rebind();
}
}
示例10: OnInvoiceDetailAjaxManagerAjaxRequest
protected void OnInvoiceDetailAjaxManagerAjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument.IndexOf("DataBindCompanyAddress") != -1)
{
string[] param = e.Argument.Split('-');
if (param.Length == 2)
{
}
}
}
示例11: m_oAjaxPanel_AjaxRequest
protected void m_oAjaxPanel_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
switch (e.Argument)
{
case "RefreshNotes":
LoadNotes();
break;
default:
break;
}
}
示例12: OnMyAjaxManagerAjaxRequest
protected void OnMyAjaxManagerAjaxRequest(object sender, AjaxRequestEventArgs e)
{
if (e.Argument.IndexOf("RebindDistrictListByCity") != -1)
{
string[] param = e.Argument.Split('-');
if (param.Length == 2)
{
PostDetailsAjaxManager.AjaxSettings.AddAjaxSetting(PostDetailsAjaxManager, cbbDistrict);
BindDistrictListByCity(int.Parse(param[1]));
}
}
}
示例13: RadAjaxManager1_AjaxRequest
protected void RadAjaxManager1_AjaxRequest (object sender, AjaxRequestEventArgs e)
{
if (e.Argument == "Rebind")
{
//this.GridTransactions.MasterTableView.SortExpressions.Clear();
//this.GridTransactions.MasterTableView.GroupByExpressions.Clear();
PopulateGrid();
}
else if (e.Argument == "RebindAndNavigate")
{
/* This should not happen. */
}
}
示例14: AjaxArguments
public AjaxArguments(AjaxRequestEventArgs e)
: this()
{
string[] args = e.Argument.Split('|');
for (int i = 0; i < args.Length; i++)
{
if (i == 0)
_commadName = args[i];
else
_args.Add(args[i]);
}
}
示例15: AjaxManager1_AjaxRequest
public void AjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
string treeNodes = e.Argument;
if (treeNodes.Length > 0)
{
treeNodes = treeNodes.Replace("\r\n", "");
treeNodes = treeNodes.Replace("\t", "");
if ("<tree" == treeNodes.Substring(0, 5).ToLower().ToString()) // in case of AjaxManager fail to load xml
{
RadTree1.LoadXmlString(treeNodes);
RadTree1.ExpandAllNodes();
}
}
}