• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# AjaxRequestEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中AjaxRequestEventArgs的典型用法代码示例。如果您正苦于以下问题:C# AjaxRequestEventArgs类的具体用法?C# AjaxRequestEventArgs怎么用?C# AjaxRequestEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AjaxRequestEventArgs类属于命名空间,在下文中一共展示了AjaxRequestEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: RadAjaxPanel1_AjaxRequest

 protected void RadAjaxPanel1_AjaxRequest(object sender, AjaxRequestEventArgs e)
 {
     switch (e.Argument)
     {
         case "loadCustomerName":
             DataTable tDetail = bd.Customer.CustomerDetail(txtCustomerId.Text);
             if (tDetail == null || tDetail.Rows.Count <= 0)
                 lblCustomerName.Text = "This Customer does not exist.";
             else
                 lblCustomerName.Text = tDetail.Rows[0]["GBFullName"].ToString();
             break;
         default:
             break;
     }
 }
开发者ID:nguyenppt,项目名称:biscorebanksys,代码行数:15,代码来源:Capture.ascx.cs


示例17: AjaxManager_OnRequest

        public void AjaxManager_OnRequest(object sender, AjaxRequestEventArgs e)
        {
            String [] temp = e.Argument.Split('|');

            if (temp.Length == 2)
            {
                String siteGuid = temp[0];
                String packageGuid = temp[1];
                SitePackageManager.NewInstance.DeployToSubscription(LoggedInUser.Wrapper.UserInfo.Guid, siteGuid, packageGuid, this);
            }

            RadProgressContext progress = RadProgressContext.Current;
            progress.CurrentOperationText = "Successfully Deployed Package";
            progress.OperationComplete = true;
        }
开发者ID:beachead,项目名称:gooey-cms-v2,代码行数:15,代码来源:apply.aspx.cs


示例18: RadAjaxManager1_AjaxRequest

 public void RadAjaxManager1_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
         {
             fieldListTree.LoadXmlString(treeNodes);
             fieldListTree.ExpandAllNodes();
             fieldListTree.ToolTip = fieldListTree.DataValueField;
         }
         this.RadAjaxManager1.ResponseScripts.Add("PreFillDialog()");
     }
 }
开发者ID:jaytem,项目名称:minGit,代码行数:16,代码来源:mergefield.aspx.cs


示例19: RadAjaxManager1_AjaxRequest

    public void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        Utility U = new Utility();
        string sql = "SELECT a.FullName as CustomerName,a.UpiCode, a.Phone, b.FullName,s.PositionName FROM [Customer] as a LEFT JOIN [CustomerSupervisor] as b on a.Id=b.CustomerId left join SupervisorPosition as s on b.PositionId=s.Id where a.Phone in (" + e.Argument + ")";
        string sqlSale = "Select l.FullName as CustomerName,l.UpiCode,l.Phone,l.FullName as FullName,r.RoleName as PositionName FROM [Salesmen] as l LEFT JOIN [Role] as r on l.RoleId=r.Id where l.Phone in (" + e.Argument + ")";
        DataTable dtcustomer = U.GetList(sql);
        DataTable dtSale = U.GetList(sqlSale);
        DataTable dtAll = dtcustomer.Copy();
        dtAll.Merge(dtSale);
        SchedulePhoneNumbers.DataSource = dtAll;
        SchedulePhoneNumbers.Rebind();
        SchedulePhoneNumbers.Visible = true;

        SchedulePhoneNumbers.PageSize += 10;
        SchedulePhoneNumbers.Rebind();
    }
开发者ID:groshugo,项目名称:unitedpharma,代码行数:16,代码来源:ComposeSMS.aspx.cs


示例20: OnAjaxRequest

        protected void OnAjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            AjaxArguments args=new AjaxArguments(e);

            switch (args.CommandName)
            {
                case "Login":
                    string name = args[0];
                    string password = args[1];
                    Login(name,password);
                    break;
                case "Logout":
                    Logout();
                    break;
            }
        }
开发者ID:baikangwang,项目名称:TJVISA,代码行数:16,代码来源:Default.aspx.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# AkActionOnEventType类代码示例发布时间:2022-05-24
下一篇:
C# AjaxOptions类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap