Just a stab but how about trying Server.URLEncode(DataBinder.Eval(Container, "DataItem.PLATFORM") )
Bob Filipiak A question not asked is a lost opportunity to learn. ----- Original Message ----- From: "Mel Silva" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, January 31, 2005 4:59 PM Subject: [AspNetAnyQuestionIsOk] DataBinder.Eval Alternative (Again this year) > > > > Hi all, > I've read the archives on this topic and still have been unable to > find a resolution. Here's my variation of this issue: > > I have a databound hyperlink that is part of a databound datagrid. > When the hyperlink is clicked, a 'detail' page is opened with the > data item passed as a parameter, so that the user can edit the item > listed in the datagrid. For the most part this works fine, but for > a single exception. Now that it is time to deliver this product to > our client we have been give the 'real data' to work with. In the > real data, 'Platforms' (which is the column of the datagrid that is > hyperlinked to the detail page) can contain the '#' character. > ACK! Now if the data contains a '#', the parameter gets truncated > at the '#' and when the detail page tries to run the query with the > truncated parameter, it barfs on its shoes. > > I need another method to pass this '#' containing parameter to the > detail page. This is what the code segment looks like now: > NavigateUrl='<%# "EAPLAT_detail.aspx?id=" & DataBinder.Eval > (Container, "DataItem.PLATFORM") %>' > > I have tried a couple of things including: > NavigateUrl='<%# "EAPLAT_detail.aspx?id=" & String.Format("{g}", > ((DataRowView)Container.DataItem)["PLATFORM"]) %>' > > This is using a VB.Net codebehind and it is something I inherited, > not built from scratch. Any new directions I can pursue would be > helpful. > > Thanks, > Mel Silva > MCAD, A+ > Houston, TX > > > > > > > > > > Yahoo! Groups Links > > > > > > > > > Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
