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


C# WebControls.WizardNavigationEventArgs类代码示例

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


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

示例1: wizard_finishClick

        protected void wizard_finishClick(object sender, WizardNavigationEventArgs e)
        {
            if (CaptchaControl1.IsValid)
            {
                PersonInfoManager manager = new PersonInfoManager();

                if (manager.SaveFormRegistration(stibber))
                {
                    MailHelper mailhelper = new MailHelper();
                    String kamptype = String.Empty;
                    String stibnaam = String.Format("{0} {1} {2}", stibber.VoorNaam, stibber.TussenVoegsel, stibber.Achternaam);

                    List<String> emails = new List<String>();

                    if (stibber.Kamptype == "1")
                    {
                        emails = mailhelper.GetStibMailFromConfig(false);
                        kamptype = "Jongste kamp";
                    }
                    else
                    {
                        emails = mailhelper.GetStibMailFromConfig(true);
                        kamptype = "Oudste kamp";

                    }

                    String subject = String.Format("Stibkamp {0} registratie: {1}", kamptype, stibnaam);

                    mailhelper.Send(CreateBody(), emails,subject);
                }
            }
        }
开发者ID:Rclemens,项目名称:Stibkamp,代码行数:32,代码来源:StibRegWizard.ascx.cs

示例2: RegisterUser_NextButtonClick

 protected void RegisterUser_NextButtonClick(object sender, WizardNavigationEventArgs e)
 {
     lblMsg.Text = "";
     try
     {
         if (RegisterUser.UserName.IndexOf(" ") > -1)
         {
             lblMsg.Text = "Tài khoản không được để khoảng trắng (dấu cách)!";
             return;
         }
         //Response.Write("RegisterUser_NextButtonClick");
         TUSER newUser = new TUSER();
         using (tDBContext mainDB = new tDBContext())
         {
             if (mainDB.TUSERs.Exist(string.Format("USER_ID='{0}'", RegisterUser.UserName)) == true)
             {
                 lblMsg.Text = "Tài khoản đã tồn tại, vui lòng xử dụng tài khoản khác!";
                 return;
             }
             //Response.Write(mainDB.TUSERs.Count().ToString());
             newUser.USER_ID = RegisterUser.UserName;
             newUser.USER_PASSWORD = RegisterUser.Password;
             newUser.USER_ROLE = 0;
             mainDB.TUSERs.InsertOnSubmit(newUser);
             mainDB.SubmitAllChange();
         }
         Session[ct.USER_ID] = newUser.USER_ID;
         Session[ct.USER_ROLE] = newUser.USER_ROLE;
         Response.Redirect("~/");
     }
     catch (Exception ex)
     {
         lblMsg.Text = string.Format("Xảy ra lỗi: {0}", ex.Message);
     }
 }
开发者ID:huamanhtuyen,项目名称:tHelpDesk,代码行数:35,代码来源:Register.aspx.cs

示例3: Wizard_FinishButton_Click

 protected void Wizard_FinishButton_Click(object sender, WizardNavigationEventArgs e)
 {
     if (Page.User.IsInRole("ProjectAdministrator"))
     {
         AddUserToRole(CreateUserWizard1.UserName, GroupName.SelectedValue);
     }
 }
开发者ID:vivekananth,项目名称:AzureTimeTracker,代码行数:7,代码来源:User_Create.aspx.cs

示例4: CreateUserWizard1_FinishButtonClick

        protected void CreateUserWizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
        {
            using (var datas = new DataLayer.StandartWebDataContext())
            {
                var u = (from a in datas.aspnet_Users
                         where a.UserName == CreateUserWizard1.UserName
                         select a).FirstOrDefault();
                if (u != null)
                {
                    u.TUserProfile.FirstName = tbFirstName.Text;
                    u.TUserProfile.LastName = tbLastName.Text;
                    u.TUserProfile.Gender = (byte)rblGender.SelectedIndex;
                    DateTime dt;
                    if (DateTime.TryParse(tbBirthDate.Text, out dt))
                    {
                        u.TUserProfile.BirthDate = dt;
                    }
                    else
                    {
                        u.TUserProfile.BirthDate = null;
                    }

                    datas.SubmitChanges();
                }
            }
        }
开发者ID:alperkonuralp,项目名称:ASP.Net_Standart_Web_Uygulamasi,代码行数:26,代码来源:register.aspx.cs

示例5: Wizard1_FinishButtonClick

        protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
        {
            //prepare empty string for facility
            string strFacilities = string.Empty;

            //loop for constructing facilities.
            foreach (ListItem li in CheckBoxList1.Items)
            {
                if (li.Selected)
                    strFacilities += li.Text + "<br/>";
            }

            //display output result
            lblFinished.Text = string.Format("Thank you {0} {1} <br/>"+
                                            "Your details are: <br/>" +
                                            "Phone:{2} <br/>"+
                                            "Email:{3} <br/>"+
                                            "Address:{4} <br/>"+
                                            "Date of stay: {5} <br/>"+
                                            "Length of stay: {6} <br/>"+
                                            "Number of people staying: {7} <br/>"+
                                            "Type of room: {8} <br/>" +
                                            "Facilities: {9} <br/>",

                                            txtFname.Text, txtLname.Text,
                                            txtContactNumber.Text,
                                            txtEmail.Text,
                                            txtAddress.Text,
                                            Calendar1.SelectedDate.ToShortDateString(),
                                            txtStayLength.Text,
                                            txtNumOfPeople.Text,
                                            DropDownList1.SelectedItem.Text,
                                            strFacilities);
        }
开发者ID:juehan,项目名称:PlayingWithOthers,代码行数:34,代码来源:Activity3.aspx.cs

示例6: Donation_FinishButtonClick

        protected void Donation_FinishButtonClick(object sender, WizardNavigationEventArgs e)
        {
            //insert stuff into session
            Session["donor_first_name"] = this.firstNameTBox.Text;
            Session["donor_last_name"] = this.lastNameTBox.Text;
            Session["donor_email"] = this.emailTBox.Text;

                //Donation
                String donation = "0.00";
                if (this._5.Checked)
                    donation = this._5.Text;
                else if (this._10.Checked)
                    donation = this._10.Text;
                else if (this._15.Checked)
                    donation = this._15.Text;
                else if (this._20.Checked)
                    donation = this._20.Text;
                else if (this._25.Checked)
                    donation = this._25.Text;
                else if (this.other.Checked)
                    donation = this.donationAmountTxb.Text;

                Session["donation_amount"] = donation;

            //insert stuff into DB
                controller.insertDonation(this.firstNameTBox.Text, this.lastNameTBox.Text,
                    this.emailTBox.Text, double.Parse(donation));
        }
开发者ID:jovinoribeiro,项目名称:EBFRW,代码行数:28,代码来源:Donation.aspx.cs

示例7: Wizard1_NextButtonClick

 protected void Wizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
 {
     Response.Write("CurrentStepIndex = "+e.CurrentStepIndex.ToString() + "<br/>");
     Response.Write("NextStepIndex = " + e.NextStepIndex.ToString() + "<br/>");
     //e.Cancel = true;
     e.Cancel = CheckBox1.Checked;
 }
开发者ID:wangyuanhsiang,项目名称:VisualStudio,代码行数:7,代码来源:WebForm4.aspx.cs

示例8: CreateSessionWizard_FinishButtonClick

        protected void CreateSessionWizard_FinishButtonClick(object sender, WizardNavigationEventArgs e)
        {
            SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["J15dbConnectionString1"].ConnectionString);
            SqlCommand cmd = new SqlCommand("Insert Into Session (SessionName,SessionPlan,SessionRest,TotalSessionMilage,CoachID) VALUES(@SessionName,@SessionPlan,@SessionRest,@TotalSessionMilage,@CoachID)", conn);
            cmd.CommandType = System.Data.CommandType.Text;
            cmd.Parameters.AddWithValue("@SessionName", tbsessionname.Text);
            cmd.Parameters.AddWithValue("@SessionPlan", tbsessionplan.Text);
            cmd.Parameters.AddWithValue("@SessionRest", tbsessionrest.Text);
            cmd.Parameters.AddWithValue("@TotalSessionMilage", tbtotalsessmilage.Text);
            cmd.Parameters.AddWithValue("@CoachID", lbcid.Text);
            conn.Open();

            try
            {
                cmd.ExecuteNonQuery();
                conn.Close();
                lbsessionsaved.Text = ("Session " + tbsessionname.Text.ToString()+ " has been saved");
            }

            catch (Exception er)
            {
                Response.Write("<h2>Something went wrong</h2> Please Try Again.");
                lbsessionsaved.Text = er.Message;

            }
            finally
            {
                //Any Special Action we want to Add.
            }
        }
开发者ID:kingtid,项目名称:DevJ15Log,代码行数:30,代码来源:CoachSessions.aspx.cs

示例9: CreateUserWizard1_NextButtonClick

 protected void CreateUserWizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
 {
     if (!ctvCheck.IsValid)
     {
         return;
     }
 }
开发者ID:fernandodlcruz,项目名称:imagebank,代码行数:7,代码来源:SignUp.aspx.cs

示例10: wizard_finishClick

        protected void wizard_finishClick(object sender, WizardNavigationEventArgs e)
        {
            if (CaptchaControl1.IsValid)
            {
                GetContactInfo();

                StibContactManager manager = new StibContactManager();

                if (manager.SaveContact(stibcontact))
                {
                    MailHelper mailhelper = new MailHelper();
                    String kamptype = String.Empty;
                    String stibnaam = String.Format("{0} {1} {2}", stibcontact.Voornaam, stibcontact.Tussenvoegsel, stibcontact.Achternaam);

                    List<String> emails = new List<String>();

                    if (stibcontact.Kamptype == "1")
                    {
                        emails = mailhelper.GetStibMailFromConfig(false);
                        kamptype = "Jongste kamp";
                    }
                    else
                    {
                        emails = mailhelper.GetStibMailFromConfig(true);
                        kamptype = "Oudste kamp";

                    }

                    String subject = String.Format("Stibkamp {0} vraag: {1}", GetKamptype(stibcontact.Kamptype), stibnaam);

                    mailhelper.Send(CreateBody(), emails, subject);
                }
            }
        }
开发者ID:Rclemens,项目名称:Stibkamp,代码行数:34,代码来源:StibContact.ascx.cs

示例11: Wizard1_FinishButtonClick

 protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
 {
     result.Text = "User name: " + Namefield.Text;
     result.Text += "<br />Credit card type: " + Card.Text;
     result.Text += "<br />Expiration Date: " + Calendar1.SelectMonthText + "12:00:00 AM";
     result.Text += "<br />will be used for the payment.";
 }
开发者ID:beckomc01,项目名称:christopher_IS-545,代码行数:7,代码来源:WebForm1.aspx.cs

示例12: Wizard1_FinishButtonClick

 protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
 {
     try
     {
         StringBuilder eBody = new StringBuilder();
         eBody.Append(string.Format("From  : {0} \r\n", this.txtEmail.Text));
         eBody.Append(string.Format("Name  : {0} \r\n", this.txtName.Text));
         eBody.Append(string.Format("Phone : {0} \r\n", this.txtPhoneNo.Text));
         eBody.Append(string.Format("Address  : {0} \r\n", this.txtAddress.Text));
         eBody.Append("======================================================\r\n\r\n");
         eBody.Append(string.Format("Referrer  : {0}\r\n\r\n", this.txtReferrer.Text));
         eBody.Append(string.Format("First time contact?  : {0}\r\n\r\n", this.rdbFirstTimeYes.Checked ? "Yes" : "No"));
         eBody.Append(string.Format("Product or feature interests  : \r\n{0}\r\n\r\n", this.txtInterests.Text));
         eBody.Append(string.Format("Feedback or message : \r\n{0}\r\n\r\n", this.txtMessage.Text));
         
         Exception ex = null;
         if (!MailControl.SendMail("Site Customer Feedback", eBody.ToString(), ref ex))
         {
             throw ex;
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
开发者ID:jcmangubat,项目名称:Silvervision.apphb,代码行数:26,代码来源:Feedback.aspx.cs

示例13: CoachWizard_FinishButtonClick

        protected void CoachWizard_FinishButtonClick(object sender, WizardNavigationEventArgs e)
        {
            SqlCommand cmd = new SqlCommand("Insert Into Coach (UserName,Password,FirstName,SurName,EmailAddres,UserLogo,EnglandCoachID,ver_code,Is_Approved) VALUES(@UserName,@Password,@FirstName,@LastName,@EmailAdd,'~/Images/User-icon128.png',@EnglandCoachID,newid(),0)", con);
            cmd.CommandType = System.Data.CommandType.Text;
            cmd.Parameters.AddWithValue("@UserName", tbcoachusername.Text);
            cmd.Parameters.AddWithValue("@Password", tbpw1.Text);
            cmd.Parameters.AddWithValue("@FirstName", tbcfirstname.Text);
            cmd.Parameters.AddWithValue("@LastName", tbclastname.Text);
            cmd.Parameters.AddWithValue("@EmailAdd", tbceadd.Text);
            cmd.Parameters.AddWithValue("@EnglandCoachID", tbcengid.Text);
            con.Open();
            try
            {
                cmd.ExecuteNonQuery();
                con.Close();
                //Response.Redirect("~/CoachLogin.aspx");
                Sendemail();
                lber.Text = ("Thank you " + tbcfirstname.Text.ToString() + " for Registering. You will need to Activate your account to access the site fully.");
                clear();
            }

            catch (Exception er)
            {
                Response.Write("<h2>Something went wrong</h2> Please Try Again.");
                lber.Text = er.Message;

            }
            finally
            {
                //Any Special Action we want to Add.
            }
        }
开发者ID:kingtid,项目名称:DevJ15Log,代码行数:32,代码来源:CRegister.aspx.cs

示例14: wzdCheckOut_FinishButtonClick

        /// <summary>
        /// Process the order
        /// </summary>
        protected void wzdCheckOut_FinishButtonClick(object sender, WizardNavigationEventArgs e)
        {
            if (Profile.ShoppingCart.CartItems.Count > 0) {
                if (Profile.ShoppingCart.Count > 0) {

                    // display ordered items
                    CartListOrdered.Bind(Profile.ShoppingCart.CartItems);

                    // display total and credit card information
                    ltlTotalComplete.Text = ltlTotal.Text;
                    ltlCreditCardComplete.Text = ltlCreditCard.Text;

                    // create order
                    OrderInfo order = new OrderInfo(int.MinValue, DateTime.Now, User.Identity.Name, GetCreditCardInfo(), billingForm.Address, shippingForm.Address, Profile.ShoppingCart.Total, Profile.ShoppingCart.GetOrderLineItems(), null);

                    // insert
                    Order newOrder = new Order();
                    newOrder.Insert(order);

                    // destroy cart
                    Profile.ShoppingCart.Clear();
                    Profile.Save();
                }
            }
            else {
                lblMsg.Text = "<p><br>Can not process the order. Your cart is empty.</p><p class=SignUpLabel><a class=linkNewUser href=Default.aspx>Continue shopping</a></p>";
                wzdCheckOut.Visible = false;
            }
        }
开发者ID:kfengbest,项目名称:PetShop,代码行数:32,代码来源:CheckOut.aspx.cs

示例15: emailWizard_NextButtonClick

        protected void emailWizard_NextButtonClick( object sender, WizardNavigationEventArgs e )
        {
            string userName = null;
              string newEmail = null;
              try
              {
            newEmail = Email.Text;
            if ( !IsValidEmail( Email.Text ) )
            {
              throw new ApplicationException( "Please provide a valid email." );
            }

            MembershipUser user = Membership.GetUser();
            userName = user.UserName;
            if ( !Membership.ValidateUser( userName, PasswordForEmail.Text ) )
            {
              throw new ApplicationException( "Password is incorrect." );
            }

            user.Email = Email.Text;
            Membership.UpdateUser( user );
              }
              catch ( ApplicationException exc )
              {
            EmailChangeFailureText.Text = exc.Message;
              }
              catch ( Exception exc )
              {
            log.FatalFormat( "Can't change email from to {0} for {1}: {2}", userName, newEmail, exc );
            EmailChangeFailureText.Text = exc.Message;
              }

              e.Cancel = EmailChangeFailureText.Text != "";
        }
开发者ID:new-mikha,项目名称:flytrace,代码行数:34,代码来源:profile.aspx.cs


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