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


C# AjaxRequestEventArgs类代码示例

本文整理汇总了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();
    }
开发者ID:angelpetrov90,项目名称:aspnet-sdk,代码行数:28,代码来源:Default.aspx.cs

示例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\");");
         }
     }
 }
开发者ID:netthanhhung,项目名称:Neos,代码行数:29,代码来源:Jobs.aspx.cs

示例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;
        }
开发者ID:beachead,项目名称:gooey-cms-v2,代码行数:25,代码来源:DoPackage.aspx.cs

示例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);
        }
开发者ID:psychotiic,项目名称:speedyspots,代码行数:8,代码来源:create-request.aspx.cs

示例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;
     }
 }
开发者ID:hvalyavicharski,项目名称:telerik-radcontrols,代码行数:8,代码来源:Default.aspx.cs

示例6: OnMyAjaxManagerAjaxRequest

 protected void OnMyAjaxManagerAjaxRequest(object sender, AjaxRequestEventArgs e)
 {
     if (e.Argument.IndexOf("RebindUnitGrid") != -1)
     {
         MyAjaxManager.AjaxSettings.AddAjaxSetting(MyAjaxManager, gridUnits);
         gridUnits.Rebind();
     }
 }
开发者ID:netthanhhung,项目名称:Neos,代码行数:8,代码来源:AdminUnits.aspx.cs

示例7: OnMyAjaxManagerAjaxRequest

 protected void OnMyAjaxManagerAjaxRequest(object sender, AjaxRequestEventArgs e)
 {
     if (e.Argument.IndexOf("RebindSearchResults") != -1)
     {
         SearcRoomPostAjaxManager.AjaxSettings.AddAjaxSetting(SearcRoomPostAjaxManager, gridRoomResult);
         GetGridRoomResultDataSource(null);
         gridRoomResult.DataBind();
     }
 }
开发者ID:netthanhhung,项目名称:RoomSearch,代码行数:9,代码来源:SearchOldPostPage.aspx.cs

示例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";
 }
开发者ID:npriddy,项目名称:Urban-Scheduler,代码行数:9,代码来源:SearchResults.aspx.cs

示例9: RadAjaxManager1_AjaxRequest

 protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
 {
     if (e.Argument == "Rebind")
     {
         RadGrid1.Rebind();
     }
     else if (e.Argument == "RebindAndNavigate")
     {
         RadGrid1.Rebind();
     }
 }
开发者ID:KdGAppli,项目名称:Nevenactiviteiten,代码行数:11,代码来源:Beheer.aspx.cs

示例10: OnInvoiceDetailAjaxManagerAjaxRequest

    protected void OnInvoiceDetailAjaxManagerAjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        if (e.Argument.IndexOf("DataBindCompanyAddress") != -1)
        {
            string[] param = e.Argument.Split('-');
            if (param.Length == 2)
            {

            }
        }
    }
开发者ID:netthanhhung,项目名称:Neos,代码行数:11,代码来源:InvoiceDetailPopup.aspx.cs

示例11: m_oAjaxPanel_AjaxRequest

 protected void m_oAjaxPanel_AjaxRequest(object sender, AjaxRequestEventArgs e)
 {
     switch (e.Argument)
     {
         case "RefreshNotes":
             LoadNotes();
             break;
         default:
             break;
     }
 }
开发者ID:psychotiic,项目名称:speedyspots,代码行数:11,代码来源:RequestNotes.ascx.cs

示例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]));
         }
     }
 }
开发者ID:netthanhhung,项目名称:RoomSearch,代码行数:12,代码来源:PostDetailPopup.aspx.cs

示例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. */
     }
 }
开发者ID:SwarmCorp,项目名称:Swarmops,代码行数:13,代码来源:MailServerAccounts.aspx.cs

示例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]);
            }
        }
开发者ID:baikangwang,项目名称:TJVISA,代码行数:13,代码来源:AjaxArguments.cs

示例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();
         }
     }
 }
开发者ID:jaytem,项目名称:minGit,代码行数:14,代码来源:ucFieldTreeView.ascx.cs


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