Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspdotnet_website_programming thread: boundcolumn problem


Message #1 by Greg Partin <GPartin@c...> on Mon, 29 Apr 2002 17:41:39 -0400
> 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	

  Return to Index