473,750 Members | 2,630 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wizard Control Issue

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

Sep 15 '06 #1
12 2597
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
"raghav" <ma********@gma il.comwrote in message
news:11******** **************@ d34g2000cwd.goo glegroups.com.. .
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

Sep 15 '06 #2
Hi Tim

Thanks for taking initiative to solve my problem. my code under next
button click is below:-----

protected void Wizard1_NextBut tonClick(object sender,
WizardNavigatio nEventArgs 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 IsPermanentAddr ess = false;

FirstName = txtfname.Text.T oString();
MiddleName = txtmname.Text.T oString();
LastName = txtlname.Text.T oString();
Gender = ddlgender.Selec tedItem.Value;
Email = txtemail.Text.T oString();
Mobile = txtmobileno.Tex t.ToString();
ResumePath = uploadresume.Fi leName;
Address = txtaddress.Text .ToString();
City = txtcity.Text.To String();
State = ddlstate.Select edItem.Value;
Country = ddlcountry.Sele ctedItem.Value;
Pin = txtpin.Text.ToS tring();
Phone = txtphoneno.Text .ToString();
Addressp = txtaddressp.Tex t.ToString();
Cityp = txtcityp.Text.T oString();
Statep = ddlstatep.Selec tedItem.Value;
Countryp = ddlcountryp.Sel ectedItem.Value ;
Pinp = txtpinp.Text.To String();
Phonep = txtphonenop.Tex t.ToString();
Hobbies = txthobbies.Text .ToString();
Interests = txtinterests.Te xt.ToString();
Achievements = txtachievements .Text.ToString( );
IsPermanentAddr ess = CheckBox1.Check ed;
SqlDataSource3. InsertParameter s[0].DefaultValue = FirstName;
SqlDataSource3. InsertParameter s[1].DefaultValue = MiddleName;
SqlDataSource3. InsertParameter s[2].DefaultValue = LastName;
SqlDataSource3. InsertParameter s[3].DefaultValue = gen;
SqlDataSource3. InsertParameter s[4].DefaultValue = Email;
SqlDataSource3. InsertParameter s[5].DefaultValue = Mobile;
SqlDataSource3. InsertParameter s[6].DefaultValue = ResumePath;
SqlDataSource3. InsertParameter s[7].DefaultValue = Address;
SqlDataSource3. InsertParameter s[8].DefaultValue = City;
SqlDataSource3. InsertParameter s[9].DefaultValue = State;
SqlDataSource3. InsertParameter s[10].DefaultValue = Country;
SqlDataSource3. InsertParameter s[11].DefaultValue = Pin;
SqlDataSource3. InsertParameter s[12].DefaultValue = Phone;

SqlDataSource3. InsertParameter s[13].DefaultValue = Addressp;
SqlDataSource3. InsertParameter s[14].DefaultValue = Cityp;
SqlDataSource3. InsertParameter s[15].DefaultValue = Statep;
SqlDataSource3. InsertParameter s[16].DefaultValue = Countryp;
SqlDataSource3. InsertParameter s[17].DefaultValue = Pinp;
SqlDataSource3. InsertParameter s[18].DefaultValue = Phonep;
SqlDataSource3. InsertParameter s[19].DefaultValue = Hobbies;
SqlDataSource3. InsertParameter s[20].DefaultValue = Interests;
SqlDataSource3. InsertParameter s[21].DefaultValue =
Achievements;
SqlDataSource3. InsertParameter s[22].DefaultValue
=IsPermanentAdd ress.ToString() ;
SqlDataSource3. Insert();
}
this is the code for first step....

Regards
Raghav
Tim_Mac wrote:
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
"raghav" <ma********@gma il.comwrote in message
news:11******** **************@ d34g2000cwd.goo glegroups.com.. .
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
Sep 15 '06 #3
hi Raghav,
i added the same event to my simplified example, and it still works fine.

can you post your ASPX markup for the wizard, just in case..

my ASPX looks like this:

<asp:Wizard ID="Wizard1" runat="server"
OnNextButtonCli ck="Wizard1_Nex tButtonClick">
<WizardSteps>
<asp:WizardSt ep runat="server" Title="Step 1">
Hello,
</asp:WizardStep>
<asp:WizardSt ep runat="server" Title="Step 2">
Have a ,
</asp:WzardStep>
<asp:WizardSt ep runat="server" Title="Step 3">
Nice day
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>

the code behind then does this:
protected void Wizard1_NextBut tonClick(object sender,
WizardNavigatio nEventArgs e)
{
this.Wizard1.He aderText = String.Format(" Next Step event at {0}",
DateTime.Now.To LongTimeString( ));
}

is there anything funny going on in your page_load?

thanks
tim

"raghav" <ma********@gma il.comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .
Hi Tim

Thanks for taking initiative to solve my problem. my code under next
button click is below:-----

protected void Wizard1_NextBut tonClick(object sender,
WizardNavigatio nEventArgs 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 IsPermanentAddr ess = false;

FirstName = txtfname.Text.T oString();
MiddleName = txtmname.Text.T oString();
LastName = txtlname.Text.T oString();
Gender = ddlgender.Selec tedItem.Value;
Email = txtemail.Text.T oString();
Mobile = txtmobileno.Tex t.ToString();
ResumePath = uploadresume.Fi leName;
Address = txtaddress.Text .ToString();
City = txtcity.Text.To String();
State = ddlstate.Select edItem.Value;
Country = ddlcountry.Sele ctedItem.Value;
Pin = txtpin.Text.ToS tring();
Phone = txtphoneno.Text .ToString();
Addressp = txtaddressp.Tex t.ToString();
Cityp = txtcityp.Text.T oString();
Statep = ddlstatep.Selec tedItem.Value;
Countryp = ddlcountryp.Sel ectedItem.Value ;
Pinp = txtpinp.Text.To String();
Phonep = txtphonenop.Tex t.ToString();
Hobbies = txthobbies.Text .ToString();
Interests = txtinterests.Te xt.ToString();
Achievements = txtachievements .Text.ToString( );
IsPermanentAddr ess = CheckBox1.Check ed;
SqlDataSource3. InsertParameter s[0].DefaultValue = FirstName;
SqlDataSource3. InsertParameter s[1].DefaultValue = MiddleName;
SqlDataSource3. InsertParameter s[2].DefaultValue = LastName;
SqlDataSource3. InsertParameter s[3].DefaultValue = gen;
SqlDataSource3. InsertParameter s[4].DefaultValue = Email;
SqlDataSource3. InsertParameter s[5].DefaultValue = Mobile;
SqlDataSource3. InsertParameter s[6].DefaultValue = ResumePath;
SqlDataSource3. InsertParameter s[7].DefaultValue = Address;
SqlDataSource3. InsertParameter s[8].DefaultValue = City;
SqlDataSource3. InsertParameter s[9].DefaultValue = State;
SqlDataSource3. InsertParameter s[10].DefaultValue = Country;
SqlDataSource3. InsertParameter s[11].DefaultValue = Pin;
SqlDataSource3. InsertParameter s[12].DefaultValue = Phone;

SqlDataSource3. InsertParameter s[13].DefaultValue = Addressp;
SqlDataSource3. InsertParameter s[14].DefaultValue = Cityp;
SqlDataSource3. InsertParameter s[15].DefaultValue = Statep;
SqlDataSource3. InsertParameter s[16].DefaultValue = Countryp;
SqlDataSource3. InsertParameter s[17].DefaultValue = Pinp;
SqlDataSource3. InsertParameter s[18].DefaultValue = Phonep;
SqlDataSource3. InsertParameter s[19].DefaultValue = Hobbies;
SqlDataSource3. InsertParameter s[20].DefaultValue = Interests;
SqlDataSource3. InsertParameter s[21].DefaultValue =
Achievements;
SqlDataSource3. InsertParameter s[22].DefaultValue
=IsPermanentAdd ress.ToString() ;
SqlDataSource3. Insert();
}
this is the code for first step....

Regards
Raghav
Tim_Mac wrote:
>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
"raghav" <ma********@gma il.comwrote in message
news:11******* *************** @d34g2000cwd.go oglegroups.com. ..
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

Sep 15 '06 #4
Tim
My aspx code is very big, Since I have 5-6 steps in application.
I will tell the main part

<asp:WizardSt ep runat="server" Title="Personal Profile">
-----some code-----
</asp:WizardStep>
<asp:WizardSt ep runat="server" Title="Educatio nal Details">
-----some code-----
</asp:WizardStep>
so on.....
Tim I checked the code, these tags are opened and closed properly

I dont know why its not going on step 2

See Tim, I have read that data of all steps will be submitted when
finish button is clicked in final step. But I am inserting data of each
step from that very step only. That might be problem in normal working
of wizard control. But if i will submit the data of all steps in finish
button click, then where I will store data of each step till we reach
finish button in last step. Moreover i cant do like this bec i have
used gridview controls on next steps so that user can make amendments
then and there. So, its imp for me to submit data of each page in DB
separately. these inbult buttons of wizard ctrl should work otherwise
whats use of using wizard ctrl...Accordin g to u, what might be the
problem?

Regards
Raghav
</asp:WizardStep>

Tim_Mac wrote:
hi Raghav,
i added the same event to my simplified example, and it still works fine.

can you post your ASPX markup for the wizard, just in case..

my ASPX looks like this:

<asp:Wizard ID="Wizard1" runat="server"
OnNextButtonCli ck="Wizard1_Nex tButtonClick">
<WizardSteps>
<asp:WizardSt ep runat="server" Title="Step 1">
Hello,
</asp:WizardStep>
<asp:WizardSt ep runat="server" Title="Step 2">
Have a ,
</asp:WzardStep>
<asp:WizardSt ep runat="server" Title="Step 3">
Nice day
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>

the code behind then does this:
protected void Wizard1_NextBut tonClick(object sender,
WizardNavigatio nEventArgs e)
{
this.Wizard1.He aderText = String.Format(" Next Step event at {0}",
DateTime.Now.To LongTimeString( ));
}

is there anything funny going on in your page_load?

thanks
tim

"raghav" <ma********@gma il.comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .
Hi Tim

Thanks for taking initiative to solve my problem. my code under next
button click is below:-----

protected void Wizard1_NextBut tonClick(object sender,
WizardNavigatio nEventArgs 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 IsPermanentAddr ess = false;

FirstName = txtfname.Text.T oString();
MiddleName = txtmname.Text.T oString();
LastName = txtlname.Text.T oString();
Gender = ddlgender.Selec tedItem.Value;
Email = txtemail.Text.T oString();
Mobile = txtmobileno.Tex t.ToString();
ResumePath = uploadresume.Fi leName;
Address = txtaddress.Text .ToString();
City = txtcity.Text.To String();
State = ddlstate.Select edItem.Value;
Country = ddlcountry.Sele ctedItem.Value;
Pin = txtpin.Text.ToS tring();
Phone = txtphoneno.Text .ToString();
Addressp = txtaddressp.Tex t.ToString();
Cityp = txtcityp.Text.T oString();
Statep = ddlstatep.Selec tedItem.Value;
Countryp = ddlcountryp.Sel ectedItem.Value ;
Pinp = txtpinp.Text.To String();
Phonep = txtphonenop.Tex t.ToString();
Hobbies = txthobbies.Text .ToString();
Interests = txtinterests.Te xt.ToString();
Achievements = txtachievements .Text.ToString( );
IsPermanentAddr ess = CheckBox1.Check ed;
SqlDataSource3. InsertParameter s[0].DefaultValue = FirstName;
SqlDataSource3. InsertParameter s[1].DefaultValue = MiddleName;
SqlDataSource3. InsertParameter s[2].DefaultValue = LastName;
SqlDataSource3. InsertParameter s[3].DefaultValue = gen;
SqlDataSource3. InsertParameter s[4].DefaultValue = Email;
SqlDataSource3. InsertParameter s[5].DefaultValue = Mobile;
SqlDataSource3. InsertParameter s[6].DefaultValue = ResumePath;
SqlDataSource3. InsertParameter s[7].DefaultValue = Address;
SqlDataSource3. InsertParameter s[8].DefaultValue = City;
SqlDataSource3. InsertParameter s[9].DefaultValue = State;
SqlDataSource3. InsertParameter s[10].DefaultValue = Country;
SqlDataSource3. InsertParameter s[11].DefaultValue = Pin;
SqlDataSource3. InsertParameter s[12].DefaultValue = Phone;

SqlDataSource3. InsertParameter s[13].DefaultValue = Addressp;
SqlDataSource3. InsertParameter s[14].DefaultValue = Cityp;
SqlDataSource3. InsertParameter s[15].DefaultValue = Statep;
SqlDataSource3. InsertParameter s[16].DefaultValue = Countryp;
SqlDataSource3. InsertParameter s[17].DefaultValue = Pinp;
SqlDataSource3. InsertParameter s[18].DefaultValue = Phonep;
SqlDataSource3. InsertParameter s[19].DefaultValue = Hobbies;
SqlDataSource3. InsertParameter s[20].DefaultValue = Interests;
SqlDataSource3. InsertParameter s[21].DefaultValue =
Achievements;
SqlDataSource3. InsertParameter s[22].DefaultValue
=IsPermanentAdd ress.ToString() ;
SqlDataSource3. Insert();
}
this is the code for first step....

Regards
Raghav
Tim_Mac wrote:
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
"raghav" <ma********@gma il.comwrote in message
news:11******** **************@ d34g2000cwd.goo glegroups.com.. .
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
Sep 15 '06 #5
hi Raghav,
i think the Wizard should be able to work for your requirements.
it would still be useful to see your <Wizard ...opening tag, just in case
you turned off ViewState etc! or if there is something else basic like that
which could be affecting the wizard.

have you debugged to see that the Wizard1_NextBut tonClick event is running
correctly. also i would put a try/catch around all the code in this method
to make sure there are no exceptions happening that could be causing
problems. sometimes an exception is not thrown to the screen and you never
know about it, it can get 'swallowed' silently by the control (e.g. I have
seen this with GridView causing problems similar to what you describe here).

let me know how you get on. if it was me, i would try with a new wizard on
a test page, and build it up piece by piece, testing it at every change, to
find the part of your code that breaks the expected functionality.

tim

"raghav" <ma********@gma il.comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .
Tim
My aspx code is very big, Since I have 5-6 steps in application.
I will tell the main part

<asp:WizardSt ep runat="server" Title="Personal Profile">
-----some code-----
</asp:WizardStep>
<asp:WizardSt ep runat="server" Title="Educatio nal Details">
-----some code-----
</asp:WizardStep>
so on.....
Tim I checked the code, these tags are opened and closed properly

I dont know why its not going on step 2

See Tim, I have read that data of all steps will be submitted when
finish button is clicked in final step. But I am inserting data of each
step from that very step only. That might be problem in normal working
of wizard control. But if i will submit the data of all steps in finish
button click, then where I will store data of each step till we reach
finish button in last step. Moreover i cant do like this bec i have
used gridview controls on next steps so that user can make amendments
then and there. So, its imp for me to submit data of each page in DB
separately. these inbult buttons of wizard ctrl should work otherwise
whats use of using wizard ctrl...Accordin g to u, what might be the
problem?

Regards
Raghav
</asp:WizardStep>

Tim_Mac wrote:
>hi Raghav,
i added the same event to my simplified example, and it still works fine.

can you post your ASPX markup for the wizard, just in case..

my ASPX looks like this:

<asp:Wizard ID="Wizard1" runat="server"
OnNextButtonCl ick="Wizard1_Ne xtButtonClick">
<WizardSteps>
<asp:WizardSt ep runat="server" Title="Step 1">
Hello,
</asp:WizardStep>
<asp:WizardSt ep runat="server" Title="Step 2">
Have a ,
</asp:WzardStep>
<asp:WizardSt ep runat="server" Title="Step 3">
Nice day
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>

the code behind then does this:
protected void Wizard1_NextBut tonClick(object sender,
WizardNavigati onEventArgs e)
{
this.Wizard1.He aderText = String.Format(" Next Step event at {0}",
DateTime.Now.T oLongTimeString ());
}

is there anything funny going on in your page_load?

thanks
tim

"raghav" <ma********@gma il.comwrote in message
news:11******* *************** @i42g2000cwa.go oglegroups.com. ..
Hi Tim

Thanks for taking initiative to solve my problem. my code under next
button click is below:-----

protected void Wizard1_NextBut tonClick(object sender,
WizardNavigatio nEventArgs 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 IsPermanentAddr ess = false;

FirstName = txtfname.Text.T oString();
MiddleName = txtmname.Text.T oString();
LastName = txtlname.Text.T oString();
Gender = ddlgender.Selec tedItem.Value;
Email = txtemail.Text.T oString();
Mobile = txtmobileno.Tex t.ToString();
ResumePath = uploadresume.Fi leName;
Address = txtaddress.Text .ToString();
City = txtcity.Text.To String();
State = ddlstate.Select edItem.Value;
Country = ddlcountry.Sele ctedItem.Value;
Pin = txtpin.Text.ToS tring();
Phone = txtphoneno.Text .ToString();
Addressp = txtaddressp.Tex t.ToString();
Cityp = txtcityp.Text.T oString();
Statep = ddlstatep.Selec tedItem.Value;
Countryp = ddlcountryp.Sel ectedItem.Value ;
Pinp = txtpinp.Text.To String();
Phonep = txtphonenop.Tex t.ToString();
Hobbies = txthobbies.Text .ToString();
Interests = txtinterests.Te xt.ToString();
Achievements = txtachievements .Text.ToString( );
IsPermanentAddr ess = CheckBox1.Check ed;
SqlDataSource3. InsertParameter s[0].DefaultValue = FirstName;
SqlDataSource3. InsertParameter s[1].DefaultValue = MiddleName;
SqlDataSource3. InsertParameter s[2].DefaultValue = LastName;
SqlDataSource3. InsertParameter s[3].DefaultValue = gen;
SqlDataSource3. InsertParameter s[4].DefaultValue = Email;
SqlDataSource3. InsertParameter s[5].DefaultValue = Mobile;
SqlDataSource3. InsertParameter s[6].DefaultValue = ResumePath;
SqlDataSource3. InsertParameter s[7].DefaultValue = Address;
SqlDataSource3. InsertParameter s[8].DefaultValue = City;
SqlDataSource3. InsertParameter s[9].DefaultValue = State;
SqlDataSource3. InsertParameter s[10].DefaultValue = Country;
SqlDataSource3. InsertParameter s[11].DefaultValue = Pin;
SqlDataSource3. InsertParameter s[12].DefaultValue = Phone;

SqlDataSource3. InsertParameter s[13].DefaultValue = Addressp;
SqlDataSource3. InsertParameter s[14].DefaultValue = Cityp;
SqlDataSource3. InsertParameter s[15].DefaultValue = Statep;
SqlDataSource3. InsertParameter s[16].DefaultValue = Countryp;
SqlDataSource3. InsertParameter s[17].DefaultValue = Pinp;
SqlDataSource3. InsertParameter s[18].DefaultValue = Phonep;
SqlDataSource3. InsertParameter s[19].DefaultValue = Hobbies;
SqlDataSource3. InsertParameter s[20].DefaultValue = Interests;
SqlDataSource3. InsertParameter s[21].DefaultValue =
Achievements;
SqlDataSource3. InsertParameter s[22].DefaultValue
=IsPermanentAdd ress.ToString() ;
SqlDataSource3. Insert();
}
this is the code for first step....

Regards
Raghav
Tim_Mac wrote:
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
"raghav" <ma********@gma il.comwrote in message
news:11******* *************** @d34g2000cwd.go oglegroups.com. ..
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


Sep 15 '06 #6
Hi Tim
I will try all the possible senarios given by u. I will find out the
problem and will definately let u know. Thanks for all efforts and
help.
Regards
Raghav..
Tim_Mac wrote:
hi Raghav,
i think the Wizard should be able to work for your requirements.
it would still be useful to see your <Wizard ...opening tag, just in case
you turned off ViewState etc! or if there is something else basic like that
which could be affecting the wizard.

have you debugged to see that the Wizard1_NextBut tonClick event is running
correctly. also i would put a try/catch around all the code in this method
to make sure there are no exceptions happening that could be causing
problems. sometimes an exception is not thrown to the screen and you never
know about it, it can get 'swallowed' silently by the control (e.g. I have
seen this with GridView causing problems similar to what you describe here).

let me know how you get on. if it was me, i would try with a new wizard on
a test page, and build it up piece by piece, testing it at every change, to
find the part of your code that breaks the expected functionality.

tim

"raghav" <ma********@gma il.comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .
Tim
My aspx code is very big, Since I have 5-6 steps in application.
I will tell the main part

<asp:WizardSt ep runat="server" Title="Personal Profile">
-----some code-----
</asp:WizardStep>
<asp:WizardSt ep runat="server" Title="Educatio nal Details">
-----some code-----
</asp:WizardStep>
so on.....
Tim I checked the code, these tags are opened and closed properly

I dont know why its not going on step 2

See Tim, I have read that data of all steps will be submitted when
finish button is clicked in final step. But I am inserting data of each
step from that very step only. That might be problem in normal working
of wizard control. But if i will submit the data of all steps in finish
button click, then where I will store data of each step till we reach
finish button in last step. Moreover i cant do like this bec i have
used gridview controls on next steps so that user can make amendments
then and there. So, its imp for me to submit data of each page in DB
separately. these inbult buttons of wizard ctrl should work otherwise
whats use of using wizard ctrl...Accordin g to u, what might be the
problem?

Regards
Raghav
</asp:WizardStep>

Tim_Mac wrote:
hi Raghav,
i added the same event to my simplified example, and it still works fine.

can you post your ASPX markup for the wizard, just in case..

my ASPX looks like this:

<asp:Wizard ID="Wizard1" runat="server"
OnNextButtonCli ck="Wizard1_Nex tButtonClick">
<WizardSteps>
<asp:WizardSt ep runat="server" Title="Step 1">
Hello,
</asp:WizardStep>
<asp:WizardSt ep runat="server" Title="Step 2">
Have a ,
</asp:WzardStep>
<asp:WizardSt ep runat="server" Title="Step 3">
Nice day
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>

the code behind then does this:
protected void Wizard1_NextBut tonClick(object sender,
WizardNavigatio nEventArgs e)
{
this.Wizard1.He aderText = String.Format(" Next Step event at {0}",
DateTime.Now.To LongTimeString( ));
}

is there anything funny going on in your page_load?

thanks
tim

"raghav" <ma********@gma il.comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .
Hi Tim

Thanks for taking initiative to solve my problem. my code under next
button click is below:-----

protected void Wizard1_NextBut tonClick(object sender,
WizardNavigatio nEventArgs 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 IsPermanentAddr ess = false;

FirstName = txtfname.Text.T oString();
MiddleName = txtmname.Text.T oString();
LastName = txtlname.Text.T oString();
Gender = ddlgender.Selec tedItem.Value;
Email = txtemail.Text.T oString();
Mobile = txtmobileno.Tex t.ToString();
ResumePath = uploadresume.Fi leName;
Address = txtaddress.Text .ToString();
City = txtcity.Text.To String();
State = ddlstate.Select edItem.Value;
Country = ddlcountry.Sele ctedItem.Value;
Pin = txtpin.Text.ToS tring();
Phone = txtphoneno.Text .ToString();
Addressp = txtaddressp.Tex t.ToString();
Cityp = txtcityp.Text.T oString();
Statep = ddlstatep.Selec tedItem.Value;
Countryp = ddlcountryp.Sel ectedItem.Value ;
Pinp = txtpinp.Text.To String();
Phonep = txtphonenop.Tex t.ToString();
Hobbies = txthobbies.Text .ToString();
Interests = txtinterests.Te xt.ToString();
Achievements = txtachievements .Text.ToString( );
IsPermanentAddr ess = CheckBox1.Check ed;
SqlDataSource3. InsertParameter s[0].DefaultValue = FirstName;
SqlDataSource3. InsertParameter s[1].DefaultValue = MiddleName;
SqlDataSource3. InsertParameter s[2].DefaultValue = LastName;
SqlDataSource3. InsertParameter s[3].DefaultValue = gen;
SqlDataSource3. InsertParameter s[4].DefaultValue = Email;
SqlDataSource3. InsertParameter s[5].DefaultValue = Mobile;
SqlDataSource3. InsertParameter s[6].DefaultValue = ResumePath;
SqlDataSource3. InsertParameter s[7].DefaultValue = Address;
SqlDataSource3. InsertParameter s[8].DefaultValue = City;
SqlDataSource3. InsertParameter s[9].DefaultValue = State;
SqlDataSource3. InsertParameter s[10].DefaultValue = Country;
SqlDataSource3. InsertParameter s[11].DefaultValue = Pin;
SqlDataSource3. InsertParameter s[12].DefaultValue = Phone;

SqlDataSource3. InsertParameter s[13].DefaultValue = Addressp;
SqlDataSource3. InsertParameter s[14].DefaultValue = Cityp;
SqlDataSource3. InsertParameter s[15].DefaultValue = Statep;
SqlDataSource3. InsertParameter s[16].DefaultValue = Countryp;
SqlDataSource3. InsertParameter s[17].DefaultValue = Pinp;
SqlDataSource3. InsertParameter s[18].DefaultValue = Phonep;
SqlDataSource3. InsertParameter s[19].DefaultValue = Hobbies;
SqlDataSource3. InsertParameter s[20].DefaultValue = Interests;
SqlDataSource3. InsertParameter s[21].DefaultValue =
Achievements;
SqlDataSource3. InsertParameter s[22].DefaultValue
=IsPermanentAdd ress.ToString() ;
SqlDataSource3. Insert();
}
this is the code for first step....

Regards
Raghav
Tim_Mac wrote:
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
"raghav" <ma********@gma il.comwrote in message
news:11******** **************@ d34g2000cwd.goo glegroups.com.. .
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
Sep 18 '06 #7
Hi Tim

As per ur guidelines, I made another small application with two steps.
I have included, 2 controls in step 1 and 2 controls in step 2. Its
working very well. On next button click, its submitting data of step 1
as well as automatically going to step 2 also. One thing to note is
that If I am clicking on next button without making any entries in Text
boxes of step 1, its going to step 2 as I am not using any validations
till now. The dummy application is working well and there also i am
inserting data of step 1 in same manner as in case of main application.
I checked using try/catch block also---Its not throwing any exception.
Moreover viewstate is enabled. Let me see where I am going wrong...
Keep on giving ur views....
But I have to fix it soon.........:-)
Regards
Raghav
Tim_Mac wrote:
hi Raghav,
i think the Wizard should be able to work for your requirements.
it would still be useful to see your <Wizard ...opening tag, just in case
you turned off ViewState etc! or if there is something else basic like that
which could be affecting the wizard.

have you debugged to see that the Wizard1_NextBut tonClick event is running
correctly. also i would put a try/catch around all the code in this method
to make sure there are no exceptions happening that could be causing
problems. sometimes an exception is not thrown to the screen and you never
know about it, it can get 'swallowed' silently by the control (e.g. I have
seen this with GridView causing problems similar to what you describe here).

let me know how you get on. if it was me, i would try with a new wizard on
a test page, and build it up piece by piece, testing it at every change, to
find the part of your code that breaks the expected functionality.

tim

"raghav" <ma********@gma il.comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .
Tim
My aspx code is very big, Since I have 5-6 steps in application.
I will tell the main part

<asp:WizardSt ep runat="server" Title="Personal Profile">
-----some code-----
</asp:WizardStep>
<asp:WizardSt ep runat="server" Title="Educatio nal Details">
-----some code-----
</asp:WizardStep>
so on.....
Tim I checked the code, these tags are opened and closed properly

I dont know why its not going on step 2

See Tim, I have read that data of all steps will be submitted when
finish button is clicked in final step. But I am inserting data of each
step from that very step only. That might be problem in normal working
of wizard control. But if i will submit the data of all steps in finish
button click, then where I will store data of each step till we reach
finish button in last step. Moreover i cant do like this bec i have
used gridview controls on next steps so that user can make amendments
then and there. So, its imp for me to submit data of each page in DB
separately. these inbult buttons of wizard ctrl should work otherwise
whats use of using wizard ctrl...Accordin g to u, what might be the
problem?

Regards
Raghav
</asp:WizardStep>

Tim_Mac wrote:
hi Raghav,
i added the same event to my simplified example, and it still works fine.

can you post your ASPX markup for the wizard, just in case..

my ASPX looks like this:

<asp:Wizard ID="Wizard1" runat="server"
OnNextButtonCli ck="Wizard1_Nex tButtonClick">
<WizardSteps>
<asp:WizardSt ep runat="server" Title="Step 1">
Hello,
</asp:WizardStep>
<asp:WizardSt ep runat="server" Title="Step 2">
Have a ,
</asp:WzardStep>
<asp:WizardSt ep runat="server" Title="Step 3">
Nice day
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>

the code behind then does this:
protected void Wizard1_NextBut tonClick(object sender,
WizardNavigatio nEventArgs e)
{
this.Wizard1.He aderText = String.Format(" Next Step event at {0}",
DateTime.Now.To LongTimeString( ));
}

is there anything funny going on in your page_load?

thanks
tim

"raghav" <ma********@gma il.comwrote in message
news:11******** **************@ i42g2000cwa.goo glegroups.com.. .
Hi Tim

Thanks for taking initiative to solve my problem. my code under next
button click is below:-----

protected void Wizard1_NextBut tonClick(object sender,
WizardNavigatio nEventArgs 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 IsPermanentAddr ess = false;

FirstName = txtfname.Text.T oString();
MiddleName = txtmname.Text.T oString();
LastName = txtlname.Text.T oString();
Gender = ddlgender.Selec tedItem.Value;
Email = txtemail.Text.T oString();
Mobile = txtmobileno.Tex t.ToString();
ResumePath = uploadresume.Fi leName;
Address = txtaddress.Text .ToString();
City = txtcity.Text.To String();
State = ddlstate.Select edItem.Value;
Country = ddlcountry.Sele ctedItem.Value;
Pin = txtpin.Text.ToS tring();
Phone = txtphoneno.Text .ToString();
Addressp = txtaddressp.Tex t.ToString();
Cityp = txtcityp.Text.T oString();
Statep = ddlstatep.Selec tedItem.Value;
Countryp = ddlcountryp.Sel ectedItem.Value ;
Pinp = txtpinp.Text.To String();
Phonep = txtphonenop.Tex t.ToString();
Hobbies = txthobbies.Text .ToString();
Interests = txtinterests.Te xt.ToString();
Achievements = txtachievements .Text.ToString( );
IsPermanentAddr ess = CheckBox1.Check ed;
SqlDataSource3. InsertParameter s[0].DefaultValue = FirstName;
SqlDataSource3. InsertParameter s[1].DefaultValue = MiddleName;
SqlDataSource3. InsertParameter s[2].DefaultValue = LastName;
SqlDataSource3. InsertParameter s[3].DefaultValue = gen;
SqlDataSource3. InsertParameter s[4].DefaultValue = Email;
SqlDataSource3. InsertParameter s[5].DefaultValue = Mobile;
SqlDataSource3. InsertParameter s[6].DefaultValue = ResumePath;
SqlDataSource3. InsertParameter s[7].DefaultValue = Address;
SqlDataSource3. InsertParameter s[8].DefaultValue = City;
SqlDataSource3. InsertParameter s[9].DefaultValue = State;
SqlDataSource3. InsertParameter s[10].DefaultValue = Country;
SqlDataSource3. InsertParameter s[11].DefaultValue = Pin;
SqlDataSource3. InsertParameter s[12].DefaultValue = Phone;

SqlDataSource3. InsertParameter s[13].DefaultValue = Addressp;
SqlDataSource3. InsertParameter s[14].DefaultValue = Cityp;
SqlDataSource3. InsertParameter s[15].DefaultValue = Statep;
SqlDataSource3. InsertParameter s[16].DefaultValue = Countryp;
SqlDataSource3. InsertParameter s[17].DefaultValue = Pinp;
SqlDataSource3. InsertParameter s[18].DefaultValue = Phonep;
SqlDataSource3. InsertParameter s[19].DefaultValue = Hobbies;
SqlDataSource3. InsertParameter s[20].DefaultValue = Interests;
SqlDataSource3. InsertParameter s[21].DefaultValue =
Achievements;
SqlDataSource3. InsertParameter s[22].DefaultValue
=IsPermanentAdd ress.ToString() ;
SqlDataSource3. Insert();
}
this is the code for first step....

Regards
Raghav
Tim_Mac wrote:
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
"raghav" <ma********@gma il.comwrote in message
news:11******** **************@ d34g2000cwd.goo glegroups.com.. .
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
Sep 18 '06 #8
hi raghav,
i'm all out of ideas. all i can suggest is that you build up your working
sample until it does exactly what you want. when it stops working as you
expect it to, pinpoint exacatly what step broke it, and then maybe i could
help.

tim
Sep 18 '06 #9
I have user control in the second step of the wizard and it does not
show up on the next click.

Thanks

Sep 21 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2161
by: clintonG | last post by:
Please provide your article reference(s) that document how to use DNF 1.1 panel controls to build a Wizard. I've seen and tried out the DNF 2.0 Wizard Control, I don't like the current implementation, the final release will most likely be no better, I can't wait until DNF 2.0 is released and I want to build one myself as I really don't want to be a lame any longer than I have to ;-) Thanks for your comments and resource referrals... --
2
4358
by: Nick | last post by:
Is there anyway to get a javascript confirm button on the wizard control so that when a user clicks "cancel" it can prompt something like... "Are you sure you want to cancel? Your changes will not be saved."
2
4267
by: John R. Lewis | last post by:
I posted this yesterday with a different email address. I am reposting with my fake-address as given to me by Microsoft so that I can be guraranteed a response from a support representative. Sorry for the repost. I'd like to make use of the asp:Wizard control to present a step-by-step guided experience for my user to fill out a complicated data-entry form. I'd like to make use of two-way databinding provided by the asp:FormView control...
6
2086
by: Douglas J. Badin | last post by:
Earlier this month, there was a posting about this without a definitive answer. If you place a Wizard inside a FormView's EditItemTemplate the bound fields contained within the View will display the data from the fields to which they are bound; yet they will return null values when the 'Update' LinkButton is clicked. The responder thought this might have something to do with naming containers. If so, this is similar to an issue in...
0
2686
by: Terry | last post by:
Developing Environment: Visual Studio 2.0 ASP.NET Question: I have a gridview control inside of a wizard control. I'm having issues accessing the SelectedDataKey.Values("ID AS STRING") of the grid control. I can access the DataKeyNames and other properties but the SelectedDataKey.Values are nothing (null). Once I move the Gridview out of the wizard control, I can access the SelectedDataKey value. Any Ideas? I have used the following code...
3
7448
by: John Mott | last post by:
Hi All, I'm trying to set the defaultbutton for a form to a button contained in a step template for a wizard control. This is the code in PreRender: switch (myWizard.ActiveStep.StepType) { case WizardStepType.Start: this.Page.Form.DefaultButton = "StartNextButton"; break; case WizardStepType.Finish: this.Page.Form.DefaultButton = "FinishButton"; break;
0
1373
by: Glenn | last post by:
I currently have a page that contains a logon control and a Wizard control. I am having an issue when the user hits the "Enter" key, the user gets logged off. This is because the logon control appears at the top of the page and the browser defines the first submit button that appears on the page as the "default" button. On other pages I have resolved this issue by wrapping my input controls in an ASP Panel and setting the panel's...
0
1470
by: Larry R | last post by:
I have a wizard control that has a varying number of steps. Each step utilizes different custom business objects and populates values. The steps are partially determined at the beginning of the wizard. Imagine a reporting wizard where you grab all of the parameters for a report. So, each of the steps are in a separate user control. The user control loads the appropriate objects from session controlled by properties on the control...
8
10837
by: GaryDean | last post by:
I have a Wizard page and need to affect the next and previous buttons from my code-behind. I've googled around and found two solutions, and neither appear to work. I can access the SideBarList steps successfully with the following code... Control myContainer = (Control)Wizard1.FindControl("SideBarContainer"); DataList mySideBarList = (DataList)myContainer.FindControl("SideBarList");
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9583
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9396
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8263
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4716
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3323
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.