954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

detail view, different hyperlink based on data?

I have a detail view that is displaying information from a table called demos. I am currently displaying a hyperlink so that someone can click the link and go a page (intense, I know!)

I would like to make the hyperlink go to different pages based on the value of one of the fields in the details view. For instance, I have a field called "listenedto". if the value is "yes", I want the link to go to "yespage.aspx" and if the value is "no", go to "nopage.aspx".

I am just unsure of how to accomplish this inside of visual web developer express...

someoneelse
Newbie Poster
14 posts since Mar 2007
Reputation Points: 10
Solved Threads: 0
 

Did you ever figure it out? I have the same problem.

dlc0526
Newbie Poster
1 post since Jun 2008
Reputation Points: 10
Solved Threads: 0
 

hi,
in template field take link button instead of hylerlink.raise the linkbutton_click write switch/if condition for navagation based on the other filds value.
hope this will work........

srikanthkadem
Junior Poster in Training
68 posts since Mar 2008
Reputation Points: 11
Solved Threads: 11
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You