|
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.
|
|
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.aspxThanks
|
|
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.
|
|
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!
|
|
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!
|
|
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
|
|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,407
|
Great. Glad to hear that!
|
|