martman700
IS-IT--Management
- Apr 1, 2005
- 28
I may be crazy, but it doesn't seem as though it's possbile to have a variable in a <mobile:image> tag now does it. I've search for hmm about 10 hours online for an example, but doesn't seem to want work.
A normal tag is like:
<mobile:image runat="server" ImageURL="mypic.gif"></mobile:image>
But I want to use a file name retreived from a table in SQL server. Something like:
<mobile:image runat="server" ImageURL="<%# picturename%>"></mobile:image>
I've tried to use a label and it produces the correct string...like:
<mobile:image runat="server" ImageURL="mypic.gif"></mobile:image>
But this simply outputs to the mobile devices and doesn't render it, like it would in an HTML browser.
And on top of this, it doesn't seem like you can run a function inside of a Mobile form so that I could produce the correct mobile:image string.
I was thinking I could do:
<mobile:Form runat="server" id="Form1">
<%# getPicture(somevariable_name) %>
</mobile:Form>
The error message I get with is that is doesn't ever find 'somevariable_name'.
Any thoughts/suggestions?