Open an url that's contianed in a variable
I thought that this would be a very simple issue but have been Googling it for the last three days without any success.
In my modified âPlanetWrox.comâ web site (TRTDevelopment.com) I would like to add an additional column to the âReviewsâ table (in my case âSongsâ table). This column would contain a hyperlink to the review (in my case song). Then I would like to display this hyperlink in the âViewDetailsâ window. So far so good, Iâve had no trouble accomplishing this task.
Now, I would like to be able to click on the displayed hyperlink and navigate to that page on the Web. Please note that the hyperlink I display in the DetailsView window was obtained from a query to the âReviews Tableâ and is contained in a variable (right now I have it stored in a label.text). It seemed all I would have to do was use something like the following:
<asp:Label ID="ClipLabel" runat="server"><a href= "ClipLabel.Text" /></asp:Label>
admittedly this is in itâs very simplest form.
Iâve also tried using a HyperLink control but again the âNavagateUrlâ does not accept a variable as an attribute.
I donât know why Iâm having so much trouble with this issue as you see this kind of thing done on all kinds of web sites. Any help in pointing me toward a solution would be greatly appreciated
|