Hi Tim
Thanks for taking initiative to solve my problem. my code under next
button click is below:-----
protected void Wizard1_NextButtonClick(object sender,
WizardNavigationEventArgs e)
{
string FirstName = string.Empty;
string MiddleName = string.Empty;
string LastName = string.Empty;
string Gender = string.Empty;
string Email = string.Empty;
string Mobile = string.Empty;
string ResumePath = string.Empty;
string Address = string.Empty;
string City = string.Empty;
string State = string.Empty;
string Country = string.Empty;
string Pin = string.Empty;
string Phone = string.Empty;
string Addressp = string.Empty;
string Cityp = string.Empty;
string Statep = string.Empty;
string Countryp = string.Empty;
string Pinp = string.Empty;
string Phonep = string.Empty;
string Hobbies = string.Empty;
string Interests = string.Empty;
string Achievements = string.Empty;
bool IsPermanentAddress = false;
FirstName = txtfname.Text.ToString();
MiddleName = txtmname.Text.ToString();
LastName = txtlname.Text.ToString();
Gender = ddlgender.SelectedItem.Value;
Email = txtemail.Text.ToString();
Mobile = txtmobileno.Text.ToString();
ResumePath = uploadresume.FileName;
Address = txtaddress.Text.ToString();
City = txtcity.Text.ToString();
State = ddlstate.SelectedItem.Value;
Country = ddlcountry.SelectedItem.Value;
Pin = txtpin.Text.ToString();
Phone = txtphoneno.Text.ToString();
Addressp = txtaddressp.Text.ToString();
Cityp = txtcityp.Text.ToString();
Statep = ddlstatep.SelectedItem.Value;
Countryp = ddlcountryp.SelectedItem.Value;
Pinp = txtpinp.Text.ToString();
Phonep = txtphonenop.Text.ToString();
Hobbies = txthobbies.Text.ToString();
Interests = txtinterests.Text.ToString();
Achievements = txtachievements.Text.ToString();
IsPermanentAddress = CheckBox1.Checked;
SqlDataSource3.InsertParameters[0].DefaultValue = FirstName;
SqlDataSource3.InsertParameters[1].DefaultValue = MiddleName;
SqlDataSource3.InsertParameters[2].DefaultValue = LastName;
SqlDataSource3.InsertParameters[3].DefaultValue = gen;
SqlDataSource3.InsertParameters[4].DefaultValue = Email;
SqlDataSource3.InsertParameters[5].DefaultValue = Mobile;
SqlDataSource3.InsertParameters[6].DefaultValue = ResumePath;
SqlDataSource3.InsertParameters[7].DefaultValue = Address;
SqlDataSource3.InsertParameters[8].DefaultValue = City;
SqlDataSource3.InsertParameters[9].DefaultValue = State;
SqlDataSource3.InsertParameters[10].DefaultValue = Country;
SqlDataSource3.InsertParameters[11].DefaultValue = Pin;
SqlDataSource3.InsertParameters[12].DefaultValue = Phone;
SqlDataSource3.InsertParameters[13].DefaultValue = Addressp;
SqlDataSource3.InsertParameters[14].DefaultValue = Cityp;
SqlDataSource3.InsertParameters[15].DefaultValue = Statep;
SqlDataSource3.InsertParameters[16].DefaultValue = Countryp;
SqlDataSource3.InsertParameters[17].DefaultValue = Pinp;
SqlDataSource3.InsertParameters[18].DefaultValue = Phonep;
SqlDataSource3.InsertParameters[19].DefaultValue = Hobbies;
SqlDataSource3.InsertParameters[20].DefaultValue = Interests;
SqlDataSource3.InsertParameters[21].DefaultValue =
Achievements;
SqlDataSource3.InsertParameters[22].DefaultValue
=IsPermanentAddress.ToString();
SqlDataSource3.Insert();
}
this is the code for first step....
Regards
Raghav
Tim_Mac said:
hi raghav,
i understand your post. you must have done something to break the
default
behaviour.
post your code and we may be able to see what might be the problem.
tim
Hi
I am working on ASP.NET 2.0. I am developing a website using Wizard
control. Based on number of steps added, next, previous, finish buttons
generate automatically. After running the application, these button
work automatically, means we can go to next step, previous step by
clicking on corresponding buttons. In my application I have 3 steps. On
Next button click of step 1, I want two things to happen. One is
inserting data of step 1 in DB---Its working.
Secondly I want to go to next step on clicking next button----which
should happen automatically---but its not going to step 2, its staying
in step 1 only. I hope u have understood my problem. Please help me in
solving this small issue...
Regards
Raghav Mahajan