I have a gridview that has a hyperlink column. It gets the web address from a data source. This is all working as it should. The problem is when I click the web address, it doesn't go to the address. It's like it's trying to find the address locally. I know it probable has something to do with the url formatting, but not sure what needs to be done.
Code:
<asp:GridView ID="gvEmployeesBenefits" runat="server" DataSourceID="Benefits" Style="z-index: 100;
left: 0px; top: 0px" AutoGenerateColumns="False" BackColor="White"
BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3"
GridLines="Horizontal" onrowdatabound="gvEmployeesBenefits_RowDataBound">
<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
<Columns>
<asp:CommandField ShowEditButton="True" />
<asp:BoundField DataField="BGAN8" HeaderText="Emp#"
ReadOnly="True" Visible="False" />
<asp:BoundField DataField="BGPLAN" HeaderText="Plan" ReadOnly="True"
Visible="False" />
<asp:BoundField DataField="BGAOPT" HeaderText="Option" ReadOnly="True"
Visible="False" />
<asp:BoundField DataField="BAEXA" HeaderText="Plan Description"
ReadOnly="True" />
<asp:BoundField DataField="BGEFT" HeaderText="Enrollment Date"
ReadOnly="True" />
<asp:BoundField DataField="BAFDBA" HeaderText="BAFDBA" ReadOnly="True"
Visible="False" />
<asp:BoundField DataField="BASDBA" HeaderText="BASDBA" ReadOnly="True"
Visible="False" />
<asp:BoundField AccessibleHeaderText="RT" DataField="RT"
DataFormatString="{0:N2}" HeaderText="RT" />
<asp:BoundField DataField="YTD" DataFormatString="{0:N2}" HeaderText="YTD"
ReadOnly="True" />
<asp:HyperLinkField HeaderText="Website" DataNavigateUrlFields="Website"
DataTextField="Website" />
</Columns>
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:GridView>
Comment