Assimalyst wrote:
>
> 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.
>
You're using ASP.NET.
Don't use javascript for this.
Save something in ViewState that indicates which web form they used,
then check that later and dynamically set Hyperlink URL based on it.
Way easier than trying to save what they did in cookies and determine
what to do based on it, and all that jazz, which is what you would
basically need to do with just client-side JS.
|