I may be just overtired here but I thought this would be cool. I am making a link on a datagrid based on some static text (the page itself) and some dynamic text (the query string). I do realize the ways normally used to do this.
A select button and a redirect in the selectedindex change event.
Building the link on the item created event.
and I am sure there are others.
Just because I like to be difficult I thought of doing it this way. Use the Link Column type, add the static text in and concatenate the dynamic text on the end. However, I don't know how to do the concatenate bit in the HTML.
This is what I have so far,
<asp:HyperLinkColumn DataTextField="CampName" NavigateUrl="SiteSelection.aspx?Camp=" <%# DataBinder.Eval(Container, "DataItem.CampName" %>></asp:HyperLinkColumn>
if anyone has suggestions such as go to bed and use a different method tomorrow I'll accept them. Thanks all. That'l do donkey, that'l do
Mark
If you are unsure of forum etiquette check here faq796-2540
A select button and a redirect in the selectedindex change event.
Building the link on the item created event.
and I am sure there are others.
Just because I like to be difficult I thought of doing it this way. Use the Link Column type, add the static text in and concatenate the dynamic text on the end. However, I don't know how to do the concatenate bit in the HTML.
This is what I have so far,
<asp:HyperLinkColumn DataTextField="CampName" NavigateUrl="SiteSelection.aspx?Camp=" <%# DataBinder.Eval(Container, "DataItem.CampName" %>></asp:HyperLinkColumn>
if anyone has suggestions such as go to bed and use a different method tomorrow I'll accept them. Thanks all. That'l do donkey, that'l do
Mark
If you are unsure of forum etiquette check here faq796-2540