Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8125817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:56:29+00:00 2026-06-06T06:56:29+00:00

I am working on a webpage in C# on VS2010. I have a gridview

  • 0

I am working on a webpage in C# on VS2010.

I have a gridview that is populated from a database. While loading the gridview Columns I take away the local address of the file and give it the server name where the local file will be found. so if its local path is E:/secureDocs/depositions/file a.pdf the path that anyones computer can use is \\dmzwimkeweb01\securedocs\depostions\file a.pdf

    <Columns >    
      <asp:BoundField DataField="docTypeName" HeaderText="Type" /> 
        <asp:TemplateField HeaderText="Name" >
            <ItemTemplate>               
                <a href='<%#Utility.Clean(((String)Eval("docPath")).Replace("e:", "\\dmzwimkeweb01")) %>'><%# ((String)Eval("docname")).Replace("|^||^||^||^||^||^||^||^|", "&#39;")%></a>
            </ItemTemplate>

        </asp:TemplateField>

        <asp:BoundField DataField="pageName" HeaderText="Folder" />
        <asp:BoundField DataField="docCreateDate" HeaderText="Date" HtmlEncode="false" DataFormatString="{0:MM/dd/yyyy}" /> 
    </Columns>

However when I click the link that goes into the column it takes me to
h_ttp://dmzwimkeweb01/secureDocs/depositions/file%20a.pdf

So now the slashes are the wrong way (dont know if this matters) and it takes me to ‘http://&#8217; when it should just be a link to a server on the network and it puts %20 in where there is a space in the filename. Also when I click the link it tries to open it in IE instead of opening a pdf reader

So again what I want the link to be is: \\dmzwimkeweb01\securedocs\depostions\file a.pdf

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T06:56:32+00:00Added an answer on June 6, 2026 at 6:56 am

    Assuming that whoever clicks your link has access to the network file location, make your link look like this:

    <a href="file:///dmzwimkeweb01/securedocs/depositions/file a.pdf">My link</a>

    The slashes will indeed go “the wrong way” as the specification for URLs is different than Microsoft’s path specification. Hope this helps! 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an asp.net webpage with a drop down menu that is populated by
I'm working on a webpage where it gets its data from a SQL database.
I am working on an application where i am loading a webpage from a
I'm currently working in an application that has to navigate a webpage and recollect
I've got a webpage that I'm working on where you click on a letter
hello all i am working on a project in which i have a webpage
I have two divs for different sections of my webpage, a working and a
I have a C# Web app that runs perfectly fine in VS2010, but when
I have uploaded my webpage to a server. My webpage is working fine in
I am working on a personal webpage, a draft version of which I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.