//打开一个模式对和话框
function openwin() {
// 使窗口居中
var iWidth = 500; //模态窗口宽度
var iHeight = 350; //模态窗口高度
var iTop = (window.screen.height - iHeight) / 2;
var iLeft = (window.screen.width - iWidth) / 2;
window.open("http://www.cnblogs.com/selectcompany.aspx", "机构选择对话框", "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left=" + iLeft + ", toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no");
}
// 删除下拉列表框中所有元素
for (i = document.all.DDList_value.options.length; i >= 0; i--)
document.all.DDList_value.options.remove(i);
//显示下拉列表框DDList_value,并将下拉框 DList_department的选项全部复制到DDList_value中
document.all.DDList_value.style.display = "";
var sou=document.all.DList_department;
for(var i=0;i<sou.options.length;i++)
{
var newOption = document.createElement("OPTION");
newOption.text = sou.options[i].text;
document.all.DDList_value.options.add(newOption);
}
//控制控件 的可见度及可见性
document.getElementById("main").style.filter="Alpha(Opacity=70)";
document.getElementById("main").disabled = true;
document.getElementById("div_panel").style.display = "";
document.getElementById("div_add").style.display = "none";
//以下一点注意:!!!!!
//当在客户端用JS控件下拉列表DDList_value的选项后,在服务器端就不能用this.DDList_value.SelectedItem.Text得到数据
//只能用下面的方法得到下拉框中选择的项的值

sValue = Request.Form["DDList_value"].ToString(); //this.DDList_value.SelectedItem.Text;这样得不到数据!!
function openwin() {
// 使窗口居中
var iWidth = 500; //模态窗口宽度
var iHeight = 350; //模态窗口高度
var iTop = (window.screen.height - iHeight) / 2;
var iLeft = (window.screen.width - iWidth) / 2;
window.open("http://www.cnblogs.com/selectcompany.aspx", "机构选择对话框", "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left=" + iLeft + ", toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no");
}
// 删除下拉列表框中所有元素
for (i = document.all.DDList_value.options.length; i >= 0; i--)
document.all.DDList_value.options.remove(i);
//显示下拉列表框DDList_value,并将下拉框 DList_department的选项全部复制到DDList_value中
document.all.DDList_value.style.display = "";
var sou=document.all.DList_department;
for(var i=0;i<sou.options.length;i++)
{
var newOption = document.createElement("OPTION");
newOption.text = sou.options[i].text;
document.all.DDList_value.options.add(newOption);
}
//控制控件 的可见度及可见性
document.getElementById("main").style.filter="Alpha(Opacity=70)";
document.getElementById("main").disabled = true;
document.getElementById("div_panel").style.display = "";
document.getElementById("div_add").style.display = "none";
//以下一点注意:!!!!!
//当在客户端用JS控件下拉列表DDList_value的选项后,在服务器端就不能用this.DDList_value.SelectedItem.Text得到数据
//只能用下面的方法得到下拉框中选择的项的值
sValue = Request.Form["DDList_value"].ToString(); //this.DDList_value.SelectedItem.Text;这样得不到数据!!

浙公网安备 33010602011771号