AJAX的ModalPopupExtender控件弹出窗口位置问题...马上给分
<%@ Page Language= "C# " AutoEventWireup= "true " CodeFile= "Ajax.aspx.cs " Inherits= "test_Ajax " %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml " >
<head runat= "server ">
<script type= "text/javascript ">
function onYes() {
var id = ' <%=ListBox1.ClientID %> ';
var obj = document.getElementById(id);
var index = obj.selectedIndex;
var a = new Array(2);
if(obj.selectedIndex==-1)
{
document.getElementById( 'Label2 ').innerText = "注意:请先选择一个客户 ";
//alert( "注意:请先选择一个客户 ");
}
else
{
a[0]=obj.options[index].value;
a[1]=obj.options[index].text;
document.getElementById( 'Label1 ').innerText= a[0];
}
}
function onNo() {
document.getElementById( 'Label1 ').innerText = 'Action canceled ';
}
</script>
<style type= "text/css ">
body {
font:normal 10pt/13pt Arial, Verdana, Helvetica, sans-serif;
color:#666;
margin:20px;
}
.modalBackground {
background-color:#000;
filter:alpha(opacity=30);
opacity:0.3;
}
.modalPopup img {
border:solid 5px #fff;
}
.modalPopup-text {
display:block;
color:#000;
background-color:#E6EEF7;
text-align:center;