Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Nav w/User Control Issue: Link on ucHeader different events depending on page?

Thread Tools

Nav w/User Control Issue: Link on ucHeader different events depending on page?

Posts: n/a
Question: Is there a way to tell from what page the link was clicked from, if
the link lives in a user control ?

I have a ucHeader in .Net 2003 that has a linkbutton as well as a menu bar above
with a home hyperlink.

When on the main pg, the link dynamically displays "Go Up a Level"

When on a "Show Rank" pg, it dynamically displays "Go Back" which on init of the
Rank page sets the returnView = true

I can see that the "sender" has a page value, {ASP.Main...} but I can't seem to
capture that element.

More Details.... follow:

I've tried using a linkButton because it has server side events

When the main page reloads and returnView = true, it uses the Last_Vars to
requery and go back to where they left off.

If the returnView was not set from the Rank page it is assumed (this may be the
problem) that it's a "Go Up a Level" which simply renders the current view - 1

Originally this was a javascript goback, but if one went in the following

main --> down level on main --> "Up lvl" (javascript back) on main all was good,

main --> Rank ---> main, "Up lvl" would be goback to Rank, which is bad.

So, using the returnView differentiates either Go Up or Go Back.

Again, the problem is that the hyperlink in the main menu calls the Main pg,
which was just a reload of the top level, however now it assumes that since the
returnView is nothing and curentView has a value that it must be currentView -1
as in Up Lvl, rather than "TOP Level"

If there was a way to know if I clicked the link from either the Rank or Main pg
then I could set the go back or up conditions and also detect a top lvl as the
lack of an up lvl.



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANT] Load different jar files while depending on different project version Kit Java 0 08-10-2011 02:54 PM
NAV, NAV 5x.... Norton Anit-Virus?? MrDave Microsoft Certification 0 08-09-2009 07:48 PM
Events Events Events Please Help Chris ASP .Net Web Controls 0 08-30-2005 08:21 PM
How to set position of a web control depending on other control's position at run-time? James Wong ASP .Net Web Controls 4 07-14-2004 10:24 AM
SSI nav bar but page name cell a different colour? Lois Javascript 2 08-08-2003 12:44 AM