UpdatePanel - adding Style?

R

Rob Meade

Hi all,

Ok - this might sound kinda stupid - but I cant see how to do it...

I've got an update panel which contains, on one horizontal line, a drop down
list, then an image, then another drop down list and then another image.

I want to align the images so that they are in the middle of the row so to
speak, ie, not at the top. As the updatePanel simply renders a DIV tag I
figured that I would be able to do something like:

updatePanel.Style.Add("vertical-align", "middle")

turns out not - there's no "Style" property...

then I look for "Attributes" in order to use

updatePanel.Attributes.Add etc

this isn't there either....

So, anyone know how I might achieve what I want without having to go down
some complex route of adding tables to my layout (more than I alread
have)...

Regards

Rob
 
R

Rob Meade

...
<asp:panel Style="your style here" ... />

Hello Aidy,

Thank you for your reply.

I should have added more information...I'm creating the updatePanel
programmatically...ie..

Dim updatePanel As UpdatePanel

updatePanel = New UpdatePanel

updatePanel.Style.Add() <-- doesn't exist
updatePanel.Attribritures <-- doesn't exist

Any thoughts?

Rob
 
B

bruce barker

the update panel is basically a placeholder, whose inner html can be
replaced by client script.

just put a div inside/outside with the style you desire.


-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top