Welcome Guest Search | Active Topics | Sign In | Register

Background color on PageView controls Options
ME_in_TX
Posted: Wednesday, August 13, 2025 8:09:49 PM
Rank: Newbie
Groups: Member

Joined: 8/13/2025
Posts: 4
I am using VS 2022 with VB.NET.
Adding ascx files to PageViews in a MultiPage being used by a TabStrip. Each ascx file looks fine (including baclground color) in Designer.
When added to MultiPage the controls are there but the background color is white or not set.
I can get the background color of the TopGroup to change but the directives to set the colors for the controls on a PageView are ignored.
I suspect that I am missing something obvious. I looked around the forum but the css and style examples set the color to white or don't mention it.
eo_support
Posted: Wednesday, August 13, 2025 9:44:02 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,407
Hi,

Do you mean the background color of your ascx file is not working? What if you place a DIV around your ascx and set background color on that DIV does it work?

If you can send us a test project demonstrating the problem, we should be able to tell you the root cause. See here for more information on how to send us a test project:

https://www.essentialobjects.com/forum/test_project.aspx

Thanks
ME_in_TX
Posted: Thursday, August 14, 2025 9:24:07 AM
Rank: Newbie
Groups: Member

Joined: 8/13/2025
Posts: 4
I submitted a test project.

The color problem file is RelMain.ascx. All controls in the file are within a DIV with the background color set. It appears fine in Design display. The color is not used in the TabStrip.

Secondarily, some of the controls are moved slightly. That's not as important since I can move them to be useable.
eo_support
Posted: Thursday, August 14, 2025 9:37:45 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,407
Hi,

We have received the test project and we are looking into it. We will reply here again once we have an update.

Thanks!
eo_support
Posted: Friday, August 15, 2025 9:05:09 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,407
Hi,

Please add "width:100%" to your MultiPage's style. For example:

Code: HTML/ASPX
<eo:MultiPage runat="server" ID="ReleasePanel" Style="background-color:lightsteelblue;width:100%;" >
</eo:MultiPage>

Please let us know if it works for you.

Thanks!
ME_in_TX
Posted: Friday, August 15, 2025 11:40:33 AM
Rank: Newbie
Groups: Member

Joined: 8/13/2025
Posts: 4
Hi,

The "width=100%" did the trick. Actually, it fixed another problem I was having too. When I added a second TabStrip below the first, neither was showing any of the MultiPage items. Now they are in my test program.

I am in the middle of adding more code to my main program. I'll let you know if it works there as well. I don't doubt that it will.

Thank you for the help. I'm not sure how long, if ever, it would have been for me to come up with the width silver bullet.

Thanks again,
Mark
ME_in_TX
Posted: Friday, August 15, 2025 2:38:02 PM
Rank: Newbie
Groups: Member

Joined: 8/13/2025
Posts: 4
Hi again,

After adding the wide=100% to my project, everything appears to be functioning. Thank you for your aid.

Now, its on to adding a menu or two.
eo_support
Posted: Friday, August 15, 2025 3:44:09 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,407
Great. Glad to hear that!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.