Protius73
Sorceror
Ok im writing a website project for a friends freeshard but i have a small dilemna in the C# code behind for the page.
That is the current hyperlink control that currently works and adds the hyperlinks to all the images for said folder.
Now in the C# i have a method to switch the value of NavigateUrl to a new databinding
the Problem is the value for newLink isnt in a proper format for C# so how would i format that string to work correctly ?
Code:
<asp:HyperLink ID="imagelink" NavigateUrl='<%# Bind("Name", "/images/pvp/{0}") %>' runat="server" Target="blank">
That is the current hyperlink control that currently works and adds the hyperlinks to all the images for said folder.
Now in the C# i have a method to switch the value of NavigateUrl to a new databinding
Code:
HyperLink imagelink = (HyperLink)DataList182.FindControl("imagelink");
string newLink = '<%#Bind("Name", "/images/pve/{0}") %>';
imagelink.NavigateUrl = newLink;