Paul,
Thanks for this - the adrotator part worked well except the line
dim AdRotator1 as System.Web.UI.WebControls.AdRotator
this I had to delete as creating the control in the html section does this
implicitly (as I understand it).
The key was
AdRotator1.AdvertisementFile = RotatorFile
and I was able also to use this for the imageUrl for the image control.
Regarding dimensions of an image in the asp:Image control, I want to pull
different images for display depending on what 'module' is being loaded. I
don't want the administrative end user to have to enter the dimensions in
the database, though that is an option. Was hoping that there is a function
that returns info about the image file from which I could pull the
dimensions.
I'm not storing the image itself in the db, just a string indicating the
path/name, i.e., 'images/thislogo.gif'.
Thanks,
Mike
>
> 1) can I get an <asp:Image control to display the dimensions of an
> image?
> <asp:Image runat="server" Width="x" Height="y"/>
> Do you mean you want it to compute the size for you?
>
> 2) why can't I select a filename from a database and apply it to an
> adrotator like this:
>
> You can't do it like that, but you can like this:
> '(I don't do VB, so this might not be 100% syntactically correct)
>
> dim AdRotator1 as System.Web.UI.WebControls.AdRotator
> dim RotatorFile as String
> ....
> RotatorFile = objdr("RotatorFile")
> AdRotator1.AdvertisementFile = RotatorFile
>
> <asp:adRotator id="AdRotator1" Runat="server"
> AdvertisementFile="<%=RotatorFile%>"></asp:adRotator>
---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/