I have an asp panel,an associated drag panel extender, a label and an OK button that serves as a message popup. i would like this pop up to show up in the centre of the browser window when the page is run.
can someone please help me
My code is below. i am using master pages
Expand|Select|Wrap|Line Numbers
- <asp:Panel ID="MessagePanel" runat="server" Style="z-index: 100;
- left: 50%; position: absolute; top: 50%;" Visible="False" CssClass="modalPopup" Wrap="false">
- <table>
- <tr>
- <td style="width: 100%; text-align: center">
- <asp:Label ID="lblMessagePanel" runat="server"></asp:Label></td>
- </tr>
- <tr>
- <td style="width: 100%; text-align: right">
- <asp:Button ID="btnOkPanel" runat="server" OnClick="btnOkPanel_Click" Text="OK" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" Font-Names="Arial" Font-Size="10pt" Width="38px" /></td>
- </tr>
- </table>
- <cc1:DragPanelExtender DragHandleID="messagePanel" ID="DragPanelExtender1" runat="server" TargetControlID="MessagePanel">
- </cc1:DragPanelExtender>
- </asp:Panel>