Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

HREF links based on current webpage displays else no display

$
0
0

I want the sidebar to link to the page specficic help topic if defined
otherwise not show at all. I would actually have to do this Code behind where I would have it as a IF Else Condition like:

If("CurrentPage.aspx" = "CurrentPage.aspx")

aTagID = Response.Redirect("~/sectionTopic/HelpTopic.aspx" )

}

Else 

{

aTagID =Response.Redirect( "~/fullDoc/FullHelpTopic.aspx")

}

Would this be the suitable case for this topic of discussion?

Can anyone provide a better solution than what I thought of?


Viewing all articles
Browse latest Browse all 23244

Trending Articles