Solved

Adding dynamic links

Posted on 2007-03-21
1
241 Views
Last Modified: 2010-04-16
How would I write a line of code that will dynamicly place the file name from the db (dbfilename.png in sample below) into the midal of the image Url?  Using asp.net aspx pages.

Thanks for any help!

samples:
<br />
                text<asp:Image ID="Image2" runat="server" ImageUrl="~/image/dbfilenam.png" Style="position: static" />text<br />
0
Comment
Question by:bmanmike39
1 Comment
 
LVL 35

Accepted Solution

by:
mrichmon earned 500 total points
ID: 18766719
from the code behind:

Image2.src = dataset.Tables[0].Rows[0]["imagepath"]

You may need to adjust based on how you are accessing the data.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

733 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