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

  • SEARCH
  • Home
  • 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 8350573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:21:26+00:00 2026-06-09T08:21:26+00:00

I have a populated table from a database in my VB ASP.NET application, like

  • 0

I have a populated table from a database in my VB ASP.NET application, like so:

<dl class="row">
    <dd style="width:20%; background:none;">
        <%# Eval("name")%>
    </dd>
    <dd style="width:20%;">
        <%# Eval("description")%>
    </dd>
    <dd style="width:30%;">
        <a href="<%# Eval("templateLink")%>"><%# Eval("templateId")%></a>
    </dd>
</dl>

Now, I have saved link to the template in templateLink and I’m using Guid as it’s name, namely templateId.
Now, when I click that link I want to be able to save the file, but now it does not do that. I can’t even access the file on server (on dev environment I can access but still can’t download).

This is the path I’m using.

<configuration>
    <appSettings>
        <add key="UploadLocation" value="C:\inetpub\wwwroot\MyProject\Intranet\Resources\"/>
    </appSettings>
<configuration>

And this is the upload code:

Dim TempEx As String = System.IO.Path.GetExtension(fuTemp.FileName)
Dim TempPath As String = ConfigurationManager.AppSettings("UploadLocation")
Dim TempName As String = report.TempID.ToString + TempEx

fuTemp.PostedFile.SaveAs(TempPath + TempName)

report.TemplateLink = TempPath + TempName

As you can see, I’m saving the path to TemplateLink which I’m using later to create the a href for the table. I tried using several solutions I’ve found around the web but couldn’t make much use of it.

If possible please clarify this problem to me 🙁

Thank you.

  • 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-09T08:21:27+00:00Added an answer on June 9, 2026 at 8:21 am

    You’ll want to store UploadLocation as a relative path:

    <add key="UploadLocation" value="/Intranet/Resources/"/>

    In your upload code, use Server.MapPath(ConfigurationManager.AppSettings("UploadLocation") to get the filesystem path.

    Then binding TempPath + TempName should give you a proper HTTP link rather than a filesystem path.

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

Sidebar

Related Questions

I have a table populated with data from the database, where each row has
I have a data table populated from a MySQL database via PHP. The first
i have a drop down list which is populated dynamically from database table i.e
I have a dropdown menu populated from a table in a MySQL database. It
I have a table which is being dynamically populated from MySQL. The table has
I have a large table that get populated from a view. This is done
I have a table Survey_Data_Response that is populated with an 'insert into' statement from
I have a table which is being dynamically populated, each row contains two textfields
I have created a table in ASP MVC and populate it with data from
I have an online user roster populated from a database. Each username is a

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.