A
Assimalyst
Hi,
I have a situation where users enter data, then on completion are
directed to successful.aspx. On this page i essentially want two links,
one to go to homepage, the other to link back one or two pages add
another similar set of data.
This successful.aspx webpage is shared by a number of webforms, but
some data entry procedures use one webform only, some require two
webforms. In these instance i want to navigate back to the first
webform.
I think the code i need is along the lines of (yes you spotted it, I'm
a newbie!!):
function BackClick()
{
if(previous webform = wf1.aspx or wf2.aspx)
{
history.back(2)
}
else
{
history.back(1)
}
}
But being a newbie i'm not sure of the syntax required to properly
invoke the if statement. Could anyone enlighten me? Or indeed offer any
better solutions.
Thanks.
I have a situation where users enter data, then on completion are
directed to successful.aspx. On this page i essentially want two links,
one to go to homepage, the other to link back one or two pages add
another similar set of data.
This successful.aspx webpage is shared by a number of webforms, but
some data entry procedures use one webform only, some require two
webforms. In these instance i want to navigate back to the first
webform.
I think the code i need is along the lines of (yes you spotted it, I'm
a newbie!!):
function BackClick()
{
if(previous webform = wf1.aspx or wf2.aspx)
{
history.back(2)
}
else
{
history.back(1)
}
}
But being a newbie i'm not sure of the syntax required to properly
invoke the if statement. Could anyone enlighten me? Or indeed offer any
better solutions.
Thanks.