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
Solved

Adding dynamic links

Posted on 2007-03-21
1
240 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

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.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

828 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