Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

CAML query return of Hyperlink field

  Asked By: Katharine    Date: Jul 05    Category: Sharepoint    Views: 5458

I have a CAML Query that returns a Hyperlink column which I then bind
to a GridView control.

My Gridview column is defined:

DataNavigateUrlFields="URL" />

The problem is that the returned hyperlink contains the full data of
the Web Address and the Description:

"www.thesite.com, The Site Name"

which makes the URL invalid

How do I parse this out?



2 Answers Found

Answer #1    Answered By: Maggie Benson     Answered On: Jul 05

What if you add an OnDataBind sub that takes this field  and parses out the
piece you need?

Answer #2    Answered By: Lane Trujillo     Answered On: Jul 05

I did end up using the RowDataBound.

Didn't find what you were looking for? Find more on CAML query return of Hyperlink field Or get search suggestion and latest updates.