> Hi folks,
>
> I'm trying to dynamically build a href using a BoundColumn. I am trying
> to create the href in the dataformatstring property but i'm getting a
> parse error. I've tried moving quotes around everywhere and can't seem to
> get this to work. Does anyone have some sample code that does this or
> know where I could find some? I haven't found anything on the internet on
> this.
>
> Here's the code:
>
> <asp:BoundColumn DataField="num_students_taken" ReadOnly="True"
> HeaderText="Students Mastered" DataFormatString="<%#
> "http://localhost/BeginningTests/reports/rpt_ClassProgressReportResults.as
> px?Test_Title=" & Server.URLEncode(trim(Container.DataItem("test_title")))
> & ">"%> {0:g} <%# "</a>"%>"></asp:BoundColumn>
>
> thanks,
> Greg