Solved

Adding dynamic links

Posted on 2007-03-21
1
236 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now