Hi ca8msm,
I've made some progress with the code below.
I can reference the control with the code below and make a few changes. I was wondering how I could determine whether the datafield was null and if so set Image2.ImageUrl = "~/images/myerror.jpg"
Protected Sub FormView1_DataBound(ByVal...
Im slightly confused.
Here's the exact code for the image <asp:Image ID="Image2" runat="server" ImageUrl='<%# Bind("ThumbURL", "~/ProductImages/{0}") %>' />
It's within a Formview as the code shows below.
<asp:FormView ID="FormView1" runat="server" DataKeyNames="ProductID"...
Just say the DataField 'PhotoPath' was null.
How could I set the code so that it display a text string "no image"
<asp:image id="EmployeeImage"
imageurl='<%# Eval("PhotoPath") %>'
alternatetext='<%# Eval("LastName") %>'
runat="server"/>
I have a database field that is currently money datatype.
what's the best datatype to use to store product prices? Is it double or money or decimal and any reasons why.
At the moment I am using the money datatype but there's 4 decimal places such as 10.0000
thanks.
vertical-align bottom doesn't seem to do much good.
The text within the topnavigation div sits right at the top.
Is there anyway to move it down to the bottom or middle?
#topnavigation
{
padding:0;
margin:0 10px 0 10px;
background-image:url("images/navbar.gif")...
I'd rather not escape with a double quotes.
Secondly if I use the Replace function
myString=Replace("<a href="www.mylink.com"",""","""")
doesn't work
any ideas
myString="<a href="www.tek-tips.com">Tek-tips</a>"
If TestFunction(myString)= True Then
..............
causes an expected end of statement error.
How can I use the replace function to stop the " in the link causing the error? I don't want to use ' the single quote.
thanks.
yeah might just use the adrotator... why did microsoft call the contorl the adrotator, perhaps a name like imagerotator might have been more appropriate as in my case the image isn't an ad.
thanks.
can anyone help with a script to rotate the top 800x180 pixel image in a website on page load.
Should I use the Adrotator or is there a simple piece of script that works?
thanks.
If I use the 2 column layout from http://www.glish.com/css/9.asp and there is very little text in the left column the right column shifts down below the left column.
Is there any way to stop this from happening?
thanks.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.