HyperLink in a gridview contro to open word docmen
I need to display an hyperlink in a gridview which is the path to the document. I would like to open microsoft word when a user clic on the hyperlink. I set the fallowing code in asp.net 2.0
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Página sin tÃtulo</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Nombre"
DataSourceID="SqlDataSource1" Style="position: static">
<Columns>
<asp:TemplateField HeaderText="myTemp">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("Curriculum") %>' NavigateUrl='<%# Eval("Curriculum") %>'></asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringDatos %>"
SelectCommand="SELECT [Nombre], [Curriculum] FROM [Datos]"></asp:SqlDataSource>
</div>
</form>
</body>
</html>
What more do I have to do???
Thank a lot....
|