Probably you need to resort to a fave trick of mine I have never published yet.
I make a function
<%# ProcessFields(Container.DataItem) %>
and
string ProcessFields(System.Data.DataRowView p1)
{
}
Now I can grab fields the way I usually do except I can do all the
field retrieval inside the ProcessFields function -- I can get to any
field.
On Mon, 31 Jan 2005 21:59:16 -0000, Mel Silva
<[EMAIL PROTECTED]> wrote:
>
>
> 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
>
> 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 the Yahoo! Terms of Service.
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/