Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
690
WebDialogWindow in master page causes WebTextEdit's CssClass to not be applied in content pages
posted

This is the CssClass I apply to all of my WebTextEdit controls:

.txtBoxRegular {
    border-left: 1px solid #415f90;
    border-right: 1px solid #415f90;
    border-top: 1px solid #415f90;
    border-bottom: 1px solid #415f90;
}

As soon as I place a WebDialogWindow inside my master page, the above CssClass is ignored for all WebTextEdit controls inside my content pages - the borders do not show up. 

Does anyone have any idea why this would happen?

I've tried moving the WebDialogWindow to the top of the form and to the bottom but it didn't help.  I only get the borders back when I remove the WebDialogWindow from the master page completely.

There's nothing special about this WebDialogWindow - I copy it below:

    <igl:WebDialogWindow runat="server" ID="wdwDeletePrompt" InitialLocation="Centered"
        Height="150px" Width="286px" Modal="true" WindowState="Hidden"
      Style="line-height: normal;">
        <Header CaptionAlignment="Left" CaptionText="Delete">
            <CloseBox Visible="False" />
        </Header>
        <ContentPane CssClass="red" Font-Bold="true" BackColor="#FFFFFF">
            <Template>
                <div style="text-align: center; position: relative;">
                    <br /><asp:Label ID="lblPromptText" runat="Server" Text="Are you sure?"></asp:Label> <br />
                    <br />
                    <div style="position: absolute; right: 77px; top: 75px; height: 23px">
                        <img onclick="DeleteConfirm()" style="cursor: hand;" src="images/webdialogwindow/YesBtn.jpg"
                            alt="Yes"/>
                        <img onclick="DeleteCancel()" style="cursor: hand;" src="images/webdialogwindow/NoBtn.jpg"
                            alt="No"/>
                    </div>
                </div>
            </Template>
        </ContentPane>
    </igl:WebDialogWindow>

Parents
No Data
Reply
  • 24497
    posted

    Hi,

    I tried to reproduce that without success.

    Content page had

    <igtxt:WebTextEdit ID="WebTextEdit1" CssClass="txtBoxRegular" runat="server"></igtxt:WebTextEdit>

    <head> of masterpage had
    <style> with your class

    <form> of masterpage had WebDialogWindow pasted from your codes

    On run WebTextEdit had that custom border. To be sure that is was correct custom css, I replaced color for one of sides by "red".

Children