<a href="#" οnclick='return openPWD("ShowRoles.aspx?userName=<%#Eval("userName")%>",300,400)'>用户角色</a>
<script language='javascript' type="text/javascript">
function openPWD(i,width,height)
{
if(navigator.appName=="Netscape")
{
window.open(i,"","width="+width+"px,height="+height+"px,modal=yes,resizable=no,status=no,scroll=no,help=no,center=yes");
return false;
}else
{
window.showModalDialog(i,"","dialogHeight: "+height+"px; dialogWidth: "+width+"px;dialogTop:px; dialogLeft:px; edge: Raised; center: Yes; help: No; resizable: No; status: no;scroll:No");
return false;
}
}
</script>