Hi,
The "black box" is because of the css class of Panel is not worked.
Please add the css file in the page. It's just like: <link href="../StyleSheet.css" mce_href="../StyleSheet.css" rel="stylesheet" type="text/css" /> (You can use ../ to direct the relative directory of css file.)
You can get more information from http://htmlhelp.com/reference/css/style-html.html.
From your code, "~/App_Data/ModalPanel.css" rel="stylesheet" type="text/css" runat="server" id="mPanel" visible="false" /> is not a correct format. And please do not put the css file in the App_Data folder.
The easiest way to add css file into the page is draging the css file into the page directly in VS.
Or you can define the modalPanel and modalBackground class in the currect page.
.modalBackground {
background-color:Gray;
filter:alpha(opacity=70);
opacity:0.7;
}
.modalPanel {
background-color:#ffffdd;
border-width:3px;
border-style:solid;
border-color:Gray;
padding:3px;
width:250px;
}