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=" &amp; DataBinder.Eval
(Container, "DataItem.PLATFORM")  %>'

I have tried a couple of things including:
NavigateUrl='<%# "EAPLAT_detail.aspx?id=" &amp; 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

<*> 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/
 



Reply via email to