本文整理汇总了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;
}
}
示例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);
}
}
示例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;
}
示例4: CreateUserWizard1_NextButtonClick
protected void CreateUserWizard1_NextButtonClick(object sender, WizardNavigationEventArgs e)
{
if (Page.IsValid)
{
}
}
示例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;
}
}
示例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;
}
}
示例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;
}
}
示例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);
}
示例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, "全体员工");
}
}
示例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();
}
示例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();
}
示例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);
}
示例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;
}
}
示例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");
}
示例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;
}
}