M
Morris Neuman
Hi,
I have a GrideView which is bound to a datasourcecontrol. One of the
columns is a HyperLink to another web page passing it parameters. This
Hyperlink does not show as a hyperlink when viewing the grid. I have this
working on other pages but cannot get this to work. Don't know what I have
coded incorrectly. Please help.
Below is the definition of the GridView with the HyperLink field.
<asp:GridView ID="GridView2" runat="server" AllowPaging="True"
AllowSorting="True"
AutoGenerateColumns="False"
DataKeyNames="Account,MessageID,SpeechFileID,VOXDIR"
DataSourceID="AccessDataSource1"
Font-Names="Verdana" Font-Size="8pt" BorderColor="#FFC080"
BorderStyle="Solid" BorderWidth="1px" Width="579px" CellPadding="5"
CellSpacing="1" ForeColor="Navy" >
<Columns>
<asp:CommandField ShowEditButton="True" EditText="Edit Status" >
<ControlStyle Font-Bold="False" ForeColor="DarkSlateGray" />
<HeaderStyle BackColor="Lavender" />
<ItemStyle BackColor="Lavender" BorderColor="SlateGray"
BorderStyle="Inset" BorderWidth="2px" />
</asp:CommandField>
<asp:HyperLinkField DataNavigateUrlFields="SpeechFileID,VOXDIR"
DataNavigateUrlFormatString="EmailMsg2.aspx?SpeechFileID{0}&VOXDIR{1}"
Text="Email Message2 via HLink" >
</asp:HyperLinkField>
</Columns>
<RowStyle BackColor="BlanchedAlmond" />
<EmptyDataTemplate>
No messages for selected mailbox
</EmptyDataTemplate>
<HeaderStyle BorderColor="#FFC080" Font-Bold="False"
BackColor="#FFC080" />
<AlternatingRowStyle BackColor="SeaShell" />
<PagerSettings Mode="NumericFirstLast" Position="TopAndBottom" />
</asp:GridView>
I have a GrideView which is bound to a datasourcecontrol. One of the
columns is a HyperLink to another web page passing it parameters. This
Hyperlink does not show as a hyperlink when viewing the grid. I have this
working on other pages but cannot get this to work. Don't know what I have
coded incorrectly. Please help.
Below is the definition of the GridView with the HyperLink field.
<asp:GridView ID="GridView2" runat="server" AllowPaging="True"
AllowSorting="True"
AutoGenerateColumns="False"
DataKeyNames="Account,MessageID,SpeechFileID,VOXDIR"
DataSourceID="AccessDataSource1"
Font-Names="Verdana" Font-Size="8pt" BorderColor="#FFC080"
BorderStyle="Solid" BorderWidth="1px" Width="579px" CellPadding="5"
CellSpacing="1" ForeColor="Navy" >
<Columns>
<asp:CommandField ShowEditButton="True" EditText="Edit Status" >
<ControlStyle Font-Bold="False" ForeColor="DarkSlateGray" />
<HeaderStyle BackColor="Lavender" />
<ItemStyle BackColor="Lavender" BorderColor="SlateGray"
BorderStyle="Inset" BorderWidth="2px" />
</asp:CommandField>
<asp:HyperLinkField DataNavigateUrlFields="SpeechFileID,VOXDIR"
DataNavigateUrlFormatString="EmailMsg2.aspx?SpeechFileID{0}&VOXDIR{1}"
Text="Email Message2 via HLink" >
</asp:HyperLinkField>
</Columns>
<RowStyle BackColor="BlanchedAlmond" />
<EmptyDataTemplate>
No messages for selected mailbox
</EmptyDataTemplate>
<HeaderStyle BorderColor="#FFC080" Font-Bold="False"
BackColor="#FFC080" />
<AlternatingRowStyle BackColor="SeaShell" />
<PagerSettings Mode="NumericFirstLast" Position="TopAndBottom" />
</asp:GridView>