當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。