Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

C# Hyperlink in Gridview

Posted on 2014-01-06
3
Medium Priority
?
414 Views
Last Modified: 2014-01-06
Hi

I have an issue where I have stored file paths (folder share on another server) in a SQL database.  I am able to create the hyperlink on the gridview and it works from Visual Studios but when I publish it, the link do not work (nothing happens)

below is how I create the hyperlink

<Columns>            
     
         <asp:TemplateField HeaderText="Document"   HeaderStyle-HorizontalAlign="Left" >               
                <ItemTemplate>
                    <asp:hyperlink ID="HID" runat="server" Text='<%# Bind("CD_Name") %>'
                  NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"FilePath") %>' Target="_blank"></asp:hyperlink>
                </ItemTemplate>

       <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
     </asp:TemplateField>    
       
               
    </Columns>

I am not sure what I am doing wrong I am using IIS 7.0

Thank you for your help in advance
0
Comment
Question by:thomasm1948
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 

Author Comment

by:thomasm1948
ID: 39760633
The following is a sample link that is in the gridview:

file:\\EPRMS\PImages$\001appSQL\Notice%20of%20Personnel%20Action.jpg


if I copy it to the run command, it works.  In visual studios it works as well
0
 

Accepted Solution

by:
thomasm1948 earned 0 total points
ID: 39760642
I figured it out.  I added my site to the trusted sites and it worked
0
 

Author Closing Comment

by:thomasm1948
ID: 39760643
I found he solution
0

Featured Post

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question