Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GridView and Hyperlink
Message
De
13/02/2009 07:50:57
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Titre:
GridView and Hyperlink
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01381544
Message ID:
01381544
Vues:
89
I'm a bit confused about the syntax in setting the HyperLinkField in a GridView control.

I'm using Visual Studio 2008. I'm a VB programmer.

I have a page with a GridView on it trying to set up a HyperLink field.

I have a table with three fields: TAG_NUMBER, PM_Procedure, and the HyperLinkField: Link.

The PM_Procedure field holds the name of a word document file: Pm010.doc.

The Link holds the link: file:///H:/CLINENG/Shared/DOCUMENTS/PMPROC/Pm010.doc

When I display the page it shows the link, it's underlined, but the there is no hand cursor over the link to click the link.

The code looks like this:
<Columns>
   <asp:BoundField DataField="TAG_NUMBER" HeaderText="TAG_NUMBER"
      SortExpression="TAG_NUMBER" />
      <asp:BoundField DataField="PM_Procedure" HeaderText="PM_Procedure"
         ReadOnly="True" SortExpression="PM_Procedure" />
           
      <asp:HyperLinkField
         HeaderText="PM_Link"
         DataTextField="Link"
         Text="PM_Link" 
         DataNavigateUrlFields="Link" 
         DataNavigateUrlFormatString="{0}">

         <ItemStyle Font-Underline="True" />
      </asp:HyperLinkField>
         
</Columns>
I need to know what the format string should be to link to the Word document file, not a page in the web.

Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform