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


C# WizardNavigationEventArgs类代码示例

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


WizardNavigationEventArgs类属于命名空间,在下文中一共展示了WizardNavigationEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateUserWizard1_NextButtonClick

 /// <summary>
 /// ������CreateUserWizard�򵼵���һ����ťʱ�������¼�
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void CreateUserWizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
 {
     //�����ҳ���ڵڶ�ҳ�����û��ڵ�һҳ���� ���FirstName��LastName���浽ViewState�С�
     if (CreateUserWizard1.ActiveStep.ID == "WizardStep2")
     {
         TextBox t = ((TextBox)CreateUserWizard1.ActiveStep.FindControl("TextBox1"));
         ViewState["firstname"]=t.Text;
         t = ((TextBox)CreateUserWizard1.ActiveStep.FindControl("TextBox2"));
         ViewState["lastname"]=t.Text;
     }
     //����л���ѡ���ɫ����ʱ����ʱ�û������ɹ�����������¼�����û���Ϣ���浽���Ի��С�
     if (CreateUserWizard1.ActiveStep.ID == "WizardStep1")
     {
         //��ȡ��ǰ��¼���û���
         MembershipUser objUser = Membership.GetUser();
         //��ȡ��ɫѡ��DropDownList��
         DropDownList ddl = ((DropDownList)CreateUserWizard1.ActiveStep.FindControl("DropDownList1"));
         if (ddl != null)
         {
             //���ָ�µ��û���ָ���Ľ�ɫ
             Roles.AddUserToRole(objUser.UserName, ddl.SelectedValue);
         }
         //������Ի���Ϣ
         Profile.UserName = objUser.UserName;
         Profile.Email = objUser.Email;
         Profile.FirstName=ViewState["firstname"].ToString();
         Profile.LastName=ViewState["lastname"].ToString();
         Profile.JobSeeker.ResumeID = -1;
         Profile.Employer.CompanyID = -1;
     }
 }
开发者ID:AJLoveChina,项目名称:workAtQmm,代码行数:36,代码来源:register.aspx.cs

示例2: CreateUserWizard1_FinishButtonClick

    protected void CreateUserWizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
    {
        TextBox TextBoxNume = CreateUserWizard1.FindControl("TextBoxNume") as TextBox;
        if (TextBoxNume != null) {
            Profile.Nume = TextBoxNume.Text;
        }
        TextBox TextBoxPrenume = CreateUserWizard1.FindControl("TextBoxPrenume") as TextBox;
        if (TextBoxPrenume != null) {
            Profile.Prenume = TextBoxPrenume.Text;
        }
        TextBox TextBoxOras = CreateUserWizard1.FindControl("TextBoxOras") as TextBox;
        if (TextBoxOras != null) {
            Profile.Oras = TextBoxOras.Text;
        }

        RadioButtonList RadioButtonListSex = CreateUserWizard1.FindControl("RadioButtonListSex") as RadioButtonList;
        if (RadioButtonListSex != null) {
            Profile.Sex = Int32.Parse(RadioButtonListSex.SelectedValue);
        }

        TextBox TextBoxDataNasterii = CreateUserWizard1.FindControl("TextBoxDataNasterii") as TextBox;
        if (TextBoxDataNasterii != null) {
            Profile.DataNasterii = DateTime.Parse(TextBoxDataNasterii.Text);
        }
    }
开发者ID:marius92mc,项目名称:News_Engine,代码行数:25,代码来源:Register.aspx.cs

示例3: Wizard1_FinishButtonClick

 protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
 {
     ResultLabel.Text = "Your name is "
         + YourNameTextBox.Text
         + "<br />Your favourite language is "
         + FavoriteLanguageDropDownList.SelectedValue;
 }
开发者ID:estcab,项目名称:planet-wrox-CSharp,代码行数:7,代码来源:Containers.aspx.cs

示例4: CreateUserWizard1_NextButtonClick

    protected void CreateUserWizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
    {
        if (Page.IsValid)
        {

        }
    }
开发者ID:beliarekk,项目名称:Aplikacje,代码行数:7,代码来源:Register.aspx.cs

示例5: SuperCopyWizard_NextButtonClick

    protected void SuperCopyWizard_NextButtonClick(object sender, WizardNavigationEventArgs e)
    {
        if (SuperCopyWizard.ActiveStepIndex == 0)
        {
            //The user clicked next on the first step, get the second step ready to go
            //Save the selected channel name
            m_CurrentChannelID = int.Parse(uxChannel.SelectedValue);
            m_CurrentChannelName = uxChannel.SelectedItem.Text;

            //Set the text of the various labels
            uxChannelName2.Text = m_CurrentChannelName;
            uxCurrentChannelName.Text = m_CurrentChannelName;
            uxSourceDateName.Text = uxSourceDay.SelectedDate.ToShortDateString();
            uxDestStartDate.Text = uxSourceDay.SelectedDate.AddDays(1).ToShortDateString();
            uxDestEndDate.Text = uxEndDate.SelectedDate.ToShortDateString();

            //Set the highest step completed
            m_StepCompleted = 1;
        }

        if (SuperCopyWizard.ActiveStepIndex == 1)
        {
            //The user clicked next on the second step, actually perform the manipulation

            ClearAndCopyRuns();

            //Set the highest step completed
            m_StepCompleted = 2;
        }
    }
开发者ID:trms,项目名称:cablecast-supercopy,代码行数:30,代码来源:Default.aspx.cs

示例6: CreateUserWizard1_NextButtonClick

    protected void CreateUserWizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
    {
        if (CreateUserWizard1.ActiveStep.ID == "WizardStep2")
        {
            TextBox t = ((TextBox)CreateUserWizard1.ActiveStep.FindControl("TextBox1"));
            ViewState["firstname"]=t.Text;
            t = ((TextBox)CreateUserWizard1.ActiveStep.FindControl("TextBox2"));
            ViewState["lastname"]=t.Text;
        }

        if (CreateUserWizard1.ActiveStep.ID == "WizardStep1")
        {
            MembershipUser objUser = Membership.GetUser();
            DropDownList ddl = ((DropDownList)CreateUserWizard1.ActiveStep.FindControl("DropDownList1"));
            if (ddl != null)
            {
                Roles.AddUserToRole(objUser.UserName, ddl.SelectedValue);
            }
            Profile.UserName = objUser.UserName;
            Profile.Email = objUser.Email;
            Profile.FirstName=ViewState["firstname"].ToString();
            Profile.LastName=ViewState["lastname"].ToString();
            Profile.JobSeeker.ResumeID = -1;
            Profile.Employer.CompanyID = -1;
        }
    }
开发者ID:dineshkummarc,项目名称:JobSiteSK-CS,代码行数:26,代码来源:register.aspx.cs

示例7: Wizard1_FinishButtonClick

    /// <summary>
    /// Handles the FinishButtonClick event of the Wizard1 control.
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="System.Web.UI.WebControls.WizardNavigationEventArgs"/> instance containing the event data.</param>
    protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
    {
        try
        {
            Customer myCustomer = new Customer();
            myCustomer.Username = txtUsername.Text;
            myCustomer.Address1 = txtAddress1.Text;
            myCustomer.City = txtCity.Text;
            myCustomer.Country = drpDwnCountry.SelectedValue;
            myCustomer.CreditCardType = drpDwnCredit.SelectedValue;
            myCustomer.FirstName = txtFirstName.Text;
            myCustomer.LastName = txtLastName.Text;
            myCustomer.Age = Convert.ToInt32(txtAge.Text);
            myCustomer.MailCode = txtPostalCode.Text;
            myCustomer.Region = txtRegion.Text;
            myCustomer.Email = txtEmail.Text;
            myCustomer.Password = txtPassword.Text;
            myCustomer.Register();

            if (myCustomer.CustomerID < 0)
                throw new Exception();
            else
                lblStatus.Text = " Customer " + myCustomer.CustomerID + " Registered!";
        }
        catch (Exception ex)
        {
            String strEx = ex.Message;
            lblStatus.Text = "Problem Registering, Try Again? " + strEx;
        }
    }
开发者ID:BinaryWasteland,项目名称:eStore,代码行数:35,代码来源:Register.aspx.cs

示例8: wzCouponAdd_OnFinishButtonClick

        public void wzCouponAdd_OnFinishButtonClick(object sender, WizardNavigationEventArgs e)
        {
            CouponData couponData = new CouponData();
            //type data
            couponData.Code = this.ClientData.TypeData.Code;
            couponData.CurrencyId = this.ClientData.TypeData.CurrencyID;
            couponData.Description = this.ClientData.TypeData.Description.Replace(">", "").Replace("<", "");
            couponData.IsActive = this.ClientData.TypeData.Enabled;
            couponData.DiscountType = this.ClientData.TypeData.CouponType == TypeClientData.CouponTypes.Amount ? EkEnumeration.CouponDiscountType.Amount : EkEnumeration.CouponDiscountType.Percent;

            //discount
            switch(this.ClientData.TypeData.CouponType)
            {
                case TypeClientData.CouponTypes.Amount:
                    couponData.DiscountValue = this.ClientData.AmountData.Amount;
                    couponData.MaximumAmount = 0; //set maximum amount to zero since discount type is amount
                    break;
                case TypeClientData.CouponTypes.Percent:
                    couponData.DiscountValue = this.ClientData.PercentData.Percent;
                    couponData.MaximumAmount = this.ClientData.PercentData.MaxRedemptionAmount;
                    break;
            }

            //scope type
            switch (this.ClientData.ScopeData.CouponScope)
            {
                case CouponScope.EntireBasket:
                    couponData.CouponType = EkEnumeration.CouponType.BasketLevel;
                    break;
                case CouponScope.AllApprovedItems:
                    couponData.CouponType = EkEnumeration.CouponType.AllItems;
                    break;
                case CouponScope.MostExpensiveItem:
                    couponData.CouponType = EkEnumeration.CouponType.MostExpensiveItem;
                    break;
                case CouponScope.LeastExpensiveItem:
                    couponData.CouponType = EkEnumeration.CouponType.LeastExpensiveItem;
                    break;
            }

            //scope
            couponData.ExpirationDate = this.ClientData.ScopeData.ExpirationDate;
            couponData.StartDate = this.ClientData.ScopeData.StartDate;
            couponData.OnePerCustomer = this.ClientData.ScopeData.IsOnePerCustomer;
            couponData.MinimumAmount = this.ClientData.ScopeData.MinBasketValue;
            couponData.MaximumUses = this.ClientData.ScopeData.MaxRedemptions;
            couponData.IsCombinable = this.ClientData.ScopeData.IsCombinable;
            couponData.IsApplicabletoSubscriptions = this.ClientData.ScopeData.IsApplicabletoSubscriptions;
            couponData.AppliesToQuantity = this.ClientData.ScopeData.IsApplicabletoallQuantities;

            //add coupon
            _CouponApi.Add(couponData);

            //set coupon id for finish ascx
            ucFinish.CouponId = couponData.Id;

            //set items associated with coupon
            base.SetCouponItems(this.ClientData.ScopeData.CouponScope, couponData, this.ClientData.ItemsData);
        }
开发者ID:jaytem,项目名称:minGit,代码行数:59,代码来源:Add.aspx.cs

示例9: CreateUserWizard1_FinishButtonClick

 protected void CreateUserWizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
 {
     if (ddl_Staff.SelectedValue != "")
     {
         UserBLL.Membership_SetStaffID(CreateUserWizard1.UserName, int.Parse(ddl_Staff.SelectedValue));
         Roles.AddUserToRole(CreateUserWizard1.UserName, "全体员工");
     }
 }
开发者ID:fuhongliang,项目名称:GraduateProject,代码行数:8,代码来源:CreateUser.aspx.cs

示例10: Wizard1_NextButtonClick

    protected void Wizard1_NextButtonClick (object sender, WizardNavigationEventArgs e)
    {
        int checkstep = e.CurrentStepIndex;
        VerifyStep(e, checkstep);
        if (e.Cancel)
            Wizard1.ActiveStepIndex = checkstep;

        RefreshSummary();

    }
开发者ID:SwarmCorp,项目名称:Swarmops,代码行数:10,代码来源:DHL.aspx.cs

示例11: Wizard1_NextButtonClick

 protected void Wizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
 {
     if (DetailsView1.CurrentMode == DetailsViewMode.Insert)
     {
         DetailsView1.InsertItem(true);
     }
     else if (DetailsView1.CurrentMode == DetailsViewMode.Edit)
         DetailsView1.UpdateItem(true);
     GridView1.DataBind();
     ModalPopupExtender1.Show();
 }
开发者ID:sriharshakappala,项目名称:online-leave-planner,代码行数:11,代码来源:TimeTable.aspx.cs

示例12: CreateUserWizard1_FinishButtonClick

    protected void CreateUserWizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
    {
        RealStateDSTableAdapters.aspnet_UsersInRolesTableAdapter adapter = new RealStateDSTableAdapters.aspnet_UsersInRolesTableAdapter();
        string SRoleID = Convert.ToString(adapter.QueryRoleIDByRoleName(this.DropDownList1.SelectedValue));
        string SUserID = Convert.ToString(adapter.QueryUserIDByUserName(this.User.Identity.Name));

        System.Guid UserID = new Guid(SUserID);
        System.Guid RoleID = new Guid(SRoleID);

        adapter.InsertUserInRole(UserID, RoleID);
    }
开发者ID:thecortex,项目名称:realestateegypt,代码行数:11,代码来源:Register.aspx.cs

示例13: Wizard1_FinishButtonClick

    protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
    {
        switch (e.CurrentStepIndex)
        {
            case 1: return;

            case 2: return;

            case 3: return;

            case 4: return;
        }
    }
开发者ID:aamirjs,项目名称:TrackIT,代码行数:13,代码来源:wzCreateManager.aspx.cs

示例14: Checkout_Wizard_FinishButtonClick

    protected void Checkout_Wizard_FinishButtonClick(object sender, WizardNavigationEventArgs e)
    {
        Profile.Cart.Items.Clear();

        Profile.Name = txtName.Text;
        Profile.Address = txtAddress.Text;
        Profile.City = txtCity.Text;
        Profile.State = txtState.Text;
        Profile.PostCode = txtPostCode.Text;
        Profile.Country = txtCountry.Text;

        Server.Transfer("~/Pages/StampCatalogue.aspx");
    }
开发者ID:jocowijaya,项目名称:AussieStampPlace,代码行数:13,代码来源:Checkout.aspx.cs

示例15: checkoutWizard_NextButtonClick

 protected void checkoutWizard_NextButtonClick(object sender, WizardNavigationEventArgs e)
 {
     switch (e.NextStepIndex) {
         case 1:
             SetItemList();
             break;
         case 2:
             SetQuantity();
             break;
         case 3:
             SetDespatchAddress();
             break;
     }
 }
开发者ID:robbytarigan,项目名称:EtCeteraBoilerPlate,代码行数:14,代码来源:Default.aspx.cs


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